HP CIFS Server 3.0d Administrator's Guide version A.02.02 (Edition 5)

LDAP Integration Support
Installing your Samba Users in the Directory
Chapter 6 143
Installing your Samba Users in the Directory
This section describes how to install and verify your samba users in your
LDAP directory.
Adding Credentials
When you use the HP CIFS Server with the LDAP feature support, the
smbpasswd command manipulates user accounts information on the
LDAP directory rather than the /var/opt/samba/private/smbpasswd
file. You must add the directory manager credentials to the
/var/opt/samba/private/secrets.tdb file before installing Samba
users to the LDAP directory.
Run the following command to save the LDAP credentials for the user
who can modify the LDAP directory for samba information:
$ smbpasswd -w <password of the LDAP Directory Manager>
For example, the following command saves the credentials of the LDAP
directory manager:
$ smbpasswd -w dmpasswd
Where dmpasswd is the password of the LDAP directory manager.
NOTE You must ensure that the password correctly matches with the password
for the ldap admin directory manager. This password is for user
administration and is stored for later use. If the password is incorrect, no
error message is displayed, but the user administration will fail when
attempted.
Verifying Samba Users
You can use the ldapsearch command-line utility to locate and retrieve
LDAP directory entries. This utility opens a connection to the specified
server using the specified Distinguished Name (DN) and password, and
locates entries based on the specified search filter.