From f32384ef44d3ffe430b6afdad589f944e264f4dc Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Mon, 30 Apr 2018 17:27:36 +0000 Subject: [PATCH] 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). --- servers/slapd/controls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5