Initial work on ldap support, #1450

This commit is contained in:
Torkel Ödegaard
2015-06-04 09:34:42 +02:00
parent 2c7d33cdfa
commit eb793f7feb
8 changed files with 204 additions and 14 deletions
+8
View File
@@ -114,6 +114,10 @@ var (
ReportingEnabled bool
GoogleAnalyticsId string
// LDAP
LdapEnabled bool
LdapUrls []string
)
type CommandLineArgs struct {
@@ -406,6 +410,10 @@ func NewConfigContext(args *CommandLineArgs) {
ReportingEnabled = analytics.Key("reporting_enabled").MustBool(true)
GoogleAnalyticsId = analytics.Key("google_analytics_ua_id").String()
ldapSec := Cfg.Section("auth.ldap")
LdapEnabled = ldapSec.Key("enabled").MustBool(false)
LdapUrls = ldapSec.Key("urls").Strings(" ")
readSessionConfig()
}