LDAP-UX Client Services B.05.00 Administrator's Guide
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)"
The output is as 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
5.5.3 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)"
The output is as follows:
dn: cn=group1,ou=groups,dc=example,dc=com
cn: group1
gidNumber: 550
memberUid: mphillips
memberUid: mlou
memberUid: apierce
memberUid: bjones
dn: cn=group2,ou=groups,dc=example,dc=com
cn: group2
gidNumber: 580
memberUid: vtam
memberUid: ajones
memberUid: mphillips
Run the following command to list a regular posixGroup entry which contains cn=groupA:
./ldapuglist -t group -f "(cn=groupA)"
The output is as follows:
dn: cn=groupA,ou=groups,dc=example,dc=com
cn: groupA
gidNumber: 620
memberUid: user1
memberUid: user3
memberUid: user5
Run the following command to list a regular posixGroup entry for the group name, groupB:
./ldapuglist -t group -n groupB
162 Administering LDAP-UX Client Services