Allow dn.base=""

This commit is contained in:
Kurt Zeilenga 2001-09-01 05:01:31 +00:00
parent ef7b181f8b
commit 2c9a238571
2 changed files with 7 additions and 3 deletions

View File

@ -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();
}

View File

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