mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#4596 control can be critical
This commit is contained in:
parent
fcab1dd1bc
commit
23a6aa373b
1 changed files with 3 additions and 5 deletions
|
|
@ -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 a new issue