Command and Tool Reference

beq Search Tool

nss_status ..............

NSS_SUCCESS

gr_name...........

(igrp1)

gr_passwd.........

(*)

gr_gid............

(21)

pw_age............

()

gr_mem

 

(iuser1)

 

(iuser2)

 

(iuser3)

 

5.An example beq command using a gid number as the search key, grp (group) as the service, and ldap as the library is shown below:

./beq -k d -s grp -l /usr/libnss_ldap.l 22

nss_status ..............

NSS_SUCCESS

gr_name...........

(igrp2)

gr_passwd.........

(*)

gr_gid............

(22)

pw_age............

()

gr_mem

 

(iuser1)

 

The uid2dn Tool

This tool, found in /opt/ldapux/contrib/bin, displays user’s Distinguish Name (DN) information for a given UID.

Syntax

uid2dn [UID]

where UID is a user’s UID information.

Examples

The following command displays the user’s DN information for a given user’s UID john:

./uid2dn john

The output shows below after you run the above command:

CN=john lee,CN=Users,DC=usa,DC=cup,DC=hp,DC=com

Chapter 5

153