Command and Tool Reference

NIS+ to LDAP Migration Scripts

The following commands migrate all user accounts with encrypted passwords from the NIS+ server into LDIF and place the results in the nisp_passwd.ldif file:

export LDAP_BASEDN=”dc=cup,dc=hp,dc=com” export DOM_ENV =”cup.hp.com” migrate_nisp_passwd.pl

dn:cn=joe Bloggs,ou=People,dc=cup,dc=hp,dc=com uid: jbloggs

cn: joe Bloggs

objectclass: top

objectclass: person

objectclass: organizationPerson

objectclass: inetOrgPerson

objectclass: posixAccount

objectclass: account

mail: jboggs@cup.hp.com

givenname: Joe sn:bloggs

userPassword: {crypt}daCXgaxahRNkg

loginShell: /bin/ksh

uidNumber: 20

gidNumber: 20

homeDirectory: /home/jbloggs

The following commands migrate groups data from the NIS+ server to LDIF and place the results in the nisp_group.ldif file:

export LDAP_BASEDN=”dc=cup,dc=hp,dc=com” export DOM_ENV =”cup.hp.com” migrate_nisp_group.pl

dn:cn=rose.cup.hp.com,ou=Groups,dc=cup,dc=hp,dc=com objectclass: posixGroup

objectclass: top

ipHostNumber: 10.1.70.5

cn: rose

cn: rose.cup.hp.com

userPassword: {crypt}*

gidNumber: 325

Chapter 3

53