~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to doc/man/man8/slapd.8

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Steve Langasek, Mathias Gug
  • Date: 2009-07-30 16:42:58 UTC
  • mfrom: (0.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090730164258-r282hhchgzytxm00
Tags: 2.4.17-1ubuntu1

[ Steve Langasek ]
* Fix up the lintian warnings:
  - add missing misc-depends on all packages
  - slapd, libldap-2.4-2-dbg sections changed to 'debug' to match archive
    overrides
  - bump Standards-Version to 3.8.2, no changes required.

[ Mathias Gug ]
* Resynchronise with Debian. Remaining changes:
  - AppArmor support:
    - debian/apparmor-profile: add AppArmor profile
    - updated debian/slapd.README.Debian for note on AppArmor
    - debian/slapd.dirs: add etc/apparmor.d/force-complain
    - debian/slapd.postrm: remove symlink in force-complain/ on purge
    - debian/rules: install apparmor profile.
  - Don't use local statement in config script as it fails if /bin/sh
    points to bash.
  - debian/slapd.postinst, debian/slapd.script-common: set correct
    ownership and permissions on /var/lib/ldap, /etc/ldap/slapd.d (group
    readable) and /var/run/slapd (world readable).
  - Enable nssoverlay:
    - debian/patches/nssov-build, debian/rules: Build and package the nss
      overlay.
    - debian/schema/misc.ldif: add ldif file for the misc schema which
      defines rfc822MailMember (required by the nss overlay).
  - debian/{control,rules}: enable PIE hardening
  - Use cn=config as the default configuration backend instead of
    slapd.conf. Migrate slapd.conf file to /etc/ldap/slapd.d/ on upgrade
    asking the end user to enter a new password to control the access to
    the cn=config tree.
  - debian/slapd.postinst: create /var/run/slapd before updating its
    permissions.
  - debian/slapd.init: Correctly set slapd config backend option even if
    the pidfile is configured in slapd default file.
* Dropped:
  - Merged in Debian:
    - Update priority of libldap-2.4-2 to match the archive override.
    - Add the missing ldapexop and ldapurl tools to ldap-utils, as well as
      the ldapurl(1) manpage.
    - Bump build-dependency on debhelper to 6 instead of 5, since that's
      what we're using.
    - Set the default SLAPD_SERVICES to ldap:/// ldapi:///, instead of using
      the built-in default of ldap:/// only.
  - Fixed in upstream release:
    - debian/patches/fix-ldap_back_entry_get_rwa.patch: fix test-0034
      failure when built with PIE.
    - debian/patches/gnutls-enable-v1-ca-certs: Enable V1 CA certs to be
      trusted.
  - Update Apparmor profile support: don't support upgrade from pre-hardy
    systems:
    - debian/slapd.postinst: Reload AA profile on configuration
    - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6
    - debian/control: Conflicts with apparmor-profiles <<
      2.1+1075-0ubuntu4 to make sure that if earlier version of
      apparmor-profiles gets installed it won't overwrite our profile.
    - follow ApparmorProfileMigration and force apparmor complain mode on
      some upgrades
    - debian/slapd.preinst: create symlink for force-complain on
      pre-feisty upgrades, upgrades where apparmor-profiles profile is
      unchanged (ie non-enforcing) and upgrades where apparmor profile
      does not exist.
  - debian/patches/autogen.sh: no longer needed with karmic libtool.
    - Call libtoolize with the --install option to install
      config.{guess,sub} files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
.TH SLAPD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2
2
.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
3
3
.\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4
 
.\" $OpenLDAP: pkg/ldap/doc/man/man8/slapd.8,v 1.64.2.10 2009/02/02 22:39:08 quanah Exp $
 
4
.\" $OpenLDAP: pkg/ldap/doc/man/man8/slapd.8,v 1.64.2.11 2009/06/03 01:42:01 quanah Exp $
5
5
.SH NAME
6
6
slapd \- Stand-alone LDAP Daemon
7
7
.SH SYNOPSIS
8
8
.B LIBEXECDIR/slapd 
9
 
.B [\-[4|6]]
10
 
.B [\-T {acl|add|auth|cat|dn|index|passwd|test}]
11
 
.B [\-d debug\-level]
12
 
.B [\-f slapd\-config\-file]
13
 
.B [\-F slapd\-config\-directory]
14
 
.B [\-h URLs]
15
 
.B [\-n service\-name] [\-s syslog\-level] [\-l syslog\-local\-user]
16
 
.B [\-o option[=value]]
17
 
.B [\-r directory]
18
 
.B [\-u user] [\-g group]
19
 
.B [\-c cookie]
 
9
[\c
 
10
.BR \-4 | \-6 ]
 
11
[\c
 
12
.BR \-T \ { acl \||\| a [ dd ]\||\| auth \||\| c [ at ]\||\|
 
13
.BR d [ n ]\||\| i [ ndex ]\||\| p [ asswd ]\||\| s [ chema ]\||\| t [ est ]}]
 
14
[\c
 
15
.BI \-d \ debug-level\fR]
 
16
[\c
 
17
.BI \-f \ slapd-config-file\fR]
 
18
[\c
 
19
.BI \-F \ slapd-config-directory\fR]
 
20
[\c
 
21
.BI \-h \ URLs\fR]
 
22
[\c
 
23
.BI \-n \ service-name\fR]
 
24
[\c
 
25
.BI \-s \ syslog-level\fR]
 
26
[\c
 
27
.BI \-l \ syslog-local-user\fR]
 
28
[\c
 
29
.BI \-o \ option\fR[ = value\fR]]
 
30
[\c
 
31
.BI \-r \ directory\fR]
 
32
[\c
 
33
.BI \-u \ user\fR]
 
34
[\c
 
35
.BI \-g \ group\fR]
 
36
[\c
 
37
.BI \-c \ cookie\fR]
20
38
.SH DESCRIPTION
21
39
.LP
22
40
.B Slapd
23
41
is the stand-alone LDAP daemon. It listens for LDAP connections on
24
 
any number of ports (default 389), responding
 
42
any number of ports (default \fB389\fP), responding
25
43
to the LDAP operations it receives over these connections.
26
44
.B slapd
27
45
is typically invoked at boot time, usually out of
56
74
.B \-6
57
75
Listen on IPv6 addresses only.
58
76
.TP
59
 
.B \-T {a|c|d|i|p|t|acl|auth}
60
 
Run in Tool mode. The additional argument selects whether to run as
61
 
slapadd, slapcat, slapdn, slapindex, slappasswd, or slaptest
62
 
(slapacl and slapauth need the entire "\fIacl\fP" and "\fIauth\fP"
63
 
option value to be spelled out, as "\fIa\fP" is reserved to
64
 
.BR slapadd ).
 
77
.BI \-T \ tool
 
78
Run in Tool mode. The \fItool\fP argument selects whether to run as
 
79
.IR slapadd ,
 
80
.IR slapcat ,
 
81
.IR slapdn ,
 
82
.IR slapindex ,
 
83
.IR slappasswd ,
 
84
.IR slapschema ,
 
85
or
 
86
.I slaptest
 
87
(\fIslapacl\fP and \fIslapauth\fP need the entire \fBacl\fP and \fBauth\fP
 
88
option value to be spelled out, as \fBa\fP is reserved to
 
89
.IR slapadd ).
65
90
This option should be the first option specified when it is used;
66
91
any remaining options will be interpreted by the corresponding 
67
92
slap tool program, according to the respective man pages.
68
 
Note that these tool programs will usually be symbolic links to slapd.
 
93
Note that these tool programs will usually be symbolic links to
 
94
.BR slapd .
69
95
This option is provided for situations where symbolic links 
70
96
are not provided or not usable.
71
97
.TP
72
 
.BI \-d " debug\-level"
 
98
.BI \-d \ debug-level
73
99
Turn on debugging as defined by
74
 
.IR debug\-level .
 
100
.IR debug-level .
75
101
If this option is specified, even with a zero argument,
76
102
.B slapd
77
103
will not fork or disassociate from the invoking terminal.  Some general
78
 
operation and status messages are printed for any value of \fIdebug\-level\fP.
79
 
\fIdebug\-level\fP is taken as a bit string, with each bit corresponding to a
 
104
operation and status messages are printed for any value of \fIdebug-level\fP.
 
105
\fIdebug-level\fP is taken as a bit string, with each bit corresponding to a
80
106
different kind of debugging information.  See <ldap_log.h> for details.
81
107
Comma-separated arrays of friendly names can be specified to select
82
108
debugging output of the corresponding debugging information.
83
109
All the names recognized by the \fIloglevel\fP directive 
84
110
described in \fBslapd.conf\fP(5) are supported.
85
 
If \fIdebug\-level\fP is \fB?\fP, a list of installed levels is printed,
 
111
If \fIdebug-level\fP is \fB?\fP, a list of installed debug-levels is printed,
86
112
and slapd exits.
87
113
 
88
114
Remember that if you turn on packet logging, packets containing bind passwords
89
115
will be output, so if you redirect the log to a logfile, that file should
90
116
be read-protected.
91
117
.TP
92
 
.BI \-s " syslog\-level"
 
118
.BI \-s \ syslog-level
93
119
This option tells
94
120
.B slapd
95
 
at what level debugging statements should be logged to the
 
121
at what debug-level debugging statements should be logged to the
96
122
.BR syslog (8)
97
123
facility.
98
 
The value "syslog\-level" can be set to any value or combination
99
 
allowed by the "-d" switch.
100
 
Slapd logs all messages selected by "syslog\-level" 
101
 
at the syslog(3) severity level "DEBUG",
102
 
on the unit specified with "-l".
 
124
The value \fIsyslog-level\fP can be set to any value or combination
 
125
allowed by the \fB\-d\fP switch.
 
126
Slapd logs all messages selected by \fIsyslog-leveli\fP 
 
127
at the
 
128
.BR syslog (3)
 
129
severity debug-level \fBDEBUG\fP,
 
130
on the unit specified with \fB\-l\fP.
103
131
.TP
104
 
.BI \-n " service\-name"
 
132
.BI \-n \ service-name
105
133
Specifies the service name for logging and other purposes.  Defaults
106
134
to basename of argv[0], i.e.: "slapd".
107
135
.TP
108
 
.BI \-l " syslog\-local\-user"
 
136
.BI \-l \ syslog-local-user
109
137
Selects the local user of the
110
138
.BR syslog (8)
111
139
facility. Value can be 
122
150
local users with the 
123
151
.BR syslog (8)
124
152
facility.
125
 
Logging to syslog(8) occurs at the "DEBUG" severity level.
 
153
Logging to syslog(8) occurs at the "DEBUG" severity debug-level.
126
154
.TP
127
 
.BI \-f " slapd\-config\-file"
 
155
.BI \-f \ slapd-config-file
128
156
Specifies the slapd configuration file. The default is
129
157
.BR ETCDIR/slapd.conf .
130
158
.TP
131
 
.BI \-F " slapd\-config\-directory"
 
159
.BI \-F \ slapd-config-directory
132
160
Specifies the slapd configuration directory. The default is
133
161
.BR ETCDIR/slapd.d .
134
162
If both
135
 
.B -f
 
163
.B \-f
136
164
and
137
 
.B -F
 
165
.B \-F
138
166
are specified, the config file will be read and converted to
139
167
config directory format and written to the specified directory.
140
168
If neither option is specified, slapd will attempt to read the
143
171
default config file is ignored. All of the slap tools that
144
172
use the config options observe this same behavior.
145
173
.TP
146
 
.BI \-h " URLlist"
 
174
.BI \-h \ URLlist
147
175
.B slapd
148
176
will by default serve
149
177
.B ldap:///
150
178
(LDAP over TCP on all interfaces on default LDAP port).  That is, 
151
 
it will bind using INADDR_ANY and port 389.
 
179
it will bind using INADDR_ANY and port \fB389\fP.
152
180
The
153
181
.B \-h
154
182
option may be used to specify LDAP (and other scheme) URLs to serve.
162
190
without a DN or other optional parameters (excepting as discussed below).
163
191
Support for the latter two schemes depends on selected configuration 
164
192
options.  Hosts may be specified by name or IPv4 and IPv6 address formats.
165
 
Ports, if specified, must be numeric.  The default ldap:// port is 389
166
 
and the default ldaps:// port is 636.
 
193
Ports, if specified, must be numeric.  The default ldap:// port is \fB389\fP
 
194
and the default ldaps:// port is \fB636\fP.
167
195
 
168
196
The listener permissions are indicated by
169
 
"x-mod=-rwxrwxrwx", "x-mod=0777" or "x-mod=777", where any 
170
 
of the "rwx" can be "-" to suppress the related permission, while any 
 
197
"x\-mod=\-rwxrwxrwx", "x\-mod=0777" or "x\-mod=777", where any 
 
198
of the "rwx" can be "\-" to suppress the related permission, while any 
171
199
of the "7" can be any legal octal digit, according to chmod(1).
172
 
The listeners can take advantage of the "x-mod"
 
200
The listeners can take advantage of the "x\-mod"
173
201
extension to apply rough limitations to operations, e.g. allow read operations
174
202
("r", which applies to search and compare), write operations ("w", 
175
203
which applies to add, delete, modify and modrdn), and execute operations
176
204
("x", which means bind is required).
177
205
"User" permissions apply to authenticated users, while "other" apply
178
206
to anonymous users; "group" permissions are ignored.
179
 
For example, "ldap:///????x-mod=-rw-------" means that read and write is only allowed
 
207
For example, "ldap:///????x\-mod=\-rw\-\-\-\-\-\-\-" means that read and write is only allowed
180
208
for authenticated connections, and bind is required for all operations.
181
209
This feature is experimental, and requires to be manually enabled
182
210
at configure time.
183
211
.TP
184
 
.BI \-r " directory"
 
212
.BI \-r \ directory
185
213
Specifies a directory to become the root directory.  slapd will
186
214
change the current working directory to this directory and
187
215
then
189
217
to this directory.  This is done after opening listeners but before
190
218
reading any configuration file or initializing any backend.  When
191
219
used as a security mechanism, it should be used in conjunction with
192
 
.B -u
 
220
.B \-u
193
221
and
194
 
.B -g
 
222
.B \-g
195
223
options.
196
224
.TP
197
 
.BI \-u " user"
 
225
.BI \-u \ user
198
226
.B slapd
199
227
will run slapd with the specified user name or id, and that user's
200
228
supplementary group access list as set with initgroups(3).  The group ID
201
 
is also changed to this user's gid, unless the -g option is used to
 
229
is also changed to this user's gid, unless the \fB\-g\fP option is used to
202
230
override.  Note when used with
203
 
.BR -r ,
 
231
.BR \-r ,
204
232
slapd will use the user database in the change root environment.
205
233
 
206
234
Note that on some systems, running as a non-privileged user will prevent
207
235
passwd back-ends from accessing the encrypted passwords.  Note also that
208
236
any shell back-ends will run as the specified non-privileged user.
209
237
.TP
210
 
.BI \-g " group"
 
238
.BI \-g \ group
211
239
.B slapd
212
240
will run with the specified group name or id.  Note when used with
213
 
.BR -r ,
 
241
.BR \-r ,
214
242
slapd will use the group database in the change root environment.
215
243
.TP
216
 
.BI \-c " cookie"
 
244
.BI \-c \ cookie
217
245
This option provides a cookie for the syncrepl replication consumer.
218
246
The cookie is a comma separated list of \fIname=value\fP pairs.
219
247
Currently supported syncrepl cookie fields are
226
254
and is used to find the syncrepl specification in 
227
255
.BR slapd.conf (5)
228
256
or
229
 
.BR slapd-config (5)
 
257
.BR slapd\-config (5)
230
258
having the matching replication identifier in its definition. The
231
259
.B rid
232
260
must be provided in order for any other specified values to be used.
244
272
.B rid
245
273
part to force a full reload.
246
274
.TP
247
 
.BI \-o " option[=value]"
 
275
.BI \-o \ option\fR[ = value\fR]
248
276
This option provides a generic means to specify options without the need to reserve
249
277
a separate letter for them.
250
278
 
251
279
It supports the following options:
252
280
.RS
253
281
.TP
254
 
slp={\fBon\fP|\fBoff\fP|\fIslp\-attrs\fP}
255
 
When SLP support is compiled into slapd, disable it (
256
 
.B off
257
 
), enable it by registering at SLP DAs without specific SLP attributes (
258
 
.B on
259
 
), or with specific SLP attributes
260
 
.I slp\-attrs
 
282
.BR slp= { on \||\| off \||\| \fIslp-attrs\fP }
 
283
When SLP support is compiled into slapd, disable it (\fBoff\fP),
 
284
 enable it by registering at SLP DAs without specific SLP attributes (\fBon\fP),
 
285
or with specific SLP attributes
 
286
.I slp-attrs
261
287
that must be an SLP attribute list definition according to the SLP standard.
262
288
 
263
 
For example, "-o slp=(tree=production),(server-type=OpenLDAP),(server-version=2.3.20)"
 
289
For example, \fB"slp=(tree=production),(server-type=OpenLDAP),(server\-version=2.4.15)"\fP
264
290
registers at SLP DAs with the three SLP attributes tree, server-type and server-version
265
291
that have the values given above.
266
292
This allows to specifically query the SLP DAs for LDAP servers holding the
286
312
.LP
287
313
.nf
288
314
.ft tt
289
 
        LIBEXECDIR/slapd -f /var/tmp/slapd.conf -d 255
 
315
        LIBEXECDIR/slapd \-f /var/tmp/slapd.conf \-d 255
290
316
.ft
291
317
.fi
292
318
.LP
294
320
.LP
295
321
.nf
296
322
.ft tt
297
 
        LIBEXECDIR/slapd -Tt
 
323
        LIBEXECDIR/slapd \-Tt
298
324
.ft
299
325
.fi
300
326
.LP
310
336
.BR slapdn (8),
311
337
.BR slapindex (8),
312
338
.BR slappasswd (8),
 
339
.BR slapschema (8),
313
340
.BR slaptest (8).
314
341
.LP
315
342
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)