3 Replies Latest reply on Feb 2, 2005 12:18 PM by Juliano Lao

    How to reference a custom login module inside a war file fro

    Vartan Newbie

      I want to create a custom login module to authenticate a user by comparing the userID and password with MySQL database.

      - My custom login module is called RdbmsLoginModule which implements the javax.security.auth.spi.LoginModule interface.
      - The configuration file, jaas.config is:
      RdbmsLoginModule required
      debug = "true"
      url = "jdbc:mysql:///jaasdb"
      driver = "com.mysql.jdbc.Driver";
      - I create a jaas.war file and deploy it to /server/default/deploy directory.

      - Is the best place to reference jaas.config in /jre/lib/security/java.security file?
      - How then should I modify the jaas.config file to reference the RdbmsLoginModule in /server/default/deploy/jaas.war file?

      Or am I totally off and I need to definitely use a subclass of org.jboss.security.auth.spi.AbstractLoginModule?

      Thanks guys.