You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify the remote certificate for LDAPs connections. If disabled, any remote certificate will be
120
237
accepted which exposes you to possible man-in-the-middle attacks. Note that the server's
@@ -123,23 +240,51 @@ See below how to trust CAs without installing them system-wide.
123
240
124
241
This options needs OpenSSL >= 1.0.2; it is unavailable if compiled with older versions.
125
242
126
-
## ssl_ca_file
127
-
expected value: file path
243
+
When `chain` is given, verify cert chain but not hostname/IP in SAN
244
+
245
+
### ssl_ca_file
246
+
247
+
* Syntax: ssl_ca_file _file-path_;
248
+
* Default: --;
249
+
* Context: `ldap_server` block
128
250
129
251
Trust the CA certificate in this file (see ssl_check_cert above).
130
252
131
-
## ssl_ca_dir
132
-
expected value: directory path
253
+
### ssl_ca_dir
254
+
255
+
* Syntax: ssl_ca_file _dir-path_;
256
+
* Default: --;
257
+
* Context: `ldap_server` block
133
258
134
259
Trust all CA certificates in this directory (see ssl_check_cert above).
135
260
136
261
Note that you need to provide hash-based symlinks in the directory for this to work;
137
262
you'll basically need to run OpenSSL's c_rehash command in this directory.
138
263
139
-
## referral
140
-
expected value: on, off
264
+
### referral
265
+
266
+
* Syntax: referral on | off;
267
+
* Default: referral on;
268
+
* Context: `ldap_server` block
141
269
142
270
LDAP library default is on. This option disables usage of referral messages from
143
271
LDAP server. Usefull for authenticating against read only AD server without access
144
272
to read write.
145
273
274
+
### attribute_header_prefix
275
+
276
+
* Syntax: attribute_header_prefix _string_;
277
+
* Default: attribute_header_prefix X-LDAP-ATTRS-;
278
+
* Context: `ldap_server` block
279
+
280
+
The prefix for the HEADER names used to carry the feteched attributes (default: "X-LDAP-ATTRS-")
281
+
282
+
### search_attribute
283
+
284
+
* Syntax: search_attribute _attr_;
285
+
* Default: --
286
+
* Context: `ldap_server` block
287
+
288
+
Add this LDAP attribute description for the search (require valid-user or require user). The attribute value will be return as a HTTP header (<attribute_header_prefix><search_attribute>) in the authentication response.
289
+
290
+
_Note_: This parameter can be repeated several times when several attributes need to be fetched
0 commit comments