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

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

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

View file

@ -137,7 +137,8 @@
"resolutions": {
"**/tough-cookie": "~2.4.0",
"**/minimatch": "^3.0.2",
"**/request": "^2.88.0"
"**/request": "^2.88.0",
"**/ldapauth-fork": "^4.3.0"
},
"engines": {
"node": ">=8.x"