]> git.sur5r.net Git - openldap/commitdiff
for consistency, always allow 'onelevel' as an alias for 'one' in dnstyle
authorPierangelo Masarati <ando@openldap.org>
Sat, 20 Dec 2003 15:18:21 +0000 (15:18 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 20 Dec 2003 15:18:21 +0000 (15:18 +0000)
servers/slapd/aclparse.c

index dc3c7d581242701c40b28f770c5e9877013d5261..0bb8461e0be7d2bd36cc86090547b517a8ce4f8e 100644 (file)
@@ -184,7 +184,8 @@ parse_acl(
                                                a->acl_dn_style = ACL_STYLE_BASE;
                                                ber_str2bv( right, 0, 1, &a->acl_dn_pat );
 
-                                       } else if ( strcasecmp( style, "one" ) == 0 ) {
+                                       } else if ( strcasecmp( style, "onelevel" ) == 0
+                                               || strcasecmp( style, "one" ) == 0 ) {
                                                a->acl_dn_style = ACL_STYLE_ONE;
                                                ber_str2bv( right, 0, 1, &a->acl_dn_pat );
 
@@ -401,7 +402,8 @@ parse_acl(
                                {
                                        sty = ACL_STYLE_BASE;
 
-                               } else if ( strcasecmp( style, "one" ) == 0 ) {
+                               } else if ( strcasecmp( style, "onelevel" ) == 0 ||
+                                       strcasecmp( style, "one" ) == 0 ) {
                                        sty = ACL_STYLE_ONE;
 
                                } else if ( strcasecmp( style, "subtree" ) == 0 ||