summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-03-15 13:44:56 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-03-16 14:08:33 -0400
commitf65143669a49b8394dbd99a2215392a36e7aef7a (patch)
tree132aa086e4ca945b951ede6610a11e2b6312a523 /src
parent5b9c04e210aaf36d45d346dac38b8f7f70e17025 (diff)
downloadsssd-f65143669a49b8394dbd99a2215392a36e7aef7a.tar.gz
sssd-f65143669a49b8394dbd99a2215392a36e7aef7a.tar.bz2
sssd-f65143669a49b8394dbd99a2215392a36e7aef7a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_connection.c23
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 2b7f8c93..4932465a 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) {