Skip to content

Commit

Permalink
fix: ldap authentication defaults path
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Aug 10, 2023
1 parent 8bf790d commit 601ba26
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ func setDefaults() {
viper.SetDefault("Build.Interval", time.Minute)
viper.SetDefault("Build.AllDevicesMustBuild", false)

viper.SetDefault("LDAP.Enabled", false)
viper.SetDefault("LDAP.URL", "")
viper.SetDefault("LDAP.BaseDN", "")
viper.SetDefault("LDAP.BindDN", "")
viper.SetDefault("LDAP.Password", "")
viper.SetDefault("LDAP.InsecureSkipVerify", false)
viper.SetDefault("Authentication.LDAP.URL", "")
viper.SetDefault("Authentication.LDAP.BaseDN", "")
viper.SetDefault("Authentication.LDAP.BindDN", "")
viper.SetDefault("Authentication.LDAP.Password", "")
viper.SetDefault("Authentication.LDAP.InsecureSkipVerify", false)
}

func LoadConfig() error {
Expand Down

0 comments on commit 601ba26

Please sign in to comment.