in the <what> clause of ACLs, only 'attr=' or 'attrs=' are allowed; the former for backwards compatibility, while slapd.access(5) correctly uses only the latter form

This commit is contained in:
Pierangelo Masarati 2003-12-20 15:31:54 +00:00
parent 8e89944abc
commit 79bc396ed8

View File

@ -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 ) {