ITS#4596 control can be critical

This commit is contained in:
Howard Chu 2006-07-02 02:50:13 +00:00
parent fcab1dd1bc
commit 23a6aa373b

View File

@ -1928,11 +1928,9 @@ ppolicy_parseCtrl(
rs->sr_text = "passwordPolicyRequest control value not empty";
return LDAP_PROTOCOL_ERROR;
}
if ( ctrl->ldctl_iscritical ) {
rs->sr_text = "passwordPolicyRequest control invalid criticality";
return LDAP_PROTOCOL_ERROR;
}
op->o_ctrlflag[ppolicy_cid] = SLAP_CONTROL_NONCRITICAL;
op->o_ctrlflag[ppolicy_cid] = ctrl->ldctl_iscritical
? SLAP_CONTROL_CRITICAL
: SLAP_CONTROL_NONCRITICAL;
return LDAP_SUCCESS;
}