Samba 3.0.23c + LDAP problems
Dis anyone succeed in connecting latest samba release with ldap? I have
problems with release 3.0.23c. I get following messages in log.smbd
[2006/10/25 16:37:27, 0] smbd/server.c:main(847)
smbd version 3.0.23c started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/10/25 16:37:27, 0] lib/smbldap.c:smb_ldap_setup_conn(638)
ldap_initialize: Bad parameter to an ldap routine
[2006/10/25 16:37:27, 1] lib/smbldap.c:another_ldap_try(1150)
Connection to LDAP server failed for the 1 try!
I have also another server but with samba 3.0.12 which works with the same
LDAP server and everything is ok.
Smb.conf is configured exactly the same way on both machines.
Faulty samba server machine also uses different(latest) version
smbldap-tools. I'm able to do smbldap-populate, add LDAP users and groups,
so it looks like ldap client is working fine. Also ldapsearch is working
My smb.conf file contains:
passdb backend = ldapsam:ldap://172.27.78.10,smbpasswd
So it's normal entry.
I checked source file smbldap.c and the problem is either with
ldap_initialize() function or its first parameter which is passed by other
function. I checked the internet for ldat_initialize() and it says it's
rather undocumented function which may replace ldap_init() function. There's
#define HAVE_LDAP_INITIALIZE in config.h, however when I switched it off, it
was not possible to compile some files.
Re: Samba 3.0.23c + LDAP problems
Użytkownik "Piotr Rezmer" <email@example.com> napisał[color=blue]
> My smb.conf file contains:
> passdb backend = ldapsam:ldap://172.27.78.10,smbpasswd
I've found that samba no longer supports using more than 1 backend for
passdb so correct entry should look
passdb backend = ldapsam:ldap://172.27.78.10
After that change, samba starts fine.