From 208e04e345b475c944c396e0616d39a257228fc2 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sun, 23 Jul 2023 14:17:32 +0200 Subject: [PATCH] G Pas --- gpas.go | 2 +- invite.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gpas.go b/gpas.go index d744021..f2385c8 100644 --- a/gpas.go +++ b/gpas.go @@ -94,7 +94,7 @@ func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (string, l, err := openLdap(config) if err != nil { log.Printf("passwordFound %v", err) - log.Printf("passwordFound %v", config) + log.Printf("passwordFound Config : %v", config) return "", err } if user.DN == "" && user.UID != "" { diff --git a/invite.go b/invite.go index 4a4a554..6ec5aae 100644 --- a/invite.go +++ b/invite.go @@ -57,12 +57,13 @@ type PasswordLostData struct { func openNewUserLdap(config *ConfigFile) (*ldap.Conn, error) { l, err := openLdap(config) if err != nil { - log.Printf(fmt.Sprintf("openNewUserLdap : %v %v", err, l)) + log.Printf(fmt.Sprintf("openNewUserLdap 1 : %v %v", err, l)) + log.Printf(fmt.Sprintf("openNewUserLdap 1 : %v", config)) // data.ErrorMessage = err.Error() } err = l.Bind(config.NewUserDN, config.NewUserPassword) if err != nil { - log.Printf(fmt.Sprintf("openNewUserLdap : %v %v", err, l)) + log.Printf(fmt.Sprintf("openNewUserLdap 2 : %v %v", err, l)) // data.ErrorMessage = err.Error() } return l, err