2007-4-12 update: the version linked below now has been released under the GPL. The 0.1 version I first mentioned was released with a BSD license, but this may have not actually been allowed since it called functions from GPL code.
Quercus is Java implementation of PHP. It came to my attention as a
possible way of avoiding many of the security vulnerabilities in PHP,
particularly buffer overflows. I've been working on running MediaWiki with Quercus for the last
couple of weeks, and one of the first hurdles I hit was that Quercus does not currently include
implementations of PHP's LDAP functions. For a couple of wikis at work we use LDAP for
authentication. I wrote a little Java library which implements the needed functions, which can be
downloaded here and verified
with this GPG signature.
The source is also available under a BSD GPL license
here
(signature).
If you want to use the binary I provide, just drop quercus-ldap-0.1.jar into your web application's WEB-INF/lib directory, or your application server's shared lib directory. Some time in the next few days I'll post some more info about my experiences with MediaWiki under Quercus + Tomcat 6, including getting LDAP authentication to work.