LDAP-UX Client Services B.04.15 Administrator's Guide

The following commands specify the LDAP_BINDDN and LDAP_BINDCRED environment variables:
export LDAP_BINDDN = "cn=Jane Admin,ou=admins,dc=example,dc=com" export LDAP_BINDDN = "Jane_password"
Run the following command to go to the /opt/ldapux/bin directory where ldapuglist
resides:
cd /opt/ldapux/bin
Run the following command to display the account entry for the user name, ascott:
./ldapuglist -t passwd -L -n ascott
The output of the above command displays the /etc/passwd format as follows:
ascott:x:125:250:ascott:/home/ascott:/usr/bin/sh
Run the following command to list an account entry that contains uid=mlee:
./ldapuglist -t passwd -f "(uid=mlee)"
The output is as follows:
dn: cn=Michael
Lee,ou=people,dc=example,dc=com cn: Michael Lee uid: mlee uidNumber:
2201 gidNumber: 318 homeDirectory: /home/mlee loginShell: /usr/bin/ksh
gecos: mlee,San Francisco,555-555-5555
Run the following command to list an account entry that contains uid=jscott:
./ldapuglist -t passwd -m -f "(uid=jscott)"
The output is as follows. Assume that 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=John Scott,ou=people,dc=example,dc=com
cn[cn]: John Scott uid[uid]: jscott uidNumber[uidNumber]: 2225 gidNumber[gidNumber]:
252 homeDirectory[homeDirectory]: /home/mlee loginShell[loginShell]:
/usr/bin/ksh gecos[cn]: jscott gecos[l]: San Jose gecos[telephoneNumber]:
555-555-9999
Run the following command to list an account entry having the mfreise account name that
does not contain POSIX attributes:
./ldapuglist -t passwd -m -F "(uid=mfreise)"
The output is as follows:
dn: cn=Michael
Freise,ou=people,dc=example,dc=com cn[cn]: Michael Freise uid[uid]:
mlee gecos[cn]: Michael Freise gecos[l]: San Jose gecos[telephoneNumber]:
555-555-5555
Use the following command to list all posixGroup entries that Mike Lou belongs to:
./ldapuglist -t group -f "(memberUid=mlou)"
The output is as follows:
dn: cn=group1,ou=groups,dc=example,dc=com
cn: group1 gidNumber: 550 memberUid: mlou memberUid: apierce memberUid:
bjones
dn: cn=group2,ou=groups,dc=example,dc=com
cn: group2 gidNumber: 550 memberUid: vtam memberUid: ajones memberUid:
mlou
Run the following command to list a regular posixGroup entry for the group name, 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
156 Command and Tool Reference