diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-15 13:44:56 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-16 14:18:54 -0400 |
commit | 21bbf10df9fc7a822a644e80e275a40564c105a5 (patch) | |
tree | 11ba4de7666011c44d3707720e16f03edfb2cb85 /src | |
parent | f422504dd466e258ff79521e280e08ae33631d37 (diff) | |
download | sssd-21bbf10df9fc7a822a644e80e275a40564c105a5.tar.gz sssd-21bbf10df9fc7a822a644e80e275a40564c105a5.tar.xz sssd-21bbf10df9fc7a822a644e80e275a40564c105a5.zip |
LDAP: Errors retrieving the RootDSE should not be fatalsssd-1.8.0-16.el6
If we can't reach the RootDSE, let's just proceed as if it's
unavailable with reasonable defaults. If we fail later on, that's
fine.
Fixes https://fedorahosted.org/sssd/ticket/1257
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_async_connection.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index 2b7f8c93d..4932465a1 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -1373,21 +1373,14 @@ static void sdap_cli_rootdse_done(struct tevent_req *subreq) return; } - else if (ret == ENOENT) { - /* RootDSE was not available on - * the server. - * Continue, and just assume that the - * features requested by the config - * work properly. - */ - state->use_rootdse = false; - rootdse = NULL; - } - - else { - tevent_req_error(req, ret); - return; - } + /* RootDSE was not available on + * the server. + * Continue, and just assume that the + * features requested by the config + * work properly. + */ + state->use_rootdse = false; + rootdse = NULL; } if (state->use_rootdse) { |