"exact" and "base" are equivalent

This commit is contained in:
Kurt Zeilenga 2003-10-19 19:16:21 +00:00
parent a37be29888
commit 2e84ab3a49
2 changed files with 6 additions and 7 deletions

View file

@ -179,7 +179,9 @@ parse_acl(
} else {
acl_regex_normalized_dn( right, &a->acl_dn_pat );
}
} else if ( strcasecmp( style, "base" ) == 0 ) {
} else if ( strcasecmp( style, "base" ) == 0
|| strcasecmp( style, "exact" ) == 0 )
{
a->acl_dn_style = ACL_STYLE_BASE;
ber_str2bv( right, 0, 1, &a->acl_dn_pat );
} else if ( strcasecmp( style, "one" ) == 0 ) {
@ -301,9 +303,9 @@ parse_acl(
|| strcasecmp( style, "regex" ) == 0 )
{
sty = ACL_STYLE_REGEX;
} else if ( strcasecmp( style, "exact" ) == 0 ) {
sty = ACL_STYLE_EXACT;
} else if ( strcasecmp( style, "base" ) == 0 ) {
} else if ( strcasecmp( style, "exact" ) == 0 ||
strcasecmp( style, "base" ) == 0 )
{
sty = ACL_STYLE_BASE;
} else if ( strcasecmp( style, "one" ) == 0 ) {
sty = ACL_STYLE_ONE;

View file

@ -982,9 +982,6 @@ typedef enum slap_style_e {
ACL_STYLE_SUBTREE,
ACL_STYLE_CHILDREN,
ACL_STYLE_ATTROF,
/* alternate names */
ACL_STYLE_EXACT = ACL_STYLE_BASE
} slap_style_t;
typedef struct slap_authz_info {