NIS/LDAP Gateway Administrator's Guide
ldapmodify
You use the ldapmodify command-line utility to modify entries in an existing LDAP directory.
ldapmodify opens a connection to the specified server using the distinguished name and password
you supply, and modifies the entries based on the LDIF update statements contained in a specified
file. Because ldapmodify uses LDIF update statements, ldapmodify can do everything ldapdelete
can do. For details, see the Netscape Directory Server for HP-UX Administrator's Guide available at
http://docs.hp.com/hpux/internet.
ldapdelete
You use the delete command-line utility to delete entries from an existing LDAP directory.
ldapdelete opens a connection to the specified server using the distinguished name and password
you provide, and deletes the entry or entries. For details, see the Netscape Directory Server for
HP-UX Administrator's Guide available at http://docs.hp.com/hpux/internet.
NIS to LDAP Migration Scripts
This section describes the shell and perl scripts that can migrate your NIS data either from source
files or NIS maps to your LDAP directory. These scripts are found in /opt/ldapux/migrate. The
two shell scripts migrate_all_online.sh and migrate_all_nis_online.sh migrate all
your NIS maps, while the perl scripts migrate_aliases.pl, migrate_group.pl,
migrate_hosts.pl, and so forth, migrate individual NIS maps. The shell scripts call the perl
scripts.
The migration scripts require perl, version 5 or later, which is installed with the NIS/LDAP
Gateway in /opt/ldapux/contrib/bin/perl.
Naming Context
The naming context specifies where in your directory your NIS data will be, under the base DN.
For example, if your base DN is "ou=NIS,o=hp.com," the passwd map would be at
"ou=People,ou=NIS,o=hp.com". Table 4-1 “Default Naming Context” shows the default naming
context. The default will work in most cases.
Table 4-1 Default Naming Context
Location in the Directory TreeMap Name
ou=Peoplepasswd
ou=Groupsgroup
ou=mailGroupsaliases
ou=Mountsfstab
nisMapName=netgroup.byusernetgroup.byuser
nisMapName=ngetgroup.byhostnetgroup.byhost
ou=Netgroupsnetgroup
ou=Deviceshosts
ou=tcpIpnetworks
ou=tcpIpprotocols
ou=tcpIprpc
ou=tcpIpservices
NIS to LDAP Migration Scripts 35