-
1. Re: Custom Login Module help
jameschaingchen Jul 18, 2002 5:45 PM (in response to jackburns)Thanks for the very useful information. I have been struggled by this problem for sometime.
I need to ask a question.
Where to put the com.company.CustomLoginModule class? Can it be included in the deployment ear? Or it has to be placed in lib/ext in a jar file. -
2. Re: Custom Login Module help
kpseal Jul 19, 2002 4:36 AM (in response to jackburns)I think it can go into the EAR file.
From what I understand, ProxyLoginModule essentially bootstraps the loading of the actual LoginModule so that the class is loaded when it's first used rather than when the server starts off.
So providing your enterprise application makes it available there should be no problem with JBoss loading it up when people start trying to log in. Neat.
I think this might have changed slightly in 3.0.0.
Hope this helps. -
3. Re: Custom Login Module help
jameschaingchen Jul 22, 2002 10:00 AM (in response to jackburns)Neat! It works. Thanks!
-
4. Re: Custom Login Module help
cjohan Oct 1, 2002 11:14 PM (in response to jackburns)Thank you, Jack! I spent hours trying to find out why I was getting an "unable to find login module" exception from JBoss 2.4.8.
I notice that a standard SRP config uses this feature:
srp {
org.jboss.security.auth.spi.ProxyLoginModule required
moduleName=org.jboss.security.srp.jaas.SRPCacheLoginModule
cacheJndiName="srp/AuthenticationCache"
;
org.jboss.security.auth.spi.UsersRolesLoginModule required
password-stacking=useFirstPass
;
};
However, note that the UserRolesLoginModule does not need to be loaded by the ProxyLoginModule. Can anyone explain why that is?