[Samba] SMB 3.0.1/LDAP Cannot add computer to domain

=?GB2312?Q?=D5=D4=D3=C0=C3=F7?= zhaoyongming at 3721.com
Fri Dec 19 10:03:55 GMT 2003

	You must add machine account into ldap first, 
	pdbedit -L -d 0
    find out if there exist you computer name with a $ suffix.
	here is my working example ldif
	use device and ipHost Class, you may use others as well. it just work for me.

dn: cn=statation.aaa.com,ou=Hosts,o=aaa
objectClass: top
objectClass: device
objectClass: sambaSamAccount
objectClass: ipHost
uid: statation$
uid: statation
ou: sysadmin
sambaSID: S-1-5-21-111111111-1111111111-1111111111-111111
sambaLMPassword: 842ED29E8B0AA719464905569BB447AE
sambaNTPassword: C759AE76899C698BCB247E29072CA82D
sambaPwdLastSet: 1071823632
sambaPwdCanChange: 1071823632
sambaPwdMustChange: 2147483647
sambaAcctFlags: [W          ]
displayName: statation
sambaPrimaryGroupSID: S-1-5-21-104386597-1723736802-2492567804-2999
manager: uid=usera,ou=People,o=aaa
owner: uid=usera,ou=People,o=aaa
cn: statation.aaa.com
cn: statation

More information about the samba mailing list