]> git.sur5r.net Git - openldap/commitdiff
in the <what> clause of ACLs, only 'attr=' or 'attrs=' are allowed; the former for...
authorPierangelo Masarati <ando@openldap.org>
Sat, 20 Dec 2003 15:31:54 +0000 (15:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 20 Dec 2003 15:31:54 +0000 (15:31 +0000)
servers/slapd/aclparse.c

index 0bb8461e0be7d2bd36cc86090547b517a8ce4f8e..0d2695fb037b768184d49c296f49029716e1b700 100644 (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 ) {