[jboss-user] [Security & JAAS/JBoss] - Re: Configure Custom JAAS Login module in JBoss
jaikiran
do-not-reply at jboss.com
Thu Aug 17 08:04:38 EDT 2006
Add the following to the login-config.xml file present in %JBOSS_HOME%/server/default/conf directory:
<application-policy name="com.login.test.PasswordLoginModule">
| <authentication>
| <login-module code="com.login.test.authenticators.PasswordAuthImpl" flag="required">
| <module-option name="digestAlgo">SHA1</module-option>
| </login-module>
| </authentication>
| </application-policy>
As far creating the login module *configuration* in your own file(jaas.login.config) is concerned, i havent tried it myself, but here's an extract that i found from http://members.capmac.org/~orb/blog.cgi/tech/java/jaas_jboss.html
anonymous wrote : The documentation suggest that you can place an applications specific login-config.xml in your ear file, but I wasn't able to make it work. However, even though you provide the LoginModule definition in the global login-config.xml, you can still provide the implementation classes in your ear/war file. (you don't have to deploy the LoginModule separately)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965708#3965708
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965708
More information about the jboss-user
mailing list