Modify your smb.conf file to include the necessary ldap parameters and then set the LDAP secret password with smbpasswd -w. Then use pdbedit to export your users to the LDAP database, like so: pdbedit -i smbpasswd -e ldapsam Good luck!