>From d4c67d0c7636ecc90c929b9b1b85c985a3b4b809 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 24 Sep 2014 16:43:48 +0200 Subject: [PATCH] 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. --- src/providers/ldap/sdap_async.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index a8ea53113fe67eed6f50d32f3dd520968b63b76e..8979de466e10d760cf3b6c8824b7e6cccceb714a 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; } -- 1.9.3