HP CIFS Server 3.0f Administrator's Guide verison A.02.03

LDAP management Tools
The HP CIFS Server provides LDAP management tools for you to maintain users, groups and passwords in
the Directory Server. To use perl scripts, perl on HP-UX 11i (PA-RISC) and HP-UX 11i (IA) version 5.6.1.E or
greater is required. A free download software is available at
http://software.hp.com.
HP CIFS Server LDAP Tools
In addition to the LDAP-UX Integration product tools, many HP CIFS Server management tools are available
for management of CIFS data in an LDAP directory including smbpasswd, net commands, pdbedit, and
CIFS scripts.
The Smbpasswd Tool
The smbpasswd will perform its operations on the LDAP directory if the HP CIFS passdb backend is ldapsam
or ldapsam_compat.
You must ensure that the POSIX user existing in the LDAP directory before you run the smbpasswd -a
command to add the sambaSamAccount information to that posix user.
If the POSIX user does not exist in the LDAP directory, you can run the smbldap-useradd.pl script to
add the POSIX and Samba user account to the LDAP directory.
Syntax
Run the following command to show a list of options that the HP CIFS Server supports:
$smbpasswd -h
where run by root:
$smbpasswd [options] [username]
otherwise:
$ smbpasswd [options]
Examples
Run the following command to change the LDAP directory manager password:
$ smbpasswd -w <password of the LDAP Directory Manager>
For example, the following command changes the credentials of the LDAP directory manager:
$ smbpasswd -w dmpasswd
or you can run the smbpasswd W command to change the LDAP directory manager password as follows:
$ smbpasswd -W
With the -W option, the user is prompted for the password. The password is entered using stdin and thus
the clear text password never appears on the command line.
96 LDAP Integration Support