diff --git a/doc/man/man5/slapd.access.5 b/doc/man/man5/slapd.access.5 index 04d1d1e1b61b3fa5c67982a6dc6aa16ad8cb957c..fd3fa6dd864e57b7510216c284c0717cf3db48a9 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[.<dnstyle>]=]<dnpattern> + dn[.<dnstyle>]=<dnpattern> filter=<ldapfilter> attrs=<attrlist>[ val[/matchingRule][.<attrstyle>]=<attrval>] .fi @@ -142,9 +142,6 @@ with The statement .B dn=<dnpattern> selects the entries based on their naming context. -The -.B dn= -part is optional. The .B <dnpattern> is a string representation of the entry's DN. @@ -156,11 +153,7 @@ form is given. .LP The .B <dnstyle> -is also optional; however, it is recommended to specify both the -.B dn= -and the -.B <dnstyle> -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 c6160fc07196498e55b55a4a287a82ad65e65985..48ec0cd7437d5959d54a0b5474773b46c6383633 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -2192,9 +2192,9 @@ acl_usage( void ) { char *access = "<access clause> ::= access to <what> " - "[ by <who> <access> [ <control> ] ]+ \n"; + "[ by <who> [ <access> ] [ <control> ] ]+ \n"; char *what = - "<what> ::= * | [dn[.<dnstyle>]=<DN>] [filter=<filter>] [attrs=<attrspec>]\n" + "<what> ::= * | dn[.<dnstyle>=<DN>] [filter=<filter>] [attrs=<attrspec>]\n" "<attrspec> ::= <attrname> [val[/<matchingRule>][.<attrstyle>]=<value>] | <attrlist>\n" "<attrlist> ::= <attr> [ , <attrlist> ]\n" "<attr> ::= <attrname> | @<objectClass> | !<objectClass> | entry | children\n";