From f28ab6e572445cb9c12ba23c328d4424eebeecb5 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mar 16 2012 18:08:28 +0000 Subject: LDAP: Errors retrieving the RootDSE should not be fatal 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 --- diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index 2b7f8c9..4932465 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) {