LDAP-UX Client Services B.04.15 with Microsoft Windows Active Directory Server Administrator's Guide (edition 8)

Table Of Contents
Use the following command to display the new user entry, mscott, with mapped attribute
information:
./ldapuglist -t passwd -m -n mscott
If ldapugadd is used to access a Windows 2003 R2 Active Directory Server with the R2's RFC
2307 schema installed, the output of the user entry is as follows:
dn: cn=Mike Scott,ou=users,dc=org,dc=example,dc=com
cn[cn]: Mike Scott
uid[uid]: mscott
uidNumber[uidnumber]: 2200
gidNumber[gidnumber]: 200
homeDirectory[unixHomeDirectory]: /home/mscott
loginShell[loginshell]: /usr/bin/sh
gecos[cn]: Mike Scott
gecos[l]: Building-6A
gecos[telephoneNumber]: 555-555-5555
If ldapugadd is used to access a Windows 2000/2003 Active Directory Server with the SFU
3.0/3.5 schema installed, the output of the user entry is as follows:
dn: cn=Mike Scott,ou=users,dc=org,dc=example,dc=com
cn[cn]: Mike Scott
uid[msSFU30uid]: mscott
uidNumber[msSFU30uidnumber]: 2200
gidNumber[msSFU30gidnumber]: 200
homeDirectory[msSFU30HomeDirectory]: /home/mscott
loginShell[msSFU30loginshell]: /usr/bin/sh
gecos[cn]: Mike Scott
gecos[l]: Building-6A
gecos[telephoneNumber]: 555-555-5555
The following command adds an account entry for the user, mwang, with the user's primary
login group id, 350. In this example, ldapugadd creates the user home directory /home/wang
and assigns user and group ownership of the newly created directory to the user mwang and his
primary login group after successfully adding the user entry to the directory server and adding
the user to the primary login group. ldapugadd uses the password specified in the LDAP_UGCRED
environment variable to create the password for the new user, mwang.
./ldapugadd -t passwd -PW -f "Mike Wang" -g 350 -m -d "/home/wang" mwang
Use the following command to display the new user entry, mwang:
./ldapuglist -t passwd -n mwang
The output of the user entry is as follows:
dn: cn=Mike Wang,ou=users,dc=org,dc=example,dc=com
cn: Mike Wang
uid: mwang
uidNumber: 2255
gidNumber: 350
homeDirectory: /home/wang
loginShell: /usr/bin/sh
The following command adds a new group entry for the group name, groupA. In this example,
ldapugadd creates the new group, groupA, and defines the initial group membership by adding
the user account, mwang, as a member.
./ldapugadd -t group -M mwang groupA
200 Command, Tool, Schema Extension Utility, and Migration Script Reference