Merge pull request #330 from Skgland/master

Pass through ldap starttls option
This commit is contained in:
Sheogorath 2020-04-23 23:34:46 +02:00 committed by GitHub
commit d2ace4b2a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

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