outpost/ldap: fix logging for mismatched provider

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-20 19:49:17 +02:00
parent eba91c6b2b
commit 2e06786869
1 changed files with 1 additions and 1 deletions

View File

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