HP CIFS Server Administrator Guide Version A.02.04.04 (5070-6710, October 2011)

Syntax
ldapsearch [option]
Option
-b Specifies the starting point for the search. The value specified must be a distinguished name
that currently exits in the database.
-s Specifies the scope of the search.
-D Specifies the distinguished name (DN) with which to authenticate to the server. If specified,
this value must be a DN recognized by the Directory Server, and it must also have the authority
to search for the entries.
-w Specifies the password of the directory manager
Example
The following example uses the ldapsearch utility to check that the user entry johnl contains
the sambaAccount objectclass:
$ /opt/ldapux/bin/ldapsearch -b "dc=org,dc=hp, dc=com" -s sub \
-D "cn=Directory Manager" -w dmpasswd "uid=johnl"
The output is shown as the follows:
dn: uid=johnl,ou=People,dc=org,dc=hp,dc=com
objectclass: top
objectclass: account
objectclass: posixAccount
objectclass: sambaAccount
loginShell: /usr/bin/ksh
uidNumber: 8662
gidNumber: 8200
homeDirectory: /home/johnl
gecos: John Louie, 48S-020, 447-1890
userPassword: {crypt}aOACGvt0T, 1fo
lmPassword: 0AED71B7494489AG2ED50F26D3C5EB07
NTPassword: 7C46DE22B8963EAA3F9F90BE4E0F661
acctFlags: UX
pwdLastSet: 1063301239
Management Tools
HP no longer maintains the LDAP management scripts smbldap-tools which exist in the /opt/
samba/LDAP3/smbldap-tools directory. The latest versions of these smbldap-tools scripts
are maintained by IDEALX Open Source Security Software and are available for download at the
following web site:
http://samba.idealx.org
You can use LDAP directory tools provided by the LDAP-UX Integration product (such as
ladpmodify, ldapsearch and ldapdelete) and several HP CIFS Server tools to manage
CIFS data in an HP Netscape/Red Hat Directory Server database. The HP CIFS management tools
include the smbpasswd, net and pdbedit tools.
For more information about these tools, see the chapter 14, “Tool Reference.
Management Tools 95