From 2e067868699f114f8a546eb586f51bda857fc8b0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 20 Oct 2021 19:49:17 +0200 Subject: [PATCH] outpost/ldap: fix logging for mismatched provider Signed-off-by: Jens Langhammer --- internal/outpost/ldap/bind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/outpost/ldap/bind.go b/internal/outpost/ldap/bind.go index 4f835875a..3588f2b33 100644 --- a/internal/outpost/ldap/bind.go +++ b/internal/outpost/ldap/bind.go @@ -55,7 +55,7 @@ func (ls *LDAPServer) Bind(bindDN string, bindPW string, conn net.Conn) (ldap.LD if err == nil { return instance.Bind(username, req) } else { - ls.log.WithError(err).Debug("Username not for instance") + req.log.WithError(err).Debug("Username not for instance") } } req.log.WithField("request", "bind").Warning("No provider found for request")