From: Kurt Zeilenga Date: Sat, 1 Sep 2001 05:01:31 +0000 (+0000) Subject: Allow dn.base="" X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c9a238571c4806d119acca0e3dd54e4da46feb3;p=openldap Allow dn.base="" --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index e54db75c96..a7df30bd8e 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -136,9 +136,9 @@ parse_acl( split( argv[i], '=', &left, &right ); split( left, '.', &left, &style ); - if ( right == NULL || *right == '\0' ) { + if ( right == NULL ) { fprintf( stderr, - "%s: line %d: missing \"=\" in (or value after) \"%s\" in to clause\n", + "%s: line %d: missing \"=\" in \"%s\" in to clause\n", fname, lineno, left ); acl_usage(); } diff --git a/tests/data/slapd-acl.conf b/tests/data/slapd-acl.conf index 8a95c099fc..af31ce95e8 100644 --- a/tests/data/slapd-acl.conf +++ b/tests/data/slapd-acl.conf @@ -10,6 +10,10 @@ schemacheck off pidfile ./test-db/slapd.pid argsfile ./test-db/slapd.args +# global ACLs +access to dn.base="" attr=objectClass by users read +access to * by * read + ####################################################################### # ldbm database definitions ####################################################################### @@ -50,4 +54,4 @@ access to filter="objectclass=groupofnames" by dn="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US$" +rw stop by * break -access to * by * read +# fall into global ACLs