Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 6.1.9
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Having a native Jetty LDAP JAAS module would make it super easy to deploy secured webapplications that uses a common LDAP server. I would suggest copying Geronimo's implementation. The login module itself doesn't have any dependencies that Jetty doesn't already have from what I can tell.
Geronimo has an implementation that work just fine outside Geronimo, but it drags with it a whole bunch of unwanted dependencies.
For reference and other users that want to use Jetty+LDAP, this is how I configured the Geronimo JAAS login module:
<Call name="addUserRealm"> <Arg> <New class="org.mortbay.jetty.plus.jaas.JAASUserRealm"> <Set name="name">javabin realm</Set> <Set name="LoginModuleName">ldap</Set> <Set name="roleClassNames"> <Array type="java.lang.String"> <Item>org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal</Item> </Array> </Set> </New> </Arg> </Call>
FYI here is Geronimo's (v 2.0.2) implementation: http://svn.apache.org/repos/asf/geronimo/server/tags/2.0.2/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java