Fixing config for new LDAP settings (#2662)

This commit is contained in:
Christopher Speller
2016-04-07 19:42:22 -04:00
committed by Corey Hulen
parent 5cf982e021
commit 556f2a93fb

View File

@@ -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 {