1 Reply Latest reply on Jul 10, 2005 12:51 PM by rpa_rio

    authentication module

    soussou

      Hi;

      I think that I am not the first people to realize a authentication module using jaas api.
      If you have any information for that, I'am very interested
      I use Jboss and I would like to implement a jaas authentication module with a Oracle database (login + password are stored into the database).

      regards;

        • 1. Re: authentication module

           

          "soussou" wrote:
          Hi;

          I think that I am not the first people to realize a authentication module using jaas api.
          If you have any information for that, I'am very interested
          I use Jboss and I would like to implement a jaas authentication module with a Oracle database (login + password are stored into the database).

          regards;


          You need to add something like this to your login-config.xml:
          <application-policy name = "jbossmq">
           <authentication>
           <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
           flag = "required">
           <module-option name = "unauthenticatedIdentity">guest</module-option>
           <module-option name = "dsJndiName">java:/MyDatabaseDS</module-option>
           <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
           <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
           </login-module>
           </authentication>
          </application-policy>