From 556f2a93fbcbca0b81705145ce6150261d1861b0 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 7 Apr 2016 19:42:22 -0400 Subject: Fixing config for new LDAP settings (#2662) --- model/config.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/model/config.go b/model/config.go index 29bc536dc..a8974359d 100644 --- a/model/config.go +++ b/model/config.go @@ -440,6 +440,16 @@ func (o *Config) SetDefaults() { o.ComplianceSettings.EnableDaily = new(bool) *o.ComplianceSettings.EnableDaily = false } + + if o.LdapSettings.ConnectionSecurity == nil { + o.LdapSettings.ConnectionSecurity = new(string) + *o.LdapSettings.ConnectionSecurity = "" + } + + if o.LdapSettings.SkipCertificateVerification == nil { + o.LdapSettings.SkipCertificateVerification = new(bool) + *o.LdapSettings.SkipCertificateVerification = false + } } func (o *Config) IsValid() *AppError { -- cgit v1.2.3-1-g7c22