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:
parent
0a369e2475
commit
65923c0c05
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ if (config.ldap.enabled && LdapStrategy) {
|
|||
attributes: [config.ldap.uidTag, 'mail'],
|
||||
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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue