From 154e62fc712f4c994fbc684386302edca277a99a Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 5 Jun 2013 12:53:41 +0200 Subject: Intermittent fix for get_user_and_group_users_done users_get_recv() never returns ENOENT. In general it should return EOK in the case no matching user was found. But since I forget to handle a SID based filter properly in sdap_get_users_process() an error is returned in this case which makes get_user_and_group_users_done() work as expected with this patch. There is an upcoming enhancement to users_get_recv() which I'm planning to use for a full fix. --- src/providers/ldap/ldap_id.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 72fdd9c26..13b607ac3 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -1325,9 +1325,6 @@ static void get_user_and_group_users_done(struct tevent_req *subreq) if (ret == EOK) { /* Matching user found */ tevent_req_done(req); return; - } else if (ret != ENOENT) { - tevent_req_error(req, ret); - return; } subreq = groups_get_send(req, state->ev, state->id_ctx, state->filter_val, -- cgit