From: Quanah Gibson-Mount Date: Mon, 30 Apr 2018 17:27:36 +0000 (+0000) Subject: ITS#8840 Fix domainScope control to ensure the control value is absent as per Microso... X-Git-Url: https://git.sur5r.net/?p=openldap;a=commitdiff_plain;h=f32384ef44d3ffe430b6afdad589f944e264f4dc;ds=sidebyside 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). --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 5599bd7b9d..60b2245734 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -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; }