Skip to content
Snippets Groups Projects
Commit 23a6aa37 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4596 control can be critical

parent fcab1dd1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment