HP CIFS Server 3.0d Administrator's Guide version A.02.02 (Edition 5)

LDAP Integration Support
Migrating Your data to the Netscape Directory
Chapter 6136
Examples
Complete the following steps to migrate the /etc/passwd file to the
LDIF file:
Step 1. Set the environment variable, LDAP_BASEDN, to specify where you want
to store your data.
For example, the following command sets the LDAP base DN to
org.hp.com:
$ export LDAP_BASEDN=”dc=org, dc=hp, dc=com”
Step 2. Run the following script, migrate_passwd.pl, to migrate all data in the
/etc/passwd file to the /tmp/passwd.ldif file:
$ migrate_passwd.pl /etc/passwd /tmp/passwd.ldif
A part of the output is as follows:
dn: uid=johnl,ou=People,dc=org,dc=hp,dc=com
objectclass: top
objectclass: account
objectclass: posixAccount
objectclass: Account
loginShell: /usr/bin/ksh
uidNumber: 8662
gidNumber: 8200
homeDirectory: /home/johnl
gecos: John Louie, 48S-020, 447-1890
userPassword: {crypt}aOACGvt0T, 1fo
acctFlags: UX
pwdLastSet: 1063301239
b. Netgroup
- The NIS optimization maps ‘byuser’ and ‘byhost’ are not
utilized.
-Each triple is stored as a single string.
-Each triple must be enclosed by parentheses. For example,
“(machine, user, domain)” is a valid triple while “machine, user,
domain” is not.
c. When migrating services data into the LDAP directory, You keep
in mind that only multiple protocols can be associated with one
service name, but not multiple service ports.