aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-13 13:53:21 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-13 14:41:49 +0100
commit851573e28f73102dedc6b9aca04f5f3248bdc9f4 (patch)
tree9d693cd14ead86b561af25ab748c8de507a1a05a
parentc3d30df155e24da199a8e9c388a26c18c80946b4 (diff)
downloadbottin-851573e28f73102dedc6b9aca04f5f3248bdc9f4.tar.gz
bottin-851573e28f73102dedc6b9aca04f5f3248bdc9f4.zip
Fix equality test in ldap compare request
-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
}
}