summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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) {