As suggested I trasformed the patch into an overlay. It can be found at this address: http://www.paolomeschi.com/openldap/pwcompare.c