[Samba] problem with ldap and Windows 2003 server
Anders Larsson
anders at dio.nu
Wed Jun 30 09:55:24 GMT 2004
Hi!
This is a AIX 5.1 with samba 3.0.4
I have added this line to smb.conf
passdb backend = ldapsam:ldap://testad.test.local/
#idmap backend = ldap:ldap://testad.test.local
ldap idmap suffix = ou=Idmap,dc=test,dc=local
ldap suffix = dc=test,dc=local
idmap uid = 40000-50000
idmap gid = 40000-50000
ldap passwd sync = only
ldap admin dn = cn=administrator,ou=Users,dc=test,dc=local
ldap user suffix = ou=User
ldap group suffix = cn=Groups
ldap machine suffix = cn=Computers
# ldap filter = (&(uid=%u)(objectclass=sambaSamAccount))
##(objectclass=sambaSamAccount))
ldap delete dn = no
ldap port = 389
ldap ssl = off
i have set the smbpasswd -w for the user administrator
openldap works
ldapsearch -h 10.5.0.49 -x -D cn=adminanla,cn=Users,dc=test,dc=local -w password -b dc=test,dc=local
# search result
search: 2
result: 4 Size limit exceeded
# numResponses: 16
# numEntries: 12
# numReferences: 3
this is the errors i get
idefix# smbpasswd -D 5 xanla
Netbios name list:-
my_netbios_names[0]="IDEFIX"
Trying to load: ldapsam:ldap://testad.test.local/
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend guest
Successfully added passdb backend 'guest'
Attempting to find an passdb backend to match
ldapsam:ldap://testad.test.local/ (ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=IDEFIX))]
smbldap_search: base => [dc=test,dc=local], filter =>
[(&(objectClass=sambaDomain)(sambaDomainName=IDEFIX))], scope => [2]
smbldap_open_connection: connection opened
failed to bind to server with dn= cn=administrator,ou=Users,dc=test,dc=local
Error: Can't contact LDAP server (unknown) Connection to LDAP Server failed for the 1 try!
and then it retries...
I dont get it :)
what have i missed
// Anders
More information about the samba
mailing list