Refactoring

This commit is contained in:
Chris Mann 2023-07-26 12:00:25 +02:00
parent 3468d15fb3
commit 666b34150b

View file

@ -47,10 +47,10 @@ func openNewUserLdap(config *ConfigFile) (*ldap.Conn, error) {
} }
err = l.Bind(config.NewUserDN, config.NewUserPassword) err = l.Bind(config.NewUserDN, config.NewUserPassword)
if err != nil { if err != nil {
log.Printf(fmt.Sprintf("openNewUserLdap 2 : %v", err)) log.Printf(fmt.Sprintf("openNewUserLdap Bind : %v", err))
log.Printf(fmt.Sprintf("openNewUserLdap 2 : %v", config.NewUserDN)) log.Printf(fmt.Sprintf("openNewUserLdap Bind : %v", config.NewUserDN))
log.Printf(fmt.Sprintf("openNewUserLdap 2 : %v", config.NewUserPassword)) // log.Printf(fmt.Sprintf("openNewUserLdap Bind : %v", config.NewUserPassword))
log.Printf(fmt.Sprintf("openNewUserLdap 2 : %v", config)) // log.Printf(fmt.Sprintf("openNewUserLdap Bind : %v", config))
// data.Common.ErrorMessage = err.Error() // data.Common.ErrorMessage = err.Error()
} }
return l, err return l, err