LDAP Authentication: Free - Now Available for SCARAB - download and integrate today

Russell E Glaue <[email protected]>
Newsgroups gmane.comp.java.scarab.user
Message-ID <[email protected]>
It would seem I dropped the ball in notifying the SCARAB community about this.
But I too, as many have e-mailed out on the users and dev scarab mailing lists 
wanted LDAP Authentication for SCARAB.

Well, I made that happen.
It is a simple hack, and thus does use any part of the SCARAB API, or integrate 
with any SCARAB modules or libraries.
You simply modify the login JSP 
<scarab/src/java/org/tigris/scarab/actions/Login.java>
Details to how it works is below.
Details for integration into SCARAB is provided on the project page of LDAP Hack.


Project:  "LDAP Hack" -- Free and Open Source

http://www.codepin.org/project/ldaphack/

Available for download today.

Requires: Java 1.5
Artifacts: The LDAPHack JAR, and a Java XML Property file

ABOUT:  LDAP Hack is a simple implementation of an authorization mechanism for 
ldap. It can provide LDAP Authentication to applications which do not natively 
support LDAP authentication. The intention of this class is to be used in 
hacking LDAP authentication into a third-party software application. See the 
javadoc API for a hacking example.


INTEGRATION: SCARAB

The LDAP Hack has been integrated into SCARAB to allow for LDAP Authentication 
for SCARAB users.

The hack provided here will first attempt to find the user, who is attempting to 
log in, in LDAP based on a configuration and search filter you supply in a 
property file. If the user is found in LDAP but the password is wrong, an error 
"Invalid Password" is given. If the user is not found in LDAP then the LDAP Hack 
passes the authentication on to the normal scarab authentication process.


Check it out:
http://www.codepin.org/project/ldaphack/

There is a compiled version available.
There is also a version of Scarab 0.20 available, integrated with ldaphack, to 
show how it is done. See the Subversion Repository at the site.


-RG

Russell E Glaue
Center for the Application of Information Technologies
Western Illinois University
http://www.cait.org
http://www.wiu.edu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.