summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2006-05-19 02:37:18 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2006-05-19 02:37:18 +0000
commitb45d53adc0cb62042b7146ea89afb80f7bc03ac9 (patch)
tree8f20174503c6d184eb79eb2316068b6e3183823f
parent77c0f33bf9d3d7f82f63388035963e70d15802e9 (diff)
[191832] changing password sometimes crashes the server [Admin Server password always remembers initial password on (part 2)]
acl_access_allowed: changed to check the given entry address with the one in aclpb. If they don't match, even if the sdn's match, let acl re-evaluate.
-rw-r--r--ldap/servers/plugins/acl/acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/plugins/acl/acl.c b/ldap/servers/plugins/acl/acl.c
index 77371737..d6dcbd6f 100644
--- a/ldap/servers/plugins/acl/acl.c
+++ b/ldap/servers/plugins/acl/acl.c
@@ -418,8 +418,8 @@ acl_access_allowed(
slapi_pblock_get( pb, SLAPI_OPERATION, &op);
if ( operation_is_flag_set(op, OP_FLAG_PS) ||
(aclpb->aclpb_curr_entry_sdn == NULL) ||
- (slapi_sdn_compare ( aclpb->aclpb_curr_entry_sdn, e_sdn) != 0)) {
-
+ (slapi_sdn_compare ( aclpb->aclpb_curr_entry_sdn, e_sdn) != 0) ||
+ (aclpb->aclpb_curr_entry != e) /* cannot trust the cached entry */ ) {
TNF_PROBE_0_DEBUG(acl_entry_first_touch_start,"ACL","");
slapi_log_error(loglevel, plugin_name,