1 .TH SLAPACL 8C "2008/07/16" "OpenLDAP 2.4.11"
2 .\" Copyright 2004-2008 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
5 slapacl \- Check access to a list of attributes.
10 .B [\-D authcDN | \-U authcID]
16 .B [\-X authzID | \-o authzDN=DN]
17 .B [attr[/access][:value]] [...]
22 is used to check the behavior of the slapd in verifying access to data
23 according to ACLs, as specified in
27 configuration file, reads in the
29 directives, and then parses the
31 list given on the command-line; if none is given, access to the
33 pseudo-attribute is tested.
40 which access is requested to; the corresponding entry is fetched
41 from the database, and thus it must exist.
42 The DN is also used to determine what rules apply; thus, it must be
43 in the naming context of a configured database. See also
47 enable debugging messages as defined by the specified
54 specify a DN to be used as identity through the test session
55 when selecting appropriate
57 clauses in access lists.
60 specify an alternative
65 specify a config directory.
70 are specified, the config file will be read and converted to
71 config directory format and written to the specified directory.
72 If neither option is specified, an attempt to read the
73 default config directory will be made before trying to use the default
74 config file. If a valid config directory exists then the
75 default config file is ignored.
77 .BI \-o " option[=value]"
82 Possible generic options/values are:
85 syslog=<subsystems> (see `\-s' in slapd(8))
86 syslog-level=<level> (see `\-S' in slapd(8))
87 syslog-user=<user> (see `\-l' in slapd(8))
91 Possible options/values specific to
109 See the related fields in
115 do not fetch the entry from the database.
116 In this case, if the entry does not exist, a fake entry with the DN
119 option is used, with no attributes.
120 As a consequence, those rules that depend on the contents
121 of the target object will not behave as with the real object.
122 The DN given with the
124 option is still used to select what rules apply; thus, it must be
125 in the naming context of a configured database.
130 specify an ID to be mapped to a
138 for details); mutually exclusive with
145 specify an authorization ID to be mapped to a
153 for details); mutually exclusive with \fB\-o\fP \fIauthzDN=DN\fP.
159 /usr/sbin/slapacl -f //etc/openldap/slapd.conf -v \\
160 -U bjorn -b "o=University of Michigan,c=US" \\
161 "o/read:University of Michigan"
165 tests whether the user
167 can access the attribute
170 .I o=University of Michigan,c=US
180 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
182 .\" Shared Project Acknowledgement Text
183 .B "OpenLDAP Software"
184 is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
185 .B "OpenLDAP Software"
186 is derived from University of Michigan LDAP 3.3 Release.