ldap change to url for making it possible to use ldaps:// too

This commit is contained in:
Adrian Woeltche 2018-06-21 15:15:44 +02:00
parent 206e7a5b52
commit 5325f2ea78
2 changed files with 4 additions and 6 deletions

View file

@ -87,7 +87,7 @@ if (config.ldap.enabled && LdapStrategy) {
let opts = {
server: {
url: 'ldap://' + config.ldap.host + ':' + config.ldap.port
url: config.ldap.url
},
base: config.ldap.baseDN,
search: {
@ -130,7 +130,7 @@ if (config.ldap.enabled && LdapStrategy) {
log.info('Using LDAP auth (passport-ldapauth)');
let opts = {
server: {
url: 'ldap://' + config.ldap.host + ':' + config.ldap.port,
url: config.ldapauth.url,
searchBase: config.ldapauth.baseDN,
searchFilter: config.ldapauth.filter,
searchAttributes: [config.ldapauth.uidTag, 'mail'],