From ae44c29fc370ed2207d6a319539351f218356a9e Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Tue, 8 Feb 2022 12:56:33 +0100 Subject: [PATCH] Fix bug with lowercasing This fixes some ldap queries not working due to case differences. --- util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util.go b/util.go index cbb6b0f..92cff52 100644 --- a/util.go +++ b/util.go @@ -30,7 +30,9 @@ func dnToConsul(dn string) (string, error) { rdns[i], rdns[j] = rdns[j], rdns[i] } - return strings.Join(rdns, "/"), nil + concattedPath := strings.Join(rdns, "/") + + return strings.ToLower(concattedPath), nil } func consulToDN(key string) (string, string, error) { -- 2.45.2