mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#4596 control can be critical
This commit is contained in:
parent
fcab1dd1bc
commit
23a6aa373b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user