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

Table Of Contents
cn: Michale Sheu
uid: msheu
uidNumber: 880
gidNumber: 2010
loginShell: /usr/bin/sh
homeDirectory: /home/msheu
gecos: msheu,Building-8,555-555-5000
dn: cn=Pat Fong,ou=Users,dc=org,dc=example,dc=com
cn: Pat Fong
uid: pfong
uidNumber:750
gidNumber: 2000
loginShell: /usr/bin/sh
homeDirectory: /home/pfong
gecos: pfong,Building-10,555-552-5000
...
...
The following command displays an account entry which contains uid=tscott:
./ldapuglist -t passwd -m -f "(uid=tscott)"
In this example, the gecos attribute has been mapped to cn, l, and telephoneNumber. With
the -m option, the ldapuglist tool displays the entry with the mapped attribute names. If
ldapuglist is used to access a Windows 2003 R2 Active Directory Server with the R2's RFC
2307 schema is installed, the output of the command is as follows:
dn: cn=Tom Scott,ou=Users,dc=org,dc=example,dc=com
cn[cn]: Tom Scott
uid[uid]: tscott
uidNumber[uidNumber]: 900
gidNumber[gidNumber]: 2010
loginShell[loginShell]: /usr/bin/sh
homeDirectory[unixHomeDirectory]: /home/mlee
gecos[cn]: tscott
gecos[l]: Building-12
gecos[telephoneNumber]: 555-555-6666
If ldapuglist is used to access a Windows 2000/2003 Active Directory Server with the SFU3.0/3.5
schema is installed, the output of the command is as follows:
dn: cn=Tom Scott,ou=Users,dc=org,dc=example,dc=com
cn[cn]: Tom Scott
uid[msSFU30Name]: tscott
uidNumber[msSFU30uidNumber]: 900
gidNumber[msSFU30gidNumber]: 2010
loginShell[msSFU30loginShell]: /usr/bin/sh
homeDirectory[msSFU30HomeDirectory]: /home/mlee
gecos[cn]: tscott
gecos[l]: Building-12
gecos[telephoneNumber]: 555-555-6666
Listing Groups
You can use ldapuglist to list and enumerate POSIX-like group entries in an LDAP directory
server. Below are examples of how to use ldapuglist to display group entries.
Run the following command to list all the posixGroup entries that Mike Phillips belongs to:
cd /opt/ldapux/bin
./ldapuglist -t group -f "(memberUid=mphillips)"
User and Group Management 127