summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-04-15 09:19:40 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-04-15 11:36:50 -0400
commit6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2 (patch)
treedd2ad5b100ab9e4b185c9972a64c2b5d5d96f73a /src/providers/ldap
parent89bff384bccda7e211649dffc40f24a7bdd552df (diff)
downloadsssd-6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2.tar.gz
sssd-6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2.tar.xz
sssd-6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2.zip
Do not throw a DP error when failing to delete a nonexistent entity
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/ldap_id.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c
index 776df1ac2..a6fb05bd9 100644
--- a/src/providers/ldap/ldap_id.c
+++ b/src/providers/ldap/ldap_id.c
@@ -219,7 +219,7 @@ static void users_get_done(struct tevent_req *subreq)
case BE_FILTER_NAME:
ret = sysdb_delete_user(state, state->sysdb,
state->domain, state->name, 0);
- if (ret) {
+ if (ret != EOK && ret != ENOENT) {
tevent_req_error(req, ret);
return;
}
@@ -234,7 +234,7 @@ static void users_get_done(struct tevent_req *subreq)
ret = sysdb_delete_user(state, state->sysdb,
state->domain, NULL, uid);
- if (ret) {
+ if (ret != EOK && ret != ENOENT) {
tevent_req_error(req, ret);
return;
}
@@ -453,7 +453,7 @@ static void groups_get_done(struct tevent_req *subreq)
case BE_FILTER_NAME:
ret = sysdb_delete_group(state, state->sysdb,
state->domain, state->name, 0);
- if (ret) {
+ if (ret != EOK && ret != ENOENT) {
tevent_req_error(req, ret);
return;
}
@@ -468,7 +468,7 @@ static void groups_get_done(struct tevent_req *subreq)
ret = sysdb_delete_group(state, state->sysdb,
state->domain, NULL, gid);
- if (ret) {
+ if (ret != EOK && ret != ENOENT) {
tevent_req_error(req, ret);
return;
}