LDAP-UX Client Services B.04.10 with Microsoft Windows Active Directory Server Administrator's Guide

uidNumber: 101
gidNumber: 20
msSFUHomeDirectory: /home/jbloggs
gecos: Joe Bloggs,Cupertino,888-9999,
sAMAccountName: jbloggs
The following commands convert /etc/group into LDIF and place the result in
/tmp/group.ldif:
$ export LDAP_BASEDN="DC=example,DC=hp,DC=com"
$ migrate_group.pl /etc/group /tmp/group.ldif
$ cat /tmp/group.ldif
dn: cn=users,dc=cup,dc=hp,dc=com
objectclass: group
cn: users
gidNumber: 20
memberUid: root
syncNisDomain: cup
sAMAccountName: users
The following commands migrate /etc/hosts into LDIF and place the result in
/tmp/hosts.ldif:
$ export LDAP_BASEDN="DC=example,DC=hp,DC=com"
$ migrate_hosts.pl /etc/hosts /tmp/hosts.ldif
$ cat /tmp/hosts.ldif
dn: cn=hostA.example.hp.com,ou=Hosts, o=example.hp.com
objectclass: ipHost
objectclass: device
objectclass: top
ipHostNumber: 10.1.2.5
cn: HostA
cn: HostA.example.hp.com
Name Service Migration Scripts 187