Fix eslint warnings
This commit is contained in:
parent
b74c4d9438
commit
06ee230e33
1 changed files with 4 additions and 4 deletions
|
@ -127,16 +127,16 @@ if (config.ldap.enabled && LdapStrategy) {
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
} else if (config.ldapauth.enabled && LdapAuthStrategy) {
|
} else if (config.ldapauth.enabled && LdapAuthStrategy) {
|
||||||
log.info("Using LDAP auth (passport-ldapauth)");
|
log.info('Using LDAP auth (passport-ldapauth)');
|
||||||
let opts = {
|
let opts = {
|
||||||
server: {
|
server: {
|
||||||
url: 'ldap://' + config.ldap.host + ':' + config.ldap.port,
|
url: 'ldap://' + config.ldap.host + ':' + config.ldap.port,
|
||||||
searchBase: config.ldapauth.baseDN,
|
searchBase: config.ldapauth.baseDN,
|
||||||
searchFilter: config.ldapauth.filter,
|
searchFilter: config.ldapauth.filter,
|
||||||
searchAttributes: [config.ldapauth.uidTag, 'mail'],
|
searchAttributes: [config.ldapauth.uidTag, 'mail'],
|
||||||
bindDN: config.ldapauth.bindUser,
|
bindDN: config.ldapauth.bindUser,
|
||||||
bindCredentials: config.ldapauth.bindPassword
|
bindCredentials: config.ldapauth.bindPassword
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
passport.use(new LdapAuthStrategy(opts, (profile, done) => {
|
passport.use(new LdapAuthStrategy(opts, (profile, done) => {
|
||||||
|
|
Loading…
Reference in a new issue