[Samba] Can't join Windows 7 Pro/XP to samba PDC

Andres Tarallo atarallo at gmail.com
Wed Mar 23 07:29:02 MDT 2011

Hi !!!!!

I have installed samba 3.5.4 on OpenSuSE 11.3. It's configured as a
PDC with LDAP backend.The LDAP backend was populated with the help of
smbldap-tools. Here is the global section of my smb.conf

       workgroup = ARAMDA
       map to guest = Bad User
       passdb backend = ldapsam:ldap://localhost
       log level = 3
       log file = /var/log/samba.log
       printcap name = cups
       add user script = ldapsmb -a -u "%u"
       delete user script = ldapsmb -d -u "%u"
       add group script = ldapsmb -a -g "%g"
       delete group script = ldapsmb -d -g "%g"
       add user to group script = ldapsmb -j -u "%u" -g "%g"
       delete user from group script = ldapsmb -j -u "%u" -g "%g"
       set primary group script = ldapsmb -m -u "%u" -gid "%g"
       add machine script = /usr/sbin/smbldap-useradd -t 0 -g 1515 -w "%u"
       logon path = \\%L\profiles\.msprofile
       logon drive = Z:
       logon home = \\%L\%U\.9xprofile
       domain logons = Yes
       os level = 65
       preferred master = Yes
       domain master = Yes
       wins support = Yes
       ldap admin dn = cn=replicasamba,dc=aramda,dc=uy
       ldap group suffix = ou=Groups
       ldap idmap suffix = ou=Idmap
       ldap machine suffix = ou=Computers
       ldap passwd sync = yes
       ldap suffix = dc=aramda,dc=uy
       ldap ssl = no
       ldap user suffix = ou=People
       add share command = /var/lib/samba/scripts/modify_samba_config.pl
       delete share command = /var/lib/samba/scripts/modify_samba_config.pl
       usershare allow guests = Yes
       hosts allow =, 172.16.1.
       cups options = raw

In the workstations with Windows 7 Pro, we try to join them to the
domain. We get a message saying that can't join them. In samba.log we
found this

[2011/03/18 10:45:46.419648,  3]
  _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -t
0 -g 1515 -w "cpd-sist03$"' gave 0
[2011/03/18 10:45:46.421589,  3]
  pdb_default_create_user: failed to create a new user structure:

Any help appreciated, we seem to be in a dead end.


More information about the samba mailing list