Fix checkCertificate (thx @wrigby).
This commit is contained in:
parent
7a4dcd52c4
commit
047fa5b2db
@ -45,7 +45,7 @@ class AuthLdap {
|
||||
|
||||
const {tlsOptions} = clientOpts
|
||||
|
||||
tlsOptions.rejectUnauthorized = !checkCertificate
|
||||
tlsOptions.rejectUnauthorized = checkCertificate
|
||||
if (certificateAuthorities) {
|
||||
tlsOptions.ca = certificateAuthorities.map(path => readFileSync(path))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user