NIS+ to LDAP Migration Guide
Migrating NIS+ to LDAP
Importing Your NIS+ Data to Your LDAP Directory Server
Chapter 2 29
Step 11. Run the migrate_nisp_autofs.pl script to migrate each of the
AutoFS maps determined in steps 10 ( such as /etc/auto_master,
/etc/auto_home, /etc/auto_direc, etc...) from the NIS+ server to the
nisp_automap.ldif file. Append the nisp_automap.ldif file into the
LDIF formatted file, main.ldif. Migrate the AutoFS maps into the
LDIF file one map at a time.
./migrate_nisp_autofs.pl <autofs map name>
cat nisp_automap.ldif >> main.ldif
For example, the following commands migrate the /etc/auto_master
map to the nisp_automap.ldif and place the nisp_automap.ldif file
to main.ldif:
./migrate_nisp_autofs.pl /etc/auto_master
cat nisp_automap.ldif >> main.ldif
Step 12. If you do not have any user-defined maps or if you do not want to migrate
the user-defined maps, then skip this step.
If you want to migrate the user-defined maps to the LDAP directory, run
the migrate_nisp_nonstard.pl script to migrate each of the
user-defined maps to the nisp_nonstardard.ldif file. Place the
nisp_nonstardard.ldif file to a LDIF formatted file, main.ldif.
Migrate the user-defined maps one map at a time.
./migrate_nisp_nonstandard.pl <user-defined map>
cat nisp_nonstardard.ldif >> main.ldif
Where <user-defined map> is the name of map to be migrated.
For example, the following command migrates the user-defined map
client_sports to the nisp_nonstandard.ldif file, and places the
nisp_nonstandard.ldif file to main.ldif:
./migrate_nisp_nonstandard.pl client_sports
cat nisp_nonstardard.ldif >> main.ldif
Step 13. If you do not have any aliases service data or if you do not want to
migrate aliases service data, then skip this step.
Otherwise, run the migrate_nisp_aliases.pl script to migrate aliases
service data to the nisp_aliases.ldif file and place the
nisp_aliases.ldif file to a LDIF formatted file main.ldif as follows: