-
1. Re: Custom LoginModule howto ?
adrian.brock Jul 8, 2003 8:58 AM (in response to anjboss)client/auth.conf is not used.
When you say you changed the default (there is no default)
what did you change?
Do you have the security-domain configured in jboss-web.xml?
Post your deployment descriptors and login-config.xml
Regards,
Adrian -
2. Re: Custom LoginModule howto ?
anjboss Jul 8, 2003 9:34 AM (in response to anjboss)OK, In my WAR i have web.xml which includes the following
<security-constraint>
<web-resource-collection>
<web-resource-name>Account Page</web-resource-name>
<url-pattern>/account.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>USER</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login_error.jsp</form-error-page>
</form-login-config>
</login-config>
and jboss-web.xml which sets the security-domain like this
<security-domain>java:/jaas/MyDBRealm</security-domain>
and login-config.xml has an entry like this
<application-policy name="MyDBRealm">
<login-module code="mydomain.DBLoginModule" flag="re
quired">
<module-option name="dsJndiName">java:/DefaultDS</module-option>
</login-module>
</application-policy>
If I use "org.jboss.security.auth.spi.DatabaseServerLoginModule" above instead of "mydomain.DBLoginModule" it works fine and goes through the authentication process. Any ideas?