[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: libsldap: Status: 91 Mesg: openConnection: failed to connect using TLS (No such file or directory)



libsldap is a solaris ldap lib not an openldap one. Are you sure your
applications are compiled against the correct libraries?

Yes.

ldd /opt/samba/sbin/smbd
        libldap.so.199 =>   /opt/samba/lib/libldap.so.199
        liblber.so.199 =>   /opt/samba/lib/liblber.so.199
        libsendfile.so.1 => /usr/lib/libsendfile.so.1
        libsec.so.1 =>      /usr/lib/libsec.so.1
        libgen.so.1 =>      /usr/lib/libgen.so.1
        libresolv.so.2 =>   /usr/lib/libresolv.so.2
        libsocket.so.1 =>   /usr/lib/libsocket.so.1
        libnsl.so.1 =>      /usr/lib/libnsl.so.1
        libdl.so.1 =>       /usr/lib/libdl.so.1
        libiconv.so.2 =>    /opt/samba/lib/libiconv.so.2
        libc.so.1 =>        /usr/lib/libc.so.1
        libmp.so.2 =>       /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

ldd /opt/postfix/libexec/bounce
        libldap-2.2.so.7 =>   /opt/openldap/lib/libldap-2.2.so.7
        liblber-2.2.so.7 =>   /opt/openldap/lib/liblber-2.2.so.7
        libsasl2.so.2 =>      /opt/cyrus/lib/libsasl2.so.2
        libssl.so.0.9.7 =>    /opt/openssl/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 => /opt/openssl/lib/libcrypto.so.0.9.7
        libresolv.so.2 =>     /usr/lib/libresolv.so.2
        libsocket.so.1 =>     /usr/lib/libsocket.so.1
        libnsl.so.1 =>        /usr/lib/libnsl.so.1
        libc.so.1 =>          /usr/lib/libc.so.1
        libgen.so.1 =>        /usr/lib/libgen.so.1
        libdl.so.1 =>         /usr/lib/libdl.so.1
        libmp.so.2 =>         /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

I know that libsldap is a Solaris LDAP library. But strange is, that the error only occurs with software that was compiled with OpenLDAP. The software was compiled on Solaris 8 and runs on Solaris 9 because I needed to make a package that runs on both versions.

The errors disappear when I disable the LDAP group lookup in /etc/nsswitch.conf:

passwd:     files ldap
group:      files

But the LDAP group lookup works fine both as root and as the users under which the process is running.

Regards,
Bernd