From 4d755dc0f6f699392f63593389402fac3e9b2d08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 May 2022 20:33:19 +0200 Subject: [PATCH] build(deps): bump goauthentik.io/api/v3 from 3.2022041.4 to 3.2022041.5 (#2843) * build(deps): bump goauthentik.io/api/v3 from 3.2022041.4 to 3.2022041.5 Bumps [goauthentik.io/api/v3](https://github.com/goauthentik/client-go) from 3.2022041.4 to 3.2022041.5. - [Release notes](https://github.com/goauthentik/client-go/releases) - [Commits](https://github.com/goauthentik/client-go/compare/v3.2022041.4...v3.2022041.5) --- updated-dependencies: - dependency-name: goauthentik.io/api/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * fix Signed-off-by: Jens Langhammer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer --- go.mod | 2 +- go.sum | 6 ++---- internal/outpost/ldap/refresh.go | 8 ++++---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 1d38fb1ef..9b1ca8cbe 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/quasoft/memstore v0.0.0-20191010062613-2bce066d2b0b github.com/sirupsen/logrus v1.8.1 github.com/stretchr/testify v1.7.1 - goauthentik.io/api/v3 v3.2022041.4 + goauthentik.io/api/v3 v3.2022041.5 golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b golang.org/x/sync v0.0.0-20210220032951-036812b2e83c gopkg.in/boj/redistore.v1 v1.0.0-20160128113310-fc113767cd6b diff --git a/go.sum b/go.sum index 16051542b..46a577d02 100644 --- a/go.sum +++ b/go.sum @@ -358,10 +358,8 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= -goauthentik.io/api/v3 v3.2022041.3 h1:7P2RqYhIu6UtDTif38rqcflUBE22hlVoWj98rbSWp30= -goauthentik.io/api/v3 v3.2022041.3/go.mod h1:QM9J32HgYE4gL71lWAfAoXSPdSmLVLW08itfLI3Mo10= -goauthentik.io/api/v3 v3.2022041.4 h1:eCo6KRXyZ4denzM3kZcXpRVfkjEFRmAxOoC+Jz7XVeo= -goauthentik.io/api/v3 v3.2022041.4/go.mod h1:QM9J32HgYE4gL71lWAfAoXSPdSmLVLW08itfLI3Mo10= +goauthentik.io/api/v3 v3.2022041.5 h1:fPkefyhAnwt+TASyzaVroF5q83eLW5XbIWt+00P+VtY= +goauthentik.io/api/v3 v3.2022041.5/go.mod h1:QM9J32HgYE4gL71lWAfAoXSPdSmLVLW08itfLI3Mo10= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= diff --git a/internal/outpost/ldap/refresh.go b/internal/outpost/ldap/refresh.go index df489bf87..97b695d32 100644 --- a/internal/outpost/ldap/refresh.go +++ b/internal/outpost/ldap/refresh.go @@ -77,14 +77,14 @@ func (ls *LDAPServer) Refresh() error { } providers[idx].cert = ls.cs.Get(*kp) } - if *provider.SearchMode.Ptr() == api.SEARCHMODEENUM_CACHED { + if *provider.SearchMode.Ptr() == api.LDAPAPIACCESSMODE_CACHED { providers[idx].searcher = memorysearch.NewMemorySearcher(providers[idx]) - } else if *provider.SearchMode.Ptr() == api.SEARCHMODEENUM_DIRECT { + } else if *provider.SearchMode.Ptr() == api.LDAPAPIACCESSMODE_DIRECT { providers[idx].searcher = directsearch.NewDirectSearcher(providers[idx]) } - if *provider.BindMode.Ptr() == api.BINDMODEENUM_CACHED { + if *provider.BindMode.Ptr() == api.LDAPAPIACCESSMODE_CACHED { providers[idx].binder = memorybind.NewSessionBinder(providers[idx]) - } else if *provider.BindMode.Ptr() == api.BINDMODEENUM_DIRECT { + } else if *provider.BindMode.Ptr() == api.LDAPAPIACCESSMODE_DIRECT { providers[idx].binder = directbind.NewDirectBinder(providers[idx]) } }