From 1ce7cfb1479180d8da3cae1bf7ea03a7ec9eaf27 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Sun, 23 Aug 2020 19:39:32 -0700 Subject: [PATCH] main: Add defaults --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index 14c51c2..c0f0e6b 100644 --- a/main.go +++ b/main.go @@ -13,6 +13,13 @@ import ( "github.com/spf13/viper" ) +func init() { + viper.SetDefault("ldap.bind", "localhost:389") + viper.SetDefault("ldap.tls", false) + viper.SetDefault("ldap.key", "/var/lib/netauth/keys/ldap.key") + viper.SetDefault("ldap.cert", "/var/lib/netauth/keys/ldap.cert") +} + func main() { var appLogger hclog.Logger