From 4d46b8b7478799c0a8280f71dbad1e9069ab3e0a Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Fri, 12 May 2006 11:48:57 +0000 Subject: [PATCH] Additional fix for ITS#4522. The "dn=" ist not optional. --- doc/man/man5/slapd.access.5 | 11 ++--------- servers/slapd/aclparse.c | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/doc/man/man5/slapd.access.5 b/doc/man/man5/slapd.access.5 index 04d1d1e1b6..fd3fa6dd86 100644 --- a/doc/man/man5/slapd.access.5 +++ b/doc/man/man5/slapd.access.5 @@ -124,7 +124,7 @@ specifies the entity the access control directive applies to. It can have the forms .LP .nf - [dn[.]=] + dn[.]= filter= attrs=[ val[/matchingRule][.]=] .fi @@ -142,9 +142,6 @@ with The statement .B dn= selects the entries based on their naming context. -The -.B dn= -part is optional. The .B is a string representation of the entry's DN. @@ -156,11 +153,7 @@ form is given. .LP The .B -is also optional; however, it is recommended to specify both the -.B dn= -and the -.B -to avoid ambiguities. +is optional; however, it is recommended to specify it to avoid ambiguities. .B Base (synonym of .BR baseObject ), diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index c6160fc071..48ec0cd743 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -2192,9 +2192,9 @@ acl_usage( void ) { char *access = " ::= access to " - "[ by [ ] ]+ \n"; + "[ by [ ] [ ] ]+ \n"; char *what = - " ::= * | [dn[.]=] [filter=] [attrs=]\n" + " ::= * | dn[.=] [filter=] [attrs=]\n" " ::= [val[/][.]=] | \n" " ::= [ , ]\n" " ::= | @ | ! | entry | children\n"; -- 2.39.5