summaryrefslogtreecommitdiff
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-05-20 05:42:00 -0400
commit307466d34a32324f1aebb0720f8fd98f9dfd4a9d (patch)
treec8dc7dd7f8c9e548af6773f8ee9c4bd311e8a13b /src
parentd35c8317ed23aff66fde8147bfa2ea91f43a12e4 (diff)
downloadsssd-307466d34a32324f1aebb0720f8fd98f9dfd4a9d.tar.gz
sssd-307466d34a32324f1aebb0720f8fd98f9dfd4a9d.tar.bz2
sssd-307466d34a32324f1aebb0720f8fd98f9dfd4a9d.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 b179c5ff..9e059bf8 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;
}