fix: do not lowercase uid/email

This commit is contained in:
dump_stack() 2023-06-04 15:36:59 +00:00
parent 696ebb53b9
commit cac8ac210c
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -142,9 +142,9 @@ func search(w ldap.ResponseWriter, m *ldap.Message) {
fmt.Println(err) fmt.Println(err)
} }
e := ldap.NewSearchResultEntry(strings.ToLower(username)) e := ldap.NewSearchResultEntry(username)
e.AddAttribute("uid", message.AttributeValue(strings.ToLower(username))) e.AddAttribute("uid", message.AttributeValue(username))
e.AddAttribute("mail", message.AttributeValue(strings.ToLower(email))) e.AddAttribute("mail", message.AttributeValue(email))
w.Write(e) w.Write(e)
} }