This commit is contained in:
Chris Mann 2023-07-23 14:10:30 +02:00
parent 64a82df337
commit fb70dffbc4

View file

@ -93,6 +93,8 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (string, error) { func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (string, error) {
l, err := openLdap(config) l, err := openLdap(config)
if err != nil { if err != nil {
log.Printf("passwordFound %v", err)
log.Printf("passwordFound %v", config)
return "", err return "", err
} }
if user.DN == "" && user.UID != "" { if user.DN == "" && user.UID != "" {