1 .TH LDAP.CONF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2003 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
7 ldap.conf, .ldaprc \- ldap configuration file
9 ETCDIR/ldap.conf, .ldaprc
11 If the environment variable \fBLDAPNOINIT\fP is defined, all
12 defaulting is disabled.
16 configuration file is used to set system-wide defaults to be applied when
21 Users may create an optional configuration file,
25 in their home directory which will be used to override the system-wide
29 in the current working directory is also used.
32 Additional configuration files can be specified using
33 the \fBLDAPCONF\fP and \fBLDAPRC\fP environment variables.
34 \fBLDAPCONF\fP may be set to the path of a configuration file. This
35 path can be absolute or relative to the current working directory.
36 The \fBLDAPRC\fP, if defined, should be the basename of a file
37 in the current working directory or in the user's home directory.
39 Environmental variables may also be used to augment the file based defaults.
40 The name of the variable is the option name with an added prefix of \fBLDAP\fP.
41 For example, to define \fBBASE\fP via the environment, set the variable
42 \fBLDAPBASE\fP to the desired value.
44 Some options are user\-only. Such options are ignored if present
50 The different configuration options are:
52 .B URI <ldap[s]://[name[:port]] ...>
53 Specifies the URI(s) of an LDAP server(s) to which the
55 library should connect. The URI scheme may be either
58 which refer to LDAP over TCP and LDAP over SSL (TLS) respectively.
59 Each server's name can be specified as a
60 domain-style name or an IP address literal. Optionally, the
61 server's name can followed by a ':' and the port number the LDAP
62 server is listening on. If no port number is provided, the default
63 port for the scheme is used (389 for ldap://, 636 for ldaps://).
64 A space separated list of URIs may be provided.
67 Specifies the default base DN to use when performing ldap operations.
68 The base must be specified as a Distinguished Name in LDAP format.
71 Specifies the default bind DN to use when performing ldap operations.
72 The bind DN must be specified as a Distinguished Name in LDAP format.
73 This is a user\-only option.
75 .B HOST <name[:port] ...>
76 Specifies the name(s) of an LDAP server(s) to which the
78 library should connect. Each server's name can be specified as a
79 domain-style name or an IP address and optionally followed by a ':' and
80 the port number the ldap server is listening on. A space separated
81 list of hosts may be provided.
83 is deprecated in favor of
87 Specifies the default port used when connecting to LDAP servers(s).
88 The port may be specified as a number.
90 is deprecated in favor of
93 .B SIZELIMIT <integer>
94 Specifies a size limit to use when performing searches. The
95 number should be a non-negative integer. \fISIZELIMIT\fP of zero (0)
96 specifies unlimited search size.
98 .B TIMELIMIT <integer>
99 Specifies a time limit to use when performing searches. The
100 number should be a non-negative integer. \fITIMELIMIT\fP of zero (0)
101 specifies unlimited search time to be used.
104 Specifies how alias dereferencing is done when performing a search. The
106 can be specified as one of the following keywords:
110 Aliases are never dereferenced. This is the default.
113 Aliases are dereferenced in subordinates of the base object, but
114 not in locating the base object of the search.
117 Aliases are only dereferenced when locating the base object of the search.
120 Aliases are dereferenced both in searching and in locating the base object
123 If OpenLDAP is built with Simple Authentication and Security Layer support,
124 there are more options you can specify.
126 .B SASL_MECH <mechanism>
127 Specifies the SASL mechanism to use.
128 This is a user\-only option.
130 .B SASL_REALM <realm>
131 Specifies the SASL realm.
132 This is a user\-only option.
134 .B SASL_AUTHCID <authcid>
135 Specifies the authentication identity.
136 This is a user\-only option.
138 .B SASL_AUTHZID <authcid>
139 Specifies the proxy authorization identity.
140 This is a user\-only option.
142 .B SASL_SECPROPS <properties>
143 Specifies Cyrus SASL security properties. The
145 can be specified as a comma-separated list of the following:
149 (without any other properties) causes the properties
150 defaults ("noanonymous,noplain") to be cleared.
153 disables mechanisms susceptible to simple passive attacks.
156 disables mechanisms susceptible to active attacks.
159 disables mechanisms susceptible to passive dictionary attacks.
162 disables mechanisms which support anonymous login.
165 requires forward secrecy between sessions.
168 requires mechanisms which pass client credentials (and allows
169 mechanisms which can pass credentials to do so).
172 specifies the minimum acceptable
173 .I security strength factor
174 as an integer approximating the effective key length used for
175 encryption. 0 (zero) implies no protection, 1 implies integrity
176 protection only, 56 allows DES or other weak ciphers, 112
177 allows triple DES and other strong ciphers, 128 allows RC4,
178 Blowfish and other modern strong ciphers. The default is 0.
181 specifies the maximum acceptable
182 .I security strength factor
185 description). The default is
188 .B maxbufsize=<factor>
189 specifies the maximum security layer receive buffer
190 size allowed. 0 disables security layers. The default is 65536.
193 If OpenLDAP is built with Transport Layer Security support, there
194 are more options you can specify.
197 Specifies whether client connections should use TLS by default. The
199 can be specified as one of the following keywords:
203 This is the default. Connections will be opened in the clear unless
204 TLS is explicitly specified (e.g. using an "ldaps://" URL.)
207 All connections will be established with TLS.
208 Note that using this option effectively makes the library open every
209 session as an ldaps session and is incompatible with the LDAPv3 StartTLS
213 .B TLS_CACERT <filename>
214 Specifies the file that contains certificates for all of the Certificate
215 Authorities the client will recognize.
217 .B TLS_CACERTDIR <path>
218 Specifies the path of a directory that contains Certificate Authority
219 certificates in separate individual files. The
221 is always used before
224 .B TLS_CERT <filename>
225 Specifies the file that contains the client certificate.
226 This is a user\-only option.
228 .B TLS_KEY <filename>
229 Specifies the file that contains the private key that matches the certificate
232 file. Currently, the private key must not be protected with a password, so
233 it is of critical importance that the key file is protected carefully. This
234 is a user\-only option.
236 .B TLS_RANDFILE <filename>
237 Specifies the file to obtain random bits from when /dev/[u]random is
238 not available. Generally set to the name of the EGD/PRNGD socket.
239 The environment variable RANDFILE can also be used to specify the filename.
241 .B TLS_REQCERT <level>
242 Specifies what checks to perform on server certificates in a TLS session,
245 can be specified as one of the following keywords:
249 The client will not request or check any server certificate.
252 The server certificate is requested. If no certificate is provided,
253 the session proceeds normally. If a bad certificate is provided, it will
254 be ignored and the session proceeds normally.
257 The server certificate is requested. If no certificate is provided,
258 the session proceeds normally. If a bad certificate is provided,
259 the session is immediately terminated.
262 These keywords are equivalent. The server certificate is requested. If no
263 certificate is provided, or a bad certificate is provided, the session
264 is immediately terminated. This is the default setting.
265 .SH "ENVIRONMENT VARIABLES"
268 disable all defaulting
271 path of a configuration file
274 basename of ldaprc file in $HOME or $CWD
277 Set <option-name> as from ldap.conf
281 system-wide ldap configuration file
283 .I $HOME/ldaprc, $HOME/.ldaprc
284 user ldap configuration file
287 local ldap configuration file
291 Kurt Zeilenga, The OpenLDAP Project
294 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
296 is derived from University of Michigan LDAP 3.3 Release.