mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
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:
parent
301ab04839
commit
5fad6a25a8
2 changed files with 4 additions and 2 deletions
|
@ -133,7 +133,8 @@ module.exports = {
|
|||
searchAttributes: undefined,
|
||||
usernameField: undefined,
|
||||
useridField: undefined,
|
||||
tlsca: undefined
|
||||
tlsca: undefined,
|
||||
starttls: undefined
|
||||
},
|
||||
saml: {
|
||||
idpSsoUrl: undefined,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue