Use this procedure if the following circumstances apply:
You have maps that are not listed in Supported Standard Mappings.
You have standard NIS maps that you want to map to non-RFC 2307 LDAP mappings.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
Roles contain authorizations and privileged commands. For more information about roles, see Chapter 3, Assigning Rights in Oracle Solaris, in Securing Users and Processes in Oracle Solaris 11.2 .
# inityp2l
Run the inityp2l script on the NIS master server and follow the prompts. See Setting Up the NIS-to-LDAP Service for a list of the information you need to provide.
See the inityp2l(1M) man page for more details.
See Examples of Custom Maps for examples of how to modify the mapping file.
The DIT is fully initialized if it already contains the information necessary to populate all the maps that are listed in the NISLDAPmapping file.
If the DIT is fully initialized, skip Step 6.
# cd /var/yp # make
For more information, see the ypmake(1M) man page.
# svcadm disable network/nis/server:default
# ypserv –Ir
Wait for ypserv to exit.
# svcadm enable network/dns/client:default # svcadm enable network/nis/server:default
Perform this step only if the DIT is fully initialized.
# svcadm disable network/nis/server:default
# ypserv -r
Wait for ypserv to exit.
# svcadm enable network/dns/client:default # svcadm enable network/nis/server:default
If the entries are not correct, then the entries cannot be found by LDAP naming service clients.
# ldapsearch -h server -s sub -b "ou=servdates, dc=..." \ "objectclass=servDates"
The following sample output shows how to use the makedm command to verify the contents of the hosts.byaddr map.
# makedbm -u LDAP_servdate.bynumber plato: 1/3/2001 johnson: 2/4/2003,1/3/2001 yeats: 4/4/2002 poe: 3/3/2002,3/4/2000
If the contents are as expected, the transition from NIS to LDAP was successful.
Note that the original NIS dbm files are not overwritten, so you can always recover those files. See Reverting to NIS for more information.