LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)
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 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 passwd or -t group option).
-m Displays the names of the mapped attributes when returning results.
6.7.4 Adding a user or a group
When adding user or group entries to the directory server, the ldapugadd tool uses template files
to discover the required data models for a new user and group entry. Template files define what
object classes and attributes are required to create new user and group entries. LDAP-UX provides
the flexibility that allows you to define unique data models for user and group entries. LDAP-UX
supports two default template files (for passwd and group services) for a standard directory
server, along with two default template files for the Windows Active Directory Server. These template
files can be found under /etc/opt/ldapux/ug_templates directory. For detailed information
on how to define template files and how to name and create template files, see the “Command
and tool reference” chapter of the LDAP-UX Client Services Administrator's Guide.
118 Administering LDAP-UX Client Services