I noticed in the TODO that there was a request for a simple proxy which
can act as a man-in-the-middle.
Well, the attached script provides such a proxy, it is really a simple
proxy as it can currently handle only one client at the time, it will
dump requests and responses to STDOUT both in ASN1 and as perl structure.
ps. If you need a little more power like returning entries on a query I
suggest to have a look at Net::LDAP::Server on CPAN.