From 734e39af75f70ecd282aa7f5d912b74e110ab015 Mon Sep 17 00:00:00 2001 From: "Andrew E. Bruno" Date: Tue, 14 Jul 2020 21:41:50 -0400 Subject: [PATCH] Add better logging when freeipa server ping fails. --- server/auth.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/auth.go b/server/auth.go index 1b6cd98..f701eea 100644 --- a/server/auth.go +++ b/server/auth.go @@ -31,6 +31,10 @@ func (h *Handler) tryAuth(uid, password string) (string, error) { // Ping to get sessionID for later use _, err = client.Ping() if err != nil { + log.WithFields(log.Fields{ + "uid": uid, + "ipa_client_error": err, + }).Error("Failed to ping FreeIPA") return "", errors.New("Error contacting FreeIPA") }