]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/aclparse.c
Silence warning. Also avoids pointless umask(0) when umask already is 0.
[openldap] / 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;