As such, I was trying to create a JAAS implementation over Jboss's web-console page. I am using the existing entry of web-console in login-config.xml which is
<application-policy name = "web-console"> <authentication> <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "sufficient"> <module-option name="usersProperties">web-console-users.properties</module-option> <module-option name="rolesProperties">web-console-roles.properties</module-option> </login-module> </authentication> </application-policy>
The user anme & its role are being implemented in the web-console-users.properties & web-console-roles.properties files. The only changed that I made was that I changed the flag to "sufficient" so that I am able to use the LoginModule which I have made. To be more precise, I got my own LoginModule class, & my main class extends httpServlet.
So, you get an error while doing programatic JAAS login? Can you post the exception stacktrace and also the TRACE level logs from the JBoss security package (my earlier post has a link which tells how to do this)?
subject: JAAS login error: Failed to load users/passwords/role files