Support specifying path(s) to CA certificate(s)
Wires the 'ca_certificates' configuration option through to tls.connect's 'ca' option.
This commit is contained in:
parent
0966ba909b
commit
068df6f2b1
@ -42,6 +42,10 @@ class AuthLdap {
|
|||||||
clientOpts.tlsOptions.rejectUnauthorized = conf.check_certificate
|
clientOpts.tlsOptions.rejectUnauthorized = conf.check_certificate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (conf.ca_certificates !== undefined) {
|
||||||
|
clientOpts.tlsOptions.ca = conf.ca_certificates
|
||||||
|
}
|
||||||
|
|
||||||
const {base: searchBase} = conf
|
const {base: searchBase} = conf
|
||||||
const searchFilter = conf.filter || '(uid={{name}})'
|
const searchFilter = conf.filter || '(uid={{name}})'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user