./configure --with-ldapsam --with-ldap last part of configure fails after finding the standard Solaris 9 libldap.so libraries: checking for LDAP support... yes checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes checking lber.h usability... yes checking lber.h presence... yes checking for lber.h... yes checking for ber_scanf in -llber... no checking for ldap_init in -lldap... yes checking for ldap_domain2hostlist... no checking for ldap_set_rebind_proc... yes checking whether ldap_set_rebind_proc takes 3 arguments... 3 checking for ldap_initialize... no configure: error: libldap is needed for LDAP support root@sundev% ------------------------- Section from config.log: configure:22020: result: no configure:22059: checking for ldap_init in -lldap configure:22090: gcc -o conftest -g -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS =64 conftest.c -lldap -lsec -lgen -lresolv -lsocket -lnsl -ldl >&5 configure:22093: $? = 0 configure:22096: test -s conftest configure:22099: $? = 0 configure:22112: result: yes configure:22145: checking for ldap_domain2hostlist configure:22188: gcc -o conftest -g -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS =64 conftest.c -lldap -lsec -lgen -lresolv -lsocket -lnsl -ldl >&5 Undefined first referenced symbol in file ldap_domain2hostlist /var/tmp//cc0SF3xX.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:22191: $? = 1 configure: failed program was: #line 22150 "configure" #include "confdefs.h" ------------------- root@sundev% printenv PATH /usr/local/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/opt/SUNWrtvc/bin root@sundev% root@sundev% printenv LD_LIBRARY_PATH /usr/lib/sparcv9/lib:/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib -------------------- Note: OpenLDAP not installed on the host. Instead it contains a test installation of iPlanet directory server
Hmm - I'm not sure whether we support non-OpenLDAP servers when compiling Samba. I don't think many people have tried it. Jerry, what do you think about this?
cc me
It's the OpenLDAP 2.x client libraries that we need. Using a non-OpenLDAP server should be ok. We will probably see if we can support Sun's client libs later on.
Later releases may support the Sun libs if someone can spend enough time on a Solaris box or someone sends in a patch.
originally reported against one of the 3.0.0rc[1-4] releases. Cleaning up non-production versions.