1 .TH SLAPACL 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapacl \- Check access to a list of attributes.
11 .B [\-D authcDN | \-U authcID]
17 .B [\-X authzID | \-o authzDN=DN]
18 .B [attr[/access][:value]] [...]
23 is used to check the behavior of the slapd in verifying access to data
24 according to ACLs, as specified in
28 configuration file or the
32 directives, and then parses the
34 list given on the command-line; if none is given, access to the
36 pseudo-attribute is tested.
43 which access is requested to; the corresponding entry is fetched
44 from the database, and thus it must exist.
45 The DN is also used to determine what rules apply; thus, it must be
46 in the naming context of a configured database. See also
50 enable debugging messages as defined by the specified
57 specify a DN to be used as identity through the test session
58 when selecting appropriate
60 clauses in access lists.
63 specify an alternative
68 specify a config directory.
73 are specified, the config file will be read and converted to
74 config directory format and written to the specified directory.
75 If neither option is specified, an attempt to read the
76 default config directory will be made before trying to use the default
77 config file. If a valid config directory exists then the
78 default config file is ignored.
80 .BI \-o " option[=value]"
85 Possible generic options/values are:
88 syslog=<subsystems> (see `\-s' in slapd(8))
89 syslog-level=<level> (see `\-S' in slapd(8))
90 syslog-user=<user> (see `\-l' in slapd(8))
94 Possible options/values specific to
112 See the related fields in
118 do not fetch the entry from the database.
119 In this case, if the entry does not exist, a fake entry with the DN
122 option is used, with no attributes.
123 As a consequence, those rules that depend on the contents
124 of the target object will not behave as with the real object.
125 The DN given with the
127 option is still used to select what rules apply; thus, it must be
128 in the naming context of a configured database.
133 specify an ID to be mapped to a
141 for details); mutually exclusive with
148 specify an authorization ID to be mapped to a
156 for details); mutually exclusive with \fB\-o\fP \fIauthzDN=DN\fP.
162 SBINDIR/slapacl -f ETCDIR/slapd.conf -v \\
163 -U bjorn -b "o=University of Michigan,c=US" \\
164 "o/read:University of Michigan"
168 tests whether the user
170 can access the attribute
173 .I o=University of Michigan,c=US
183 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)