[Samba] add machine account + ldap (again)

Geraldo Coelho geraldo.coelho at grupora.com.br
Mon Jun 26 11:29:58 GMT 2006

Hi all,

I have a problem. I need to create an account machine with samba.
The smbldap-useradd created the account, but only an unix account, like

dn: uid=notedell$,ou=computers,dc=grupora,dc=com,dc=br
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
cn: notedell$
sn: notedell$
uid: notedell$
uidNumber: 15025
gidNumber: 515
homeDirectory: /dev/null
loginShell: /bin/false
description: Computer
gecos: Computer

But, the samba doesn't created an valid account.
Like this:

dn: uid=notedell$,ou=Computers,dc=grupora,dc=com,dc=br
uid: notedell$
sambaSID: S-1-5-21-243819190-2830005574-892836686-31036
sambaPrimaryGroupSID: S-1-5-21-243819190-2830005574-892836686-515
objectClass: sambaSamAccount
objectClass: account
displayName: NOTEDELL$
sambaPwdCanChange: 1150829558
sambaPwdMustChange: 2147483647
sambaNTPassword: D7CD95C07847C9DD38F14D8751D0B8F4
sambaPwdLastSet: 1150829558
sambaAcctFlags: [W          ]

so, windows rejects my login with a "bad password" error
and doesn't join the domain

I'm using user id = 0 (root)

Someone knows what's happening.

Thanks in advance
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 25/6/2006

More information about the samba mailing list