Command and Tool Reference
Name Service Migration Scripts
If you change the default naming context, modify the file
migrate_common.ph and change it to reflect your naming context.
Migrating All Your Files
The two shell scripts migrate_all_online.sh and
migrate_all_nis_online.sh migrate all your name service data either to LDIF or into your directory. The migrate_all_online.sh shell script gets information from the appropriate source files, such as /etc/passwd, /etc/group, /etc/hosts, and so forth. The migrate_all_nis_online.sh script gets information from your NIS maps using the ypcat(1) command. The scripts take no parameters but prompt you for needed information. They also prompt you for whether to leave the output as LDIF or to add the entries to your directory. These scripts call the perl scripts described under “Migrating Individual Files” on page 161. You will need to modify these scripts to ensure that any calls to perl scripts not listed in Table
| • | $PERL /opt/ldapux/migrate/migrate_fstab.pl |
| • | $PERL /opt/ldapux/migrate/migrate_netgroup_byuser.pl |
| • | $PERL /opt/ldapux/migrate/migrate_netgroup_byhost.pl |
|
| |
NOTE | The scripts use ldapmodify to add entries to your directory. If you are | |
| starting with an empty directory, it may be faster for you to use ldif2db | |
| or | |
| Server Administrator’s Guide for details on ldif2db and | |
|
|
|
Migrating Individual Files
The following perl scripts migrate each of your source files in /etc to LDIF. These scripts are called by the shell scripts described under “Migrating All Your Files” on page 161. The perl scripts get their information from the input source file and output LDIF.
Environment Variables
When using the perl scripts to migrate individual files, you need to set the following environment variable:
Chapter 5 | 161 |