mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Added ldap password environment variable.
This commit is contained in:
parent
8478216e5d
commit
cb4eb710fb
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -12,7 +12,7 @@ src/.baseDir.ts
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
*.swp
|
*.swp
|
||||||
|
*~
|
||||||
|
|
||||||
# Directory used by example
|
# Directory used by example
|
||||||
/notifications/
|
/notifications/
|
||||||
|
@ -39,3 +39,4 @@ users_database.test.yml
|
||||||
|
|
||||||
.suite
|
.suite
|
||||||
.kube
|
.kube
|
||||||
|
.idea
|
||||||
|
|
|
@ -75,6 +75,13 @@ export default class Server {
|
||||||
|
|
||||||
const appConfiguration = ConfigurationParser.parse(configuration);
|
const appConfiguration = ConfigurationParser.parse(configuration);
|
||||||
|
|
||||||
|
// We want to get the ldap binding password from the environment if it has been set, otherwise
|
||||||
|
// it will come from the configuration file
|
||||||
|
if (process.env.LDAP_BACKEND_PASSWORD) {
|
||||||
|
appConfiguration.authentication_backend.ldap.password = process.env.LDAP_BACKEND_PASSWORD;
|
||||||
|
that.globalLogger.debug("Got ldap binding password from environment");
|
||||||
|
}
|
||||||
|
|
||||||
// by default the level of logs is info
|
// by default the level of logs is info
|
||||||
deps.winston.level = appConfiguration.logs_level;
|
deps.winston.level = appConfiguration.logs_level;
|
||||||
this.displayConfigurations(appConfiguration);
|
this.displayConfigurations(appConfiguration);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user