summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-09-24 16:43:48 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-29 19:16:45 +0200
commitf3d4b3e03b1505a539977c86b59ff4aa967580d1 (patch)
tree8c3125b0121cda01bf705ed98f7c3ed23693dec7
parent663fd9bcdcc6b299785ba3434532cd7e6c462bff (diff)
downloadsssd-f3d4b3e03b1505a539977c86b59ff4aa967580d1.tar.gz
sssd-f3d4b3e03b1505a539977c86b59ff4aa967580d1.tar.xz
sssd-f3d4b3e03b1505a539977c86b59ff4aa967580d1.zip
LDAP: Do not require a dereference control to be retuned in a reply
When we attempt to request attributes that are not present in the dereferenced links, some serves might not send the dereference control back at all. Be permissive and treat the search as if it didn't find anything. Reviewed-by: Pavel Reichl <preichl@redhat.com>
-rw-r--r--src/providers/ldap/sdap_async.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index a8ea53113..8979de466 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -1799,8 +1799,13 @@ static errno_t sdap_x_deref_parse_entry(struct sdap_handle *sh,
}
if (!ctrls) {
+ /* When we attempt to request attributes that are not present in
+ * the dereferenced links, some serves might not send the dereference
+ * control back at all. Be permissive and treat the search as if
+ * it didn't find anything.
+ */
DEBUG(SSSDBG_MINOR_FAILURE, "No controls found for entry\n");
- ret = ENOENT;
+ ret = EOK;
goto done;
}