LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
The ldapcfinfo tool can provide the following information by examining LDAP UG template
files, LDAP UG configuration file or the LDAP-UX configuration profile:
◦ Determine if the LDAP-UX is properly configured and active
◦ Discover the current LDAP User and Group (UG) configuration defaults, such as home
directory and login shell
◦ Discover the distinguished name (DN) of the LDAP-UX configuration profile and the
directory server name that stores that profile
◦ Discover search filter, search base or search scope for a particular name service
◦ Discover the attribute mapping information for a specified name service
◦ Discover the list of available template files for a specific name service when you want to
add a new user or group entry to an LDAP directory server
◦ Discover LDAP-UX configuration information about required attributes when creating a
new user or group entry
◦ Discover the recommended list of attributes that an interactive management tool can
consider making available for modification for the specified entry
The following subsections provide examples on how to use these tools. Most examples pertain to
HP directory servers. A few examples are given for Windows ADS.
7.7.1.1 Listing users (ldapuglist)
You can use ldapuglist to list and enumerate POSIX-like account entries in an LDAP directory
server. To follow are examples of how to use ldapuglist to list user entries.
While use of LDAP_BINDDN is not typically required to use ldapuglist, the LDAP_BINDDN
and LDAP_BINDCRED environment variables can be used to specify the distinguished name (DN)
and password of a user with sufficient directory server privilege to display protected attributes.
Alternately, you can input LDAP administrator bind identity and credential interactively with a
prompt (-P) option.
Setting the LDAP_BINDDN and LDAP_BINDCRED environment variables is optional when using
ldapuglist.
Displaying a specified user entry
To display an account entry for user mlee, enter the following command:
cd /opt/ldapux/bin
./ldapuglist -t passwd -n mlee
Sample command output for an HP directory server follows. If ldapuglist is used to access a
Windows Active Directory Server with the RFC 2307 schema installed, the output for this and other
examples in this section would be similar, except ou=people would be displayed instead of
cn=users.
dn: cn=Mike Lee,ou=people,dc=example,dc=com
cn: Mike Lee
uid: mlee
uidNumber: 900
gidNumber: 2010
loginShell: /usr/bin/sh
homeDirectory: /home/mlee
gecos: mlee,Building-5,555-555-5555
Displaying all available account entries
To display account entries available in the directory server, enter the following command:
./ldapuglist -t passwd
Sample command output for an HP directory server follows:
220 Administering LDAP-UX Client Services