From: Pierangelo Masarati Date: Sat, 20 Dec 2003 15:31:54 +0000 (+0000) Subject: in the clause of ACLs, only 'attr=' or 'attrs=' are allowed; the former for... X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79bc396ed8965718e633dcba65c46f9ffbad66ea;p=openldap in the clause of ACLs, only 'attr=' or 'attrs=' are allowed; the former for backwards compatibility, while slapd.access(5) correctly uses only the latter form --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 0bb8461e0b..0d2695fb03 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -246,7 +246,8 @@ parse_acl( acl_usage(); } - } else if ( strncasecmp( left, "attr", 4 ) == 0 ) { + } else if ( strcasecmp( left, "attr" ) == 0 + || strcasecmp( left, "attrs" ) == 0 ) { a->acl_attrs = str2anlist( a->acl_attrs, right, "," ); if ( a->acl_attrs == NULL ) {