[Samba] libldap not found

Dan samba at the-rusty-nail.com
Mon Feb 13 18:12:53 GMT 2006


It sounds like it can not find your libldap library in any of the paths 
you specified.  Do you have a locate program such that you could try 
"locate  libldap" and see if/where it shows up?

David Shapiro wrote:
> 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


More information about the samba mailing list