HP CIFS Server 3.0f Administrator's Guide verison A.02.03

3 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.
Examples
Complete the following steps to migrate the /etc/passwd file to the LDIF file:
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"
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, 1foacctFlags: UX
pwdLastSet: 1063301239
90 LDAP Integration Support