[Samba] Machine Accounts in Samba3 and OpenLDAP

Ruslanas Cechovskis r.cechovskis at forbis.lt
Mon Apr 26 09:15:38 GMT 2004


Hi,

Trying to run Samba3 and OpenLDAP.. and have a problem with adding computers
to domain
while checking logs i found that samba is doing such search :
smbldap_search: base => [dc=forbis,dc=lt], filter =>
[(&(uid=test$)(objectclas
s=sambaSamAccount))], scope => [2]
[2004/04/26 09:45:46, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1062)
  ldapsam_getsampwnam: Unable to locate user [test$] count=0

i use smbldap-useradd script to add computers .. and entry is without
sambaSamAccount atribute
in smbldap-useradd.pl i found comented entry that samba add sambaSamAccoun
atribute automaticaly... somehow it do not happens..

Also i tryed to put ldap filter = (uid=%u) entry in my smb.conf file ..also
nothing happend samba still searchs in sambaSamAccount

Tryed to uncoment this part of code ... script adds sambaSamAccount atribute
.. but still cant join domain.. windows message is same "The user name could
be not find"

And right now im out of ideas ... any help ?

Su pagarba,

Ruslanas Cechovskis
UAB "Forbis" inzinerius



More information about the samba mailing list