Migrating data from NIS to LDAP

Data is migrated to the LDAP directory using the nistoldif command. The nistoldif command can operate in two modes: it can output LDIF data, or it can write the data directly to the server. The nistoldif command will not add a user or a group with a UID or GID that conflicts with one already on the server.
Note: You may have to increase the size of the partition containing the database that LDAP is using. By default, this will be the /home directory. If not enough space is allocated, and you are migrating data to the server, the nistoldif command will fail. In this case, increase the size of the partition and rerun the nistoldif command.

If you are migrating data from the default NIS domain, the nistoldif command will use this data by default. If you wish to use a NIS domain other than the default, you should use the -y flag to specify a domain. Following is an example:

nistoldif -h server1.ibm.com -a cn=admin -p adminpwd -d cn=aixdata

This migrates NIS maps from the default domain to the LDAP server server1.ibm.com under the cn=aixdata DN. If no NIS maps are present, it will fall back to the data in the /etc directory. The -f flag changes the fallback directory.

For more information, see the nistoldif command description in Commands Reference.