LDAP-UX Client Services B.04.10 Administrator's Guide (edition 7)
Unsupported Contributed Tools and Scripts
This section describes contributed tools and scripts which are not officially supported by HP at
the present time.
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.
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
Examples
1. An example beq command using igrp1 (group name) as the search key, grp (group) as the
service, and ldap as the library is shown below:
./beq -k n -s grp -l /usr/lib/libnss_ldap.1 igrp1
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)
pw_shell..........(/usr/bin/sh)
174 Command and Tool Reference