LDAP auth seems to work too.
Users completely refactored to ReactJS and Knex Initial draft of call context passing (for the time being only in users:remove
This commit is contained in:
parent
9758b4b104
commit
be7da791db
11 changed files with 24 additions and 816 deletions
|
@ -82,7 +82,7 @@ module.exports.restLogin = (req, res, next) => {
|
|||
if (config.ldap.enabled && LdapStrategy) {
|
||||
log.info('Using LDAP auth');
|
||||
module.exports.authMethod = 'ldap';
|
||||
module.exports.isAuthMethodLocal = true;
|
||||
module.exports.isAuthMethodLocal = false;
|
||||
|
||||
let opts = {
|
||||
server: {
|
||||
|
@ -93,8 +93,7 @@ if (config.ldap.enabled && LdapStrategy) {
|
|||
filter: config.ldap.filter,
|
||||
attributes: [config.ldap.uidTag, config.ldap.nameTag, 'mail'],
|
||||
scope: 'sub'
|
||||
},
|
||||
uidTag: config.ldap.uidTag
|
||||
}
|
||||
};
|
||||
|
||||
passport.use(new LdapStrategy(opts, nodeifyFunction(async (profile) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue