summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-01-14 10:39:17 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-14 13:29:13 -0500
commit6a03b2a9c967d250825d614607d0bb7b901e8696 (patch)
tree026f0569117633ee487ff703dc5ec96d6366a10a /src/providers/ldap
parent09c0743a72604dcae32be246326990bc44e01b44 (diff)
downloadsssd-6a03b2a9c967d250825d614607d0bb7b901e8696.tar.gz
sssd-6a03b2a9c967d250825d614607d0bb7b901e8696.tar.xz
sssd-6a03b2a9c967d250825d614607d0bb7b901e8696.zip
Do not throw a DP error when a netgroup is not found
https://fedorahosted.org/sssd/ticket/775
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/ldap_id_netgroup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_id_netgroup.c b/src/providers/ldap/ldap_id_netgroup.c
index 6a668a1d6..11d0a39f3 100644
--- a/src/providers/ldap/ldap_id_netgroup.c
+++ b/src/providers/ldap/ldap_id_netgroup.c
@@ -201,14 +201,10 @@ static void netgroup_get_done(struct tevent_req *subreq)
if (ret == ENOENT) {
ret = sysdb_delete_netgroup(state->sysdb, state->domain, state->name);
- if (ret) {
+ if (ret != EOK && ret != ENOENT) {
tevent_req_error(req, ret);
return;
}
-
- state->dp_error = DP_ERR_OK;
- tevent_req_error(req, ENOENT);
- return;
}
state->dp_error = DP_ERR_OK;