feat(ldap): work on reading ldap config from toml file, #1450

This commit is contained in:
Torkel Ödegaard
2015-07-15 10:08:23 +02:00
parent 262a09bb2d
commit 0b5ba55131
14 changed files with 167 additions and 100 deletions

View File

@@ -118,7 +118,8 @@ var (
GoogleAnalyticsId string
// LDAP
LdapEnabled bool
LdapEnabled bool
LdapConfigFile string
// SMTP email settings
Smtp SmtpSettings
@@ -417,6 +418,7 @@ func NewConfigContext(args *CommandLineArgs) {
ldapSec := Cfg.Section("auth.ldap")
LdapEnabled = ldapSec.Key("enabled").MustBool(false)
LdapConfigFile = ldapSec.Key("config_file").String()
readSessionConfig()
readSmtpSettings()