2018-07-23 04:57:38 +00:00
|
|
|
package migrator
|
|
|
|
|
|
|
|
import "github.com/portainer/portainer"
|
|
|
|
|
|
|
|
func (m *Migrator) updateSettingsToVersion13() error {
|
|
|
|
legacySettings, err := m.settingsService.Settings()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2018-07-24 06:49:17 +00:00
|
|
|
legacySettings.LDAPSettings.AutoCreateUsers = false
|
2018-07-23 04:57:38 +00:00
|
|
|
legacySettings.LDAPSettings.GroupSearchSettings = []portainer.LDAPGroupSearchSettings{
|
|
|
|
portainer.LDAPGroupSearchSettings{},
|
|
|
|
}
|
|
|
|
|
|
|
|
return m.settingsService.UpdateSettings(legacySettings)
|
|
|
|
}
|