Pass through ldap starttls option

Fixing Issue #329

(cherry picked from commit b9169eb279020f21b372a843a83c71929fb6fd1d)

Signed-off-by: Bennet Bleßmann <bb-github@t-online.de>
This commit is contained in:
Bennet Bleßmann 2020-04-20 10:54:12 +02:00
parent 301ab04839
commit 5fad6a25a8
No known key found for this signature in database
GPG key ID: 3BE1A1A3CBC3CF99
2 changed files with 4 additions and 2 deletions

View file

@ -133,7 +133,8 @@ module.exports = {
searchAttributes: undefined, searchAttributes: undefined,
usernameField: undefined, usernameField: undefined,
useridField: undefined, useridField: undefined,
tlsca: undefined tlsca: undefined,
starttls: undefined
}, },
saml: { saml: {
idpSsoUrl: undefined, idpSsoUrl: undefined,

View file

@ -19,7 +19,8 @@ passport.use(new LDAPStrategy({
searchBase: config.ldap.searchBase || null, searchBase: config.ldap.searchBase || null,
searchFilter: config.ldap.searchFilter || null, searchFilter: config.ldap.searchFilter || null,
searchAttributes: config.ldap.searchAttributes || null, searchAttributes: config.ldap.searchAttributes || null,
tlsOptions: config.ldap.tlsOptions || null tlsOptions: config.ldap.tlsOptions || null,
starttls: config.ldap.starttls || null
} }
}, function (user, done) { }, function (user, done) {
var uuid = user.uidNumber || user.uid || user.sAMAccountName || undefined var uuid = user.uidNumber || user.uid || user.sAMAccountName || undefined