From 521a36e629d9461383cf0c413afce12fcf29038d Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 10 Oct 2019 10:28:17 +1300 Subject: [PATCH] fix(api): fix missing default settings for LDAPSettings --- api/cmd/portainer/main.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/api/cmd/portainer/main.go b/api/cmd/portainer/main.go index 2d83d10c1..88b0a4e7c 100644 --- a/api/cmd/portainer/main.go +++ b/api/cmd/portainer/main.go @@ -259,10 +259,14 @@ func initSettings(settingsService portainer.SettingsService, flags *portainer.CL LogoURL: *flags.Logo, AuthenticationMethod: portainer.AuthenticationInternal, LDAPSettings: portainer.LDAPSettings{ - AutoCreateUsers: true, - TLSConfig: portainer.TLSConfiguration{}, - SearchSettings: []portainer.LDAPSearchSettings{}, - GroupSearchSettings: []portainer.LDAPGroupSearchSettings{}, + AutoCreateUsers: true, + TLSConfig: portainer.TLSConfiguration{}, + SearchSettings: []portainer.LDAPSearchSettings{ + portainer.LDAPSearchSettings{}, + }, + GroupSearchSettings: []portainer.LDAPGroupSearchSettings{ + portainer.LDAPGroupSearchSettings{}, + }, }, OAuthSettings: portainer.OAuthSettings{}, AllowBindMountsForRegularUsers: true,