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

7.7 Unsupported contributed tools and scripts
This section describes contributed tools and scripts which are not officially supported by HP at
the present time.
7.7.1 beq (search) tool
The new beq tool expands the search capability beyond that currently offered by nsquery,
which is limited to hosts, passwd, and group. This search utility bypasses the name service switch
and queries the backend directly based on the specified library. The search will include the
following services: pwd, grp, shd, srv, prt, rpc, hst, net, ngp, and grm.
The syntax for this tool, along with example output, is shown below.
7.7.1.1 Syntax
beq -k [n|d] -s <service> (-l <library>) (-h | -H <#>) <idl> (id1> (<id2> (...))
where
k [n|d] Required. The search key may be either n for name string or d for digit (a numeral
search).
-s <service> Required. Indicates what backends are to be searched for information.
-l <library> Query the backend directly. Bypass the APIs and skip the name service
switch.
-h Provides Help on this command.
-H <#> Specifies Help level (0-5). Larger numbers provide more information. If you
specify -h or -H, no other parameters are needed.
Service | Description
pwd Password
grp Group
shd Shadow Password
srv Service
prt Protocol
rpc RPC
hst Host
net Network
ngp Netgroup
grm Group Membership
7.7.1.2 Examples
1. An example beq command using iuser1 (user name) as the search key, pwd (password)
as the service, and ldap as the library in 32-bit mode on an HP-UX 11i v2 or v3 PA-RISC
machine is shown below:
./beq -k n -s pwd -l /usr/lib/libnss_ldap.1 iuser1
nss_status .............. NSS_SUCCESS
pw_name...........(iuser1)
pw_passwd.........(*)
pw_uid............(101)
pw_gid............(21)
pw_age............()
pw_comment........()
pw_gecos..........(gecos data in files)
pw_dir............(/home/iuser1)
330 Command and tool reference