ITS#8909 fix "authz-policy all" condition

Broken since original commit 113727ba
This commit is contained in:
Howard Chu 2018-08-29 01:13:05 +01:00
parent 0f320b3442
commit 36e4dd2828

View file

@ -2074,7 +2074,7 @@ int slap_sasl_authorized( Operation *op,
if( authz_policy & SASL_AUTHZ_TO ) {
rc = slap_sasl_check_authz( op, authcDN, authzDN,
slap_schema.si_ad_saslAuthzTo, authcDN );
if( rc == LDAP_SUCCESS && !(authz_policy & SASL_AUTHZ_AND) ) {
if(( rc == LDAP_SUCCESS ) ^ (( authz_policy & SASL_AUTHZ_AND) != 0)) {
goto DONE;
}
}