0 Replies Latest reply on May 16, 2005 4:14 AM by Kalai Selvan Nadar

    Login Module Configuration

    Kalai Selvan Nadar Newbie

      I am trying to configure JAAS DatabaseServerLoginModule in my application. But it seems i am not able to do that, so please help me out.

      I have done following:

      In hsqldb-ds.xml:
      I uncommented following xml tags -


      and the mbean tag i.e "jboss:service=Hypersonic"

      In login-config.xml :

      <application-policy name="UP_Login">

      <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
      <module-option name="dsJndiName">java:/DefaultDS</module-option>
      <module-option name="principalsQuery">
      Select password from Prinicipals where principalID = ?
      <module-option name="rolesQuery">
      Select Role 'Roles', RoleGroup 'RoleGroups' from localDB.Roles where PrincipalID =?


      In jboss-web.xml:


      In web.xml:

      An example security config that only allows users with the
      role JBossAdmin to access the HTML JMX console web application


      <realm-name>Profilazione Utente Autenticazione</realm-name>


      Does it need any other configuration, other than this.

      I have tables Principals and roles using jbos hsql dbmanager.

      Quick reply will be highly appreciated.

      Thanks in advance.