LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

dn: cn=Mike Lee,ou=people,dc=example,dc=com
cn: Mike Lee
uid: mlee
uidNumber: 900
gidNumber: 2000
loginShell: /usr/bin/sh
homeDirectory: /home/mlee
gecos: mlee,Building-5,555-555-5555
dn: cn=Michael Sheu,ou=people,dc=example,dc=com
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=people,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
...
...
Displaying a user entry that contains a specified UID
To display an account entry that contains uid=tscott, enter the following command:
./ldapuglist -t passwd -m -f "(uid=tscott)"
Sample output for an HP directory server follows. In this example, the uidNUmber attribute has
been mapped to employeeNumber, and the gecos attribute has been mapped to cn, l, and
telephoneNumber. With the -m option, the ldapuglist tool displays the mapped attribute
names as well.
dn: cn=Tom Scott,ou=people,dc=example,dc=com
cn[cn]: Tom Scott
uid[uid]: tscott
uidNumber[employeeNumber]: 900
gidNumber[gidNumber]: 2010
loginShell[loginShell]: /usr/bin/sh
homeDirectory[homeDirectory]: /home/tscott
gecos[cn]: Tom Scott
gecos[l]: Building-12
gecos[telephoneNumber]: 555-555-6666
7.7.1.2 Listing groups (ldapuglist)
You can use ldapuglist to list and enumerate POSIX-like group entries in an LDAP directory
server.
Displaying a specified group entry
To list a regular posixGroup entry for group name groupB, enter the following command:
./ldapuglist -t group -n groupB
The output for an HP directory server follows:
dn: cn=groupB,ou=groups,dc=example,dc=com
cn: groupB
gidNumber: 620
7.7 Managing users and groups 221