Fix equality test in ldap compare request

This commit is contained in:
Alex 2020-02-13 13:53:21 +01:00
父節點 c3d30df155
當前提交 851573e28f
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -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
}
}