mirror of https://github.com/portainer/portainer
18 lines
448 B
Go
18 lines
448 B
Go
package migrator
|
|
|
|
import "github.com/portainer/portainer/api"
|
|
|
|
func (m *Migrator) updateSettingsToVersion13() error {
|
|
legacySettings, err := m.settingsService.Settings()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
legacySettings.LDAPSettings.AutoCreateUsers = false
|
|
legacySettings.LDAPSettings.GroupSearchSettings = []portainer.LDAPGroupSearchSettings{
|
|
portainer.LDAPGroupSearchSettings{},
|
|
}
|
|
|
|
return m.settingsService.UpdateSettings(legacySettings)
|
|
}
|