diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-12-05 22:33:50 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-08 12:02:56 -0500 |
commit | 17707de12d69baa3bb2490ce9f0aeed7d4a0a7a0 (patch) | |
tree | 733543cf2d52c765650bcf147d1ccd3566b436a1 | |
parent | 91e777ed1d8cee2104ca895993c6be42a8c3d151 (diff) | |
download | sssd_unused-17707de12d69baa3bb2490ce9f0aeed7d4a0a7a0.tar.gz sssd_unused-17707de12d69baa3bb2490ce9f0aeed7d4a0a7a0.tar.xz sssd_unused-17707de12d69baa3bb2490ce9f0aeed7d4a0a7a0.zip |
LDAP provider: Error while setting the nocanon option should not be fatal
https://fedorahosted.org/sssd/ticket/1100
-rw-r--r-- | src/providers/ldap/sdap_async_connection.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index 045f009c..263db3c5 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -264,9 +264,15 @@ static void sdap_sys_connect_done(struct tevent_req *subreq) lret = ldap_set_option(state->sh->ldap, LDAP_OPT_X_SASL_NOCANON, sasl_nocanon ? LDAP_OPT_ON : LDAP_OPT_OFF); if (lret != LDAP_OPT_SUCCESS) { - DEBUG(1, ("Failed to set LDAP SASL nocanon option to %s\n", - sasl_nocanon ? "true" : "false")); - goto fail; + /* Do not fail, just warn into both debug logs and syslog */ + DEBUG(SSSDBG_MINOR_FAILURE, + ("Failed to set LDAP SASL nocanon option to %s. If your system " + "is configured to use SASL, LDAP operations might fail.\n", + sasl_nocanon ? "true" : "false")); + sss_log(SSS_LOG_INFO, + "Failed to set LDAP SASL nocanon option to %s. If your system " + "is configured to use SASL, LDAP operations might fail.\n", + sasl_nocanon ? "true" : "false"); } /* if we do not use start_tls the connection is not really connected yet |