diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-09-24 16:43:48 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-09-29 19:16:45 +0200 |
commit | f3d4b3e03b1505a539977c86b59ff4aa967580d1 (patch) | |
tree | 8c3125b0121cda01bf705ed98f7c3ed23693dec7 /src/providers/ldap/sdap_async.c | |
parent | 663fd9bcdcc6b299785ba3434532cd7e6c462bff (diff) | |
download | sssd-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>
Diffstat (limited to 'src/providers/ldap/sdap_async.c')
-rw-r--r-- | src/providers/ldap/sdap_async.c | 7 |
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; } |