LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
objectclass: posixAccount
objectclass: account
userPassword: {crypt}daCXgaxahRNkg
loginShell: /bin/ksh
uidNumber: 20
gidNumber: 20
homeDirectory: /home/jbloggs
gecos: Joe Bloggs,42U-C3,555-1212
The following commands convert /etc/group into LDIF and place the result in /tmp/group.ldif:
$ export LDAP_BASEDN="o=hp.com"
$ migrate_group.pl /etc/group /tmp/group.ldif
dn: cn=mira.hp.com,ou=Groups,o=hp.com
objectclass: posixGroup
objectclass: top
cn: mira
cn: mira.hp.com
userPassword: {crypt}*
gidNumber: 325
The following command migrates /etc/hosts into LDIP and place the result in /tmp/host.ldif:
export LDAP_BASEDN="o=hp.com"
migrate_hosts.pl /etc/hosts /tmp/host.ldif
dn: cn=hostA.hp.com,ou=Hosts,o=hp.com
objectclass: ipHost
objectclass: device
objectclass: top
ipHostNumber: 10.1.2.5
cn: HostA
cn: HostA.hp.com
9.7 Unsupported contributed tools and scripts
This section describes contributed tools and scripts which are not officially supported by HP at the
present time.
9.7.1 The 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.
9.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
386 Command and tool reference