outposts/ldap: copy boundUsers map when running refresh instead of using blank map

closes #1651

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-13 00:26:01 +01:00
parent 4ce3c2341c
commit f069cfb643
2 changed files with 21 additions and 1 deletions

View File

@ -29,6 +29,7 @@ type ProviderInstance struct {
tlsServerName *string
cert *tls.Certificate
outpostName string
outpostPk int32
searchAllowedGroups []*strfmt.UUID
boundUsersMutex sync.RWMutex
boundUsers map[string]flags.UserFlags