diff options
author | neopostmodern | 2017-01-09 12:49:23 +0100 |
---|---|---|
committer | neopostmodern | 2017-01-09 12:49:23 +0100 |
commit | ff545b268871be7b6552638427a59a9a6eac5dd1 (patch) | |
tree | 3324acedf1e0d70ee82c40381e04ef097a0d50a7 /lib | |
parent | b13635aac9d42996d0ac9b9b7dcbdf94102c7abe (diff) |
Allow displaying LDAP provider name on sign-in modal
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js index 2f6792b7..6b2ba0b6 100644 --- a/lib/config.js +++ b/lib/config.js @@ -102,7 +102,8 @@ var ldap = config.ldap || ( process.env.HMD_LDAP_TOKENSECRET || process.env.HMD_LDAP_SEARCHBASE || process.env.HMD_LDAP_SEARCHFILTER || - process.env.HMD_LDAP_SEARCHATTRIBUTES + process.env.HMD_LDAP_SEARCHATTRIBUTES || + process.env.HMD_LDAP_PROVIDERNAME ) || false; if (ldap == true) ldap = {}; @@ -126,6 +127,9 @@ if (process.env.HMD_LDAP_TLS_CA) { } ldap.tlsOptions = ldap.tlsOptions ? Object.assign(ldap.tlsOptions, ca) : ca } +if (process.env.HMD_LDAP_PROVIDERNAME) { + ldap.providerName = process.env.HMD_LDAP_PROVIDERNAME; +} var imgur = process.env.HMD_IMGUR_CLIENTID || config.imgur || false; var email = process.env.HMD_EMAIL ? (process.env.HMD_EMAIL === 'true') : !!config.email; |