Read the JAAS howto for info on the use of login module by JBoss. Its the first topic in this forum.
I have read the JAAS how to.
I wrote and compiled a subclass of UsernamePasswordLoginModule. It retrieves passwords and roles from the database.
I am still unclear as to how to integrate with JBoss. The tutorial refers to a file auth.conf and states that it is "in the JBoss server configuration directory." The path listed is jboss/conf/jaas_howto/auth.conf. This path doesn't match any path I see in JBoss. When I built the example, I did not see auth.conf in <jboss-home>/server/jaas_howto/conf. I did, however, see auth.conf in <jboss-home>/client. I tried modifying this file, as well as creating a new one in <jboss-home>/server/<server-name>/conf.
I'm also unclear about how to get my LoginModule code invoked. The web app I am working on has a login page that submits to j_security_check, which doesn't work. Do I need to write code that instantiates a LoginContext and calls LoginContext.login()?
I'm still somewhat confused, but I will keep looking.