pam_smbpass and LDAP....

Steve Langasek vorlon at
Thu Jul 25 09:07:03 GMT 2002

On Thu, Jul 25, 2002 at 01:50:47PM +0200, Bartlomiej Solarz-Niesluchowski wrote:
> I have troubles to run pam_smbpass when samba 2.2.5 (RH 73) is compiled 
> with ldapsam

> ./configure  i386-redhat-linux --prefix=/usr --exec-prefix=/usr 
> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib 
> --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com 
> --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/etc/samba 
> --with-fhs --with-privatedir=/etc/samba --with-lockdir=/var/cache/samba 
> --with-swatdir=/usr/share/swat 
> --with-codepagedir=/usr/share/samba/codepages --with-automount 
> --with-smbmount --with-pam --with-mmap --with-quotas --without-smbwrapper 
> --with-libsmbclient --with-utmp --with-piddir=/var/run/samba 
> --with-pam_smbpass --with-acl-support --with-profile --disable-static 
> --with-msdfs --with-ldapsam

> Jul 25 13:13:32 portraits passwd: PAM unable to 
> dlopen(/lib/security/
> Jul 25 13:13:32 portraits passwd: PAM [dlerror: 
> /lib/security/ undefined symbol: ldap_value_free]
> Jul 25 13:13:32 portraits passwd: PAM adding faulty module: 
> /lib/security/

> Can someone help me?

What does 'ldd /lib/security/' show you?

I've checked a pam_smbpass binary built from CVS HEAD, and it is
correctly linked against libldap; libldap provides the ldap_value_free
function.  If you're seeing different behavior, either -lldap is not
being correctly added to the LIBS line when Samba builds, or your
libldap is missing some symbols that pam_smbpass is expecting.

Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list