Red Hat Bugzilla – Bug 640393
[RFE] Should check the cacertdir and the cacert during startup.
Last modified: 2015-04-24 07:20:53 EDT
Description of problem:
SSSD doesn't check cacertdir or the cacert during startup.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure sssd.conf with incorrect ldap_tls_cacertdir and ldap_tls_cacert.
id_provider = ldap
auth_provider = ldap
ldap_uri = ldaps://sssdldap.domain.com
ldap_search_base = dc=example,dc=com
cache_credentials = true
enumerate = true
ldap_tls_cacertdir = /etc/openldap/cacert
ldap_tls_cacert = /etc/openldap/cacert/cacert.asc
debug_level = 9
2. Restart sssd.
3. Observe sssd_DOMAIN.log or /var/log/messages.
(Tue Oct 5 23:14:57 2010) [sssd[be[LDAP]]] [sdap_get_generic_send] (3): ldap_search_ext failed: Can't contact LDAP server
(Tue Oct 5 23:14:57 2010) [sssd[be[LDAP]]] [sdap_get_generic_send] (3): Connection error: (null)
(Tue Oct 5 23:14:57 2010) [sssd[be[LDAP]]] [sdap_install_ldap_callbacks] (8): Trace: sh[0xffe3d70], connected, ops[(nil)], fde[0xffd0270], ldap[0xffe3f40]
(Tue Oct 5 23:14:57 2010) [sssd[be[LDAP]]] [fo_set_port_status] (4): Marking port 636 of server 'sssdldap.domain.com' as 'not working'
Oct 5 23:17:32 rhel5-6-Server sssd: Starting up
Oct 5 23:17:32 rhel5-6-Server sssd[be[LDAP]]: Starting up
Oct 5 23:17:32 rhel5-6-Server sssd[nss]: Starting up
Oct 5 23:17:32 rhel5-6-Server sssd[pam]: Starting up
Oct 5 23:17:43 rhel5-6-Server sssd[be[LDAP]]: LDAP connection error: (null)
Should check the cacertdir and the cacert during provider startup and fail with a debug message earlier and also report this into syslog.
Please check to see if the defined directory exists, if not ... error. Then check if the cacert file is defined and if it not ... error.
Thank you taking your time and submitting this request for Red Hat Enterprise Linux. Unfortunately, this bug was not given a priority and was deferred both in the upstream project and in Red Hat Enterprise Linux.
Given that we are unable to fulfill this request in following Red Hat Enterprise Linux releases, I am closing the Bugzilla as DEFERRED. To request that Red Hat re-considers the decision, please re-open the Bugzilla via appropriate support channels and provide additional business and/or technical details about its importance to you.
Note that you can still track this request or even contribute patches in the referred upstream Trac ticket.