ITS#8840 Fix domainScope control to ensure the control value is absent as per Microsoft specification (https://msdn.microsoft.com/en-us/library/aa366979%28v=vs.85%29.aspx).

This commit is contained in:
Quanah Gibson-Mount 2018-04-30 17:27:36 +00:00
parent 59e9ff6243
commit f32384ef44

View File

@ -1681,8 +1681,8 @@ static int parseDomainScope (
return LDAP_PROTOCOL_ERROR;
}
if ( BER_BVISNULL( &ctrl->ldctl_value )) {
rs->sr_text = "domainScope control value not empty";
if ( !BER_BVISNULL( &ctrl->ldctl_value )) {
rs->sr_text = "domainScope control value not absent";
return LDAP_PROTOCOL_ERROR;
}