add: LDAP options bindUser and bindPassword

To be able to use a different user for bind requests,
which can be required by some LDAP security strategy.
This commit is contained in:
Melwin Kieffer 2017-10-10 16:30:40 +02:00 committed by GitHub
parent 0a369e2475
commit 65923c0c05

View file

@ -85,7 +85,9 @@ if (config.ldap.enabled && LdapStrategy) {
attributes: [config.ldap.uidTag, 'mail'], attributes: [config.ldap.uidTag, 'mail'],
scope: 'sub' scope: 'sub'
}, },
uidTag: config.ldap.uidTag uidTag: config.ldap.uidTag,
bindUser: config.ldap.bindUser,
bindPassword: config.ldap.bindPassword
}; };
passport.use(new LdapStrategy(opts, (profile, done) => { passport.use(new LdapStrategy(opts, (profile, done) => {