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

memberUid: user1
memberUid: user3
memberUid: user5
Displaying group entries that include a specified member
To list all the posixGroup entries that Mike Phillips belongs to, enter the following command:
cd /opt/ldapux/bin
./ldapuglist -t group -f "(memberUid=mphillips)"
Sample output for an HP directory server 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
Displaying group entries that include a specified attribute or qualification
To list a regular posixGroup entry that contains cn=groupA, enter the following command:
./ldapuglist -t group -f "(cn=groupA)"
Sample output for an HP directory server follows:
dn: cn=groupA,ou=groups,dc=example,dc=com
cn: groupA
gidNumber: 620
memberUid: user1
memberUid: user3
memberUid: user5
Command arguments
The following describes the ldapuglist options and arguments used in the preceding 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.
7.7.1.3 Adding a user or a group (ldapugadd)
When adding user or group entries to the LDAP 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 enables 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 HP
222 Administering LDAP-UX Client Services