[Samba] libldap not found

Dege, Robert C. robert.dege at ngc.com
Mon Feb 13 18:09:31 GMT 2006


I believe samba is looking for the libldap shared library.  Are you able
to find that on your system?

Also, check the config.log to find out more detailed information about
the error output.

-Rob

> -----Original Message-----
> From: samba-bounces+robert.dege=ngc.com at lists.samba.org 
> [mailto:samba-bounces+robert.dege=ngc.com at lists.samba.org] On 
> Behalf Of David Shapiro
> Sent: Monday, February 13, 2006 1:01 PM
> To: samba at lists.samba.org
> Subject: [Samba] libldap not found
> 
> Can anybody clue me in on why this build script is failing?  
>  
> 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... no
> checking for ldap_set_rebind_proc... no
> checking whether ldap_set_rebind_proc takes 3 arguments... 3
> configure: error: libldap is needed for LDAP support
> + [ 1 != 0 ]
> 
>  
> #!/bin/ksh -x
>  
> env CC=gcc \
> CFLAGS="-DPAM_AUTHTOK_RECOVER_ERR=PAM_AUTHTOK_RECOVERY_ERR
> -DPAM_EXTERN=extern -D_LINUX_SOURCE_COMPAT" \ 
> CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/ssl/include 
> -I/usr/local/openldap/include" \ 
> LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/cyrus-sasl/lib 
> -L/usr/local/openldap/lib -L/usr/local/ssl/lib" \ 
> ../configure --prefix=/usr/local/samba 
> --with-shared-modules=idmap_ad,idmap_rid \ --with-ads 
> --with-ldap --with-ldapsam --with-pam 
> --with-krb5=/usr/local/kerberos --with-winbind \ 
> --with-acl-support --with-utmp --with-quotas 
> --with-sendfile-support \ --with-aio-support 
> --enable-shared=no --enable-static=yes
>  
> if [ $? != 0 ]; then
>         echo "Configure failed so exiting..."
>         exit 1
> fi
>  
> /usr/local/bin/gmake && /usr/local/bin/gmake install
>  
> if [ $? != 0 ]; then
>         echo "Build failed so exiting..."
>         exit 1
> fi
>  
> for i in WINBIND pam_winbind.so; do
>         if [ -f /usr/lib/security/$i ]; then
>                 mv /usr/lib/security/$i /usr/lib/security/$i.old
>                 chmod 555 nsswitch/$i
>                 cp nsswitch/$i /usr/lib/security
>                 rm /usr/lib/security/$i.old
>         else
>                 cp nsswitch/$i /usr/lib/security
>         fi
> done
> 
>  
> David Shapiro
> Unix Team Lead
> 919-765-2011
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
> 


More information about the samba mailing list