Samba 3.0.23c + LDAP problems - SMB

This is a discussion on Samba 3.0.23c + LDAP problems - SMB ; Hello, 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Samba 3.0.23c + LDAP problems

  1. Samba 3.0.23c + LDAP problems

    Hello,

    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
    file.
    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.

    best regards
    Piotr Rezmer


  2. Re: Samba 3.0.23c + LDAP problems


    Użytkownik "Piotr Rezmer" napisał
    > 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.


+ Reply to Thread