HP CIFS Server 2.2i Administrator's Guide version A.01.11.01

LDAP Integration Support
LDAP management Tools
Chapter 6150
The following commands add or modify both samba password and posix
password of the user name “johnl” to the Netscape Directory Server:
cd /opt/samba/LDAP/smbldap-tools
./smbldap-passwd.pl johnl
The smbpasswd Tool
The smbpasswd tool has been enhanced to provide the following features:
Uses the -a option to add the Samba user to the LDAP directory
Uses the -x option to remove the Samba user from the LDAP
directory
You must ensure that the posix user existing in the LDAP directory
before you run the smbpasswd -a command to add the sambaAccount
information to that posix user.