diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-15 09:19:40 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-15 12:03:48 -0400 |
commit | d51dfcd1ca28ce1e02299ae42313fb575c485b46 (patch) | |
tree | ffea1f28cb1b7b9c63d47b87302aef7000e01fc6 /src/providers/ldap/ldap_id.c | |
parent | 0de124abf79be1bb9fcfec251b9df8880159817c (diff) | |
download | sssd-d51dfcd1ca28ce1e02299ae42313fb575c485b46.tar.gz sssd-d51dfcd1ca28ce1e02299ae42313fb575c485b46.tar.xz sssd-d51dfcd1ca28ce1e02299ae42313fb575c485b46.zip |
Fix regressions in the negative cachesssd-1.5.1-30.el5
Do not throw a DP error when failing to delete a nonexistent entity
Add debug logging to the negative cache
Fix a regression with the negative cache in multi-domain configurations
Fix regression where nonexistent entries were never added to the negative cache
Diffstat (limited to 'src/providers/ldap/ldap_id.c')
-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; } |