Fix equality test in ldap compare request

This commit is contained in:
Alex 2020-02-13 13:53:21 +01:00
parent c3d30df155
commit 851573e28f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func (server *Server) handleCompareInternal(state *State, r *message.CompareRequ
}
for _, v := range values {
if v == expected {
if valueMatch(attr, v, expected) {
return ldap.LDAPResultCompareTrue, nil
}
}