This is Interesting: Free IT Magazines  
Home > Archive > Samba > June 2004 > [Samba] problem with ldap and Windows 2003 server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [Samba] problem with ldap and Windows 2003 server
Anders Larsson

2004-06-30, 7:48 am

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=loc
al
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)(sambaDomainNam
e=IDEFIX))]
smbldap_search: base => [dc=test,dc=local], filter =>
[(& (objectClass=sambaDomain)(sambaDomainNam
e=IDEFIX))], scope => [2]
smbldap_open_connection: connection opened
failed to bind to server with dn= cn=administrator,ou=Users,dc=test,dc=loc
al
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

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2010 webservertalk.com