in reply to
tcp proxy?
you may look at
http://www.frox25.no-ip.org/~mtve/wiki/LDAProxy.html
In Section
Seekers of Perl Wisdom