More work on ldap, gotten ldap search (read attributes) to work

This commit is contained in:
Torkel Ödegaard
2015-07-10 15:29:34 +02:00
parent 0ef7271326
commit db1847bc1d
3 changed files with 33 additions and 11 deletions
+4 -2
View File
@@ -118,8 +118,9 @@ var (
GoogleAnalyticsId string
// LDAP
LdapEnabled bool
LdapHosts []string
LdapEnabled bool
LdapHosts []string
LdapBindPath string
// SMTP email settings
Smtp SmtpSettings
@@ -419,6 +420,7 @@ func NewConfigContext(args *CommandLineArgs) {
ldapSec := Cfg.Section("auth.ldap")
LdapEnabled = ldapSec.Key("enabled").MustBool(false)
LdapHosts = ldapSec.Key("hosts").Strings(" ")
LdapBindPath = ldapSec.Key("bind_path").String()
readSessionConfig()
readSmtpSettings()