]> git.sur5r.net Git - openldap/commitdiff
Must always accept "base" for ACL_STYLE_BASE since that is always how
authorHoward Chu <hyc@openldap.org>
Thu, 5 May 2005 21:47:40 +0000 (21:47 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 5 May 2005 21:47:40 +0000 (21:47 +0000)
it gets unparsed.

servers/slapd/aclparse.c

index 7a099972a6970291ed48eab50ce58a74f6ed957e..44fed13fcc2c0230fb9876449db1a3762955e35e 100644 (file)
@@ -483,7 +483,8 @@ parse_acl(
                                                } else {
                                                        /* FIXME: if the attribute has DN syntax, we might
                                                         * allow one, subtree and children styles as well */
-                                                       if ( !strcasecmp( style, "exact" ) ) {
+                                                       if ( !strcasecmp( style, "base" ) ||
+                                                               !strcasecmp( style, "exact" ) ) {
                                                                a->acl_attrval_style = ACL_STYLE_BASE;
 
                                                        } else if ( a->acl_attrs[0].an_desc->ad_type->