Command and Tool Reference

NIS+ to LDAP Migration Scripts

The following commands migrate hosts data from the NIS+ server to

LDIF and places the results in the nisp_hosts.ldif file:

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

dn:cn=mira.cup.hp.com,ou=Hosts,dc=cup,dc=hp,dc=com objectclass: ipHost

objectclass: device

objectclass: top

ipHostNumber: 10.1.80.60

cn: mira

cn: mira.cup.hp.com

The following commands migrates the user defined map client_sports from the NIS+ server to LDIF and places the results in the nisp_nonstand.ldif file:

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

dn:nisMapName=client_sport,nisMapName=clien_sports objectClass: nisMap

objectClass: top

nisMapName: client_sports

dn:cn=client1,nisMapName=client_sports objectClass: nisObject objectClass: top

nisMapName: client_sports

cn: client1

nisMapEntry: (football, baseketball)

dn:cn=client2,nisMapName=client_sports objectClass: nisObject objectClass: top

nisMapName: client_sports

cn: client2

nisMapEntry: (baseball, tennis)

54

Chapter 3

Page 60
Image 60
HP UX LDAP-UX Integration Software manual NIS+ to Ldap Migration Scripts