aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.go b/read.go
index 9af9dbd..0868624 100644
--- a/read.go
+++ b/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
}
}