summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}