fix: do not lowercase uid/email
This commit is contained in:
parent
696ebb53b9
commit
cac8ac210c
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user