Fix equality test in ldap compare request
This commit is contained in:
parent
c3d30df155
commit
851573e28f
1 changed files with 1 additions and 1 deletions
2
read.go
2
read.go
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue