Fixing config for new LDAP settings (#2662)

Этот коммит содержится в:
Christopher Speller
2016-04-07 19:42:22 -04:00
коммит произвёл Corey Hulen
родитель 5cf982e021
Коммит 556f2a93fb

Просмотреть файл

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