Pierangelo Masarati writes:
An overlay would basically need to take the value from the compare request, put it into a bind request structure, call the frontend's bi_op_bind() hook.
And save the connection's BindDN before Compare and restore it after. And serialize operations for the entire connection during the Compare, since Bind expects to be the lone active request on the connection while most other operations do not.
The custom overlay would probably be 10 to 100 lines of code, (...)
Rather more than that, I'd say.