Initial work on ldap support, #1450
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user