diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-15 09:19:40 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-15 11:36:50 -0400 |
commit | 6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2 (patch) | |
tree | dd2ad5b100ab9e4b185c9972a64c2b5d5d96f73a /src/providers/ldap | |
parent | 89bff384bccda7e211649dffc40f24a7bdd552df (diff) | |
download | sssd-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.c | 8 |
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; } |