summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-05-17 11:00:58 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-10-26 10:28:19 -0400
commitda34d332631862453e80ab6cd43247ec58cbf775 (patch)
tree14fedc5b4d9914d2a223ae63d627faea8927acff /src
parente725104545cc1d852eea80000276ad53e3749887 (diff)
downloadsssd-da34d332631862453e80ab6cd43247ec58cbf775.tar.gz
sssd-da34d332631862453e80ab6cd43247ec58cbf775.tar.xz
sssd-da34d332631862453e80ab6cd43247ec58cbf775.zip
IPA Provider: don't fail if user is not a member of any groups
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_accounts.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index 8fd7cf2a3..f42fff294 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -2346,8 +2346,11 @@ static struct tevent_req *sdap_initgr_nested_send(TALLOC_CTX *memctx,
ret = sysdb_attrs_get_el(user, SYSDB_MEMBEROF, &el);
if (ret || !el || el->num_values == 0) {
DEBUG(4, ("User entry lacks original memberof ?\n"));
- /* user with no groups ? */
- tevent_req_error(req, ENOENT);
+ /* We can't find any groups for this user, so we'll
+ * have to assume there aren't any. Just return
+ * success here.
+ */
+ tevent_req_done(req);
tevent_req_post(req, ev);
return req;
}