Ver código fonte

[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.

Noriko Hosoi 19 anos atrás
pai
commit
b45d53adc0
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      ldap/servers/plugins/acl/acl.c

+ 2 - 2
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,