Setting Up CIFS Server (Samba) In an LDAP Environment
Setting Up CIFS Server (Samba) in an LDAP Environment
14
homeDrive: U:
smbHome: \\cai\homes
profilePath: \\cai\profiles\ddmc
scriptPath: ddmc.cmd
lmPassword: XXX
ntPassword: XXX
Setting passwords for your new users
You can set passwords for your CIFS Server users with the smbpasswd command:
smbpasswd <username>
New SMB password:
Retype new SMB password:
ldap_connect_system: Binding to ldap server as "cn=Directory Manager"
ldap_connect_system: Binding to ldap server as "cn=Directory Manager"
Password changed for user <username>.
Part Six: Start CIFS Server and test
Start CIFS Server and check it out!
Starting CIFS Server
/opt/samba/sbin/nmbd -D
/opt/samba/sbin/smbd –D
or
/opt/samba/bin/startsmb
Verifying CIFS Server LDAP user and password
authentication
use smbclient to verify user and password authentication:
/opt/samba/bin/smbclient –L localhost –U <CIFS Server user ONLY contained in
LDAP directory>
And you’re DONE!