-
1. Re: Security Jaas
pnevado Jul 13, 2004 4:22 AM (in response to wladi)It is difficult to help you with as little information as you provide. Have a look at the relevant .xml descriptors involved .
-
2. Re: Security Jaas
wladi Jul 13, 2004 4:34 AM (in response to wladi)LoginModule works, but i don't know how to display LoginException on the error page.
I use web.xml with:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>IPS Anmeldung</realm-name>
<form-login-config>
<form-login-page>/fc/login</form-login-page>
<form-error-page>/fc/login?login_error=1</form-error-page>
</form-login-config>
</login-config>
I use login-config.xml with
<application-policy name = "other">
<login-module code = "xxx.jaasmodules.MyLoginModule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
</login-module>
</application-policy>
and of course ejb-jar.xml and jboss-web.xml for RoleConfiguration -
3. Re: Security Jaas
stueccles Jul 13, 2004 5:12 AM (in response to wladi)It wont be possible to display the LoginException with the FORM authenticator.
You will at least need to write a custom authenticator. Even then it will be very difficult.