2 Replies Latest reply on Nov 6, 2002 12:16 AM by Todd Gould

    jboss 3.0.3 : DatabaseServerLoginModule Configuration

    Luca Newbie

      Now my application works properly with UsersRolesLoginModule.

      I need to migrate to DatabaseServerLoginModule;
      I've modified only login-config.xml in this way:
      ********************************************************
      <application-policy name="JBIDomain">

      <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
      <module-option name="dsJndiName">java:/jaasDS</module-option>
      <module-option name="principalsQuery">SELECT 'pluto' FROM webbac.utenti R WHERE R.USERID=?</module-option>
      <module-option name="rolesQuery">SELECT 'Admin' ROLE, 'pluto' FROM webbac.utenti R WHERE R.USERID=?</module-option>
      <module-option name="hashAlgorithm">MD5</module-option>
      <module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=jaasDS</module-option>
      </login-module>

      </application-policy>
      ********************************************************

      But after login page this error appears:

      10:44:38,843 WARN [JBossUserRealm#JBIRealm] authentication failure: MyUserId

      ********************************************************

      I've also configured the login-config.xml with a wrong Datasource's JndiName but the result is the same....

      Why doesn't the DatabaseServerLoginModule start?


      thank's