From: Pierangelo Masarati Date: Sat, 20 Dec 2003 15:18:21 +0000 (+0000) Subject: for consistency, always allow 'onelevel' as an alias for 'one' in dnstyle X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~123 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39574bcb5f6c66a7ef5cc26202a3328ab146baa0;p=openldap for consistency, always allow 'onelevel' as an alias for 'one' in dnstyle --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index dc3c7d5812..0bb8461e0b 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -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 ||