summaryrefslogtreecommitdiff
path: root/src
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
parent89bff384bccda7e211649dffc40f24a7bdd552df (diff)
downloadsssd-6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2.tar.gz
sssd-6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2.tar.bz2
sssd-6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2.zip
Do not throw a DP error when failing to delete a nonexistent entity
Diffstat (limited to 'src')
-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 776df1ac..a6fb05bd 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;
}