Fix bug with lowercasing

This fixes some ldap queries not working due to case differences.
This commit is contained in:
Simon Beck 2022-02-08 12:56:33 +01:00 committed by Simon Beck
parent dbd9003714
commit ae44c29fc3

View file

@ -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) {