diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index c942737821..fd40a97687 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -601,7 +601,7 @@ acl_mask( * the values in the attribute group */ /* see if asker is listed in dnattr */ - if ( b->a_group_style != ACL_STYLE_REGEX ) { + if ( b->a_group_style == ACL_STYLE_REGEX ) { string_expand(buf, sizeof(buf), b->a_group_pat, e->e_ndn, matches); if ( dn_normalize(buf) == NULL ) { /* did not expand to a valid dn */