I have set up a small test network comprised of one NT 4 (SP6a) Workstation, one Windows 2000 Pro (SP3) and one Fedora Core 3 running samba 3.0.11 as a PDC. I'm using openLDAP 2.2.13 as the passdb backend with smbldap-tools 0.8.7-1. The Windows 2000 Pro machine can join the domain on the fly without any problems, but the NT 4 box gives me an error when I try to join: "The machine account for this computer either does not exist or is inaccessible". In the samba log I can see: [2005/03/09 13:15:26, 1] passdb/pdb_ldap.c:ldapsam_modify_entry(1479) ldapsam_modify_entry: Failed to modify user dn=uid=nt4box$,ou=People,dc=economists-inc,dc=com with: No such attribute modify/delete: sambaPrimaryGroupSID: no such value [2005/03/09 13:15:26, 0] passdb/pdb_ldap.c:ldapsam_update_sam_account(1694) ldapsam_update_sam_account: failed to modify user with uid = nt4box$, error: modify/delete: sambaPrimaryGroupSID: no such value (Success) In the smb.conf file I have: add machine script = /opt/IDEALX/sbin/smbldap-useradd -w '%u' When I run ./smbldap-useradd -w 'test' by hand it creates an entry without objectClass: sambaSamAccount: # test$, People, economists-inc.com dn: uid=test$,ou=People,dc=economists-inc,dc=com objectClass: top objectClass: inetOrgPerson objectClass: posixAccount cn: test$ sn: test$ uid: test$ uidNumber: 1017 gidNumber: 515 homeDirectory: /dev/null loginShell: /bin/false description: Computer gecos: Computer The NT machine can join the domain after I run ./smbldap-useradd -w 'nt4box' and then pdbedit -a -m -u 'nt4box', but not on the fly.
I cna guarantee this works correctly in 3.0.11. Probably a misconfiguration or bug the smbldap-tools. Reassigning.
I'm getting the same error with smbldap-tools-0.8.6-1 and smbldap-tools-0.8.5-3.
for NT4, server's account belong to the Domain User group. Try to use the 513 number for computer's account: in smbldap.conf, set the following parameter: > defaultComputerGid="513"
configuration problem for NT server
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.