From bd2e453218239b58c329024caec746ca9239f313 Mon Sep 17 00:00:00 2001 From: Ilya Kogan <1840337+ikogan@users.noreply.github.com> Date: Wed, 8 Dec 2021 14:11:56 -0500 Subject: [PATCH] outposts/ldap: Fix search case sensitivity. (#1897) --- internal/outpost/ldap/search/request.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/outpost/ldap/search/request.go b/internal/outpost/ldap/search/request.go index 4ba67282c..183dba226 100644 --- a/internal/outpost/ldap/search/request.go +++ b/internal/outpost/ldap/search/request.go @@ -25,6 +25,7 @@ type Request struct { func NewRequest(bindDN string, searchReq ldap.SearchRequest, conn net.Conn) (*Request, *sentry.Span) { rid := uuid.New().String() bindDN = strings.ToLower(bindDN) + searchReq.BaseDN = strings.ToLower(searchReq.BaseDN) span := sentry.StartSpan(context.TODO(), "authentik.providers.ldap.search", sentry.TransactionName("authentik.providers.ldap.search")) span.SetTag("request_uid", rid) span.SetTag("user.username", bindDN)