I have setup an LDAP server, where i authenticate my users. This is working as intended.
Now I have added TLS to libpam-ldap and libnss-ldap!
libpam-ldap works fine, with TLS, but libnss-ldap does not!
If I run id, when uri is ldaps://example.com in the /etc/libnss-ldap.conf file I get this error, and I am unable to query userids, group ids etc..
Code:
Nov 2 22:46:22 testserver id: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Nov 2 22:46:22 testserver id: nss_ldap: failed to bind to LDAP server ldaps://example.com: Can't contact LDAP server
Nov 2 22:46:22 testserver id: nss_ldap: reconnecting to LDAP server...
If I just uses ldap://example.com, everything is working as inteded.
Am I missing something for libnss-ldap to work with SSL/TLS ?
Kinda strange to me, since libpam-ldap is working with TLS, with "same" configuration.