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

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

    vartanix

      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:
      Example
      {
      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.
      Vartan