File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,18 +96,17 @@ var google = (process.env.HMD_GOOGLE_CLIENTID && process.env.HMD_GOOGLE_CLIENTSE
9696 clientID : process . env . HMD_GOOGLE_CLIENTID ,
9797 clientSecret : process . env . HMD_GOOGLE_CLIENTSECRET
9898} : ( config . google && config . google . clientID && config . google . clientSecret && config . google ) || false ;
99- var ldap = config . ldap || (
99+ var ldap = config . ldap || ( (
100100 process . env . HMD_LDAP_URL ||
101101 process . env . HMD_LDAP_BINDDN ||
102102 process . env . HMD_LDAP_BINDCREDENTIALS ||
103103 process . env . HMD_LDAP_TOKENSECRET ||
104104 process . env . HMD_LDAP_SEARCHBASE ||
105105 process . env . HMD_LDAP_SEARCHFILTER ||
106106 process . env . HMD_LDAP_SEARCHATTRIBUTES ||
107+ process . env . HMD_LDAP_TLS_CA ||
107108 process . env . HMD_LDAP_PROVIDERNAME
108- ) || false ;
109- if ( ldap == true )
110- ldap = { } ;
109+ ) ? { } : false ) ;
111110if ( process . env . HMD_LDAP_URL )
112111 ldap . url = process . env . HMD_LDAP_URL ;
113112if ( process . env . HMD_LDAP_BINDDN )
You can’t perform that action at this time.
0 commit comments