13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tip – The original <strong>NIS</strong> dbm files are not overwritten. You can recover these files,if needed.c. Start the <strong>NIS</strong> daemons to ensure that they use the new maps.# svcadm enable network/nis/server:default8. Verify that the <strong>LDAP</strong> entries are correct.If the entries are not correct, then the entries can not be found by <strong>LDAP</strong> namingservices clients.# ldapsearch -h server -s sub -b "ou=servdates, dc=..." \"objectclass=servDates"9. Verify the contents of the <strong>LDAP</strong>_ maps.The following sample output shows how to use makedm to verify the contents ofthe hosts.byaddr map.# makedbm -u <strong>LDAP</strong>_servdate.bynumberplato: 1/3/2001johnson: 2/4/2003,1/3/2001yeats: 4/4/2002poe: 3/3/2002,3/4/2000If the contents are as expected, the transition from <strong>NIS</strong> to <strong>LDAP</strong> was successful.Note that the original <strong>NIS</strong> dbm files are not overwritten, so you can always recoverthose files. See “Reverting to <strong>NIS</strong>” on page 248 for more information.Examples of Custom MapsThe following two examples show how you might customize maps. Use yourpreferred text editor to modify the /var/yp/<strong>NIS</strong><strong>LDAP</strong>mapping file as needed. Formore information about file attributes <strong>and</strong> syntax, see the <strong>NIS</strong><strong>LDAP</strong>mapping(4) manpage <strong>and</strong> the <strong>LDAP</strong> naming services information in Chapter 9.Example 1–Moving Host EntriesThis example shows how to move host entries from the default location to another(nonst<strong>and</strong>ard) location in the DIT.Change the nis<strong>LDAP</strong>objectDN attribute in the <strong>NIS</strong><strong>LDAP</strong>mapping file to the newbase <strong>LDAP</strong> distinguished name (DN). For this example, the internal structure of the<strong>LDAP</strong> objects is unchanged, so objectClass entries are unchanged.Change:Chapter 15 • Transitioning From <strong>NIS</strong> to <strong>LDAP</strong> (Overview/Tasks) 239

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!