Заменим штатный конфиг на шаблон из пакета smbldap-tools

cd /etc/samba
cp smb.conf smb.conf.backup
cp /usr/share/doc/smbldap-tools/examples/smb.conf .

Приведем в соответствие с нашей конфигурацией

[global]
  workgroup = DRIVESOURCE
  netbios name = daemon
  security = user
 
  # method 1:
  unix password sync = no
  ldap passwd sync = yes
  # method 2:
  #unix password sync = yes
  #ldap passwd sync = no
  #passwd program = /usr/sbin/smbldap-passwd -u "%u"
  #passwd chat = "Changing *\nNew password*" %n\n "*Retype new password*" %n\n"
 
  Unix charset = utf8
 
  #logon script = logon.bat
  #logon drive = H:
  #logon home = 
  #logon path = 
 
  passdb backend = ldapsam:ldap://127.0.0.1/
  ldap admin dn = cn=admin,dc=drivesource,dc=ru
  ldap suffix = dc=drivesource,dc=ru
  ldap group suffix = ou=Groups
  ldap user suffix = ou=Users
  ldap machine suffix = ou=Computers
  ldap idmap suffix = ou=Idmap
 
[homes]
  comment = Home Directories
  browseable = no
  read only = no
  create mask = 0700
  directory mask = 0700
  valid users = %S

Записываем пароль администратора OpenLDAP

smbpasswd -w password

Перезапустим сервер samba

/etc/init.d/samba restart