]> git.sur5r.net Git - openldap/commitdiff
ITS#6179 Don't require dn.regex in <who> to use expand style in <by>.
authorRein Tollevik <rein@openldap.org>
Tue, 23 Jun 2009 21:17:57 +0000 (21:17 +0000)
committerRein Tollevik <rein@openldap.org>
Tue, 23 Jun 2009 21:17:57 +0000 (21:17 +0000)
servers/slapd/aclparse.c

index 19db97fea04dcc1efd1df33d9521f5941a4fbea8..3f0e3817228ae1c2b5955c592693aa0eac31fb4a 100644 (file)
@@ -851,16 +851,6 @@ parse_acl(
                                        }
                                }
 
-                               /* expand in <who> needs regex in <what> */
-                               if ( ( sty == ACL_STYLE_EXPAND || expand )
-                                               && a->acl_dn_style != ACL_STYLE_REGEX )
-                               {
-                                       Debug( LDAP_DEBUG_CONFIG | LDAP_DEBUG_ACL, "%s: line %d: \"expand\" style "
-                                               "or modifier used in conjunction with a non-regex <what> clause.\n",
-                                               fname, lineno, 0 );
-                                               goto fail;
-                               }
-
                                if ( strncasecmp( left, "real", STRLENOF( "real" ) ) == 0 ) {
                                        is_realdn = 1;
                                        bdn = &b->a_realdn;