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

Table Of Contents
The output is as follows:
dn: cn=group1,ou=groups,dc=org,dc=example,dc=com
cn: group1
gidNumber: 550
memberUid: mphillips
memberUid: mlou
memberUid: apierce
memberUid: bjones
dn: cn=group2,ou=groups,dc=org,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=org,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
The output is as follows:
dn: cn=groupB,ou=groups,dc=org,dc=example,dc=com
cn: groupB
gidNumber: 620
memberUid: user1
memberUid: user3
memberUid: user5
Command Arguments
The following describes the ldapuglist options/arguments used in the previous examples:
-t <type> Specifies the type of entry the ldapuglist tool needs to discover and process.
<type> can be passwd or group. The passwd type indicates
posixAccount-type entries. The group type indicates posixGroup-type entries.
-n <name> Specifies a single account or group name. Use of -n is the same as -f
(uid=<name>) for accounts and -f (cn=<name>) for groups.
-f <filter> Specifies an LDAP-style search filter, <filter>, used to select specific entries
from the LDAP directory server. When you use the -f option, the filter
specified by <filter> applies to Posix-style users or groups (depending on
whether you specify the -t passwod or -t group option).
-m
Displays the names of the mapped attributes when returning results.
128 Administering LDAP-UX Client Services