summaryrefslogtreecommitdiff
path: root/lib/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config.js')
-rw-r--r--lib/config.js6
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;