1 Reply Latest reply on Mar 3, 2004 4:28 AM by Scott Stark

    how to configure non defeault application policy

    sys user Master

      Hi Folks,

      I've a problem configuring JBOSS to non default application policy.

      In my \client\auth.conf

      MYAPP {

      org.jboss.security.auth.spi.DatabaseServerLoginModule required;

      };

      in jboss-web.xml

      <jboss-web>
      <security-domain>java:/jaas/MYAPP</security-domain>
      </jboss-web>

      in my longin-config.xml

      <application-policy name = "MYAPP">

      <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
      flag = "required">
      <module-option name = "dsJndiName">java:/abc</module-option>
      <module-option name = "principalsQuery">select Password from Principals where PrincipalID=?</module-option>
      <module-option name = "rolesQuery">select * from Roles where PrincipalID=?</module-option>
      <module-option name = "unauthenticatedIdentity">guest</module-option>
      </login-module>

      </application-policy>

      <application-policy name = "other">
      ...
      </application-policy>

      in my web.xml

      <login-config>
      <realm-name>MYAPP</realm-name>
      </login-config>

      in my mssql-ds.xml

      <local-tx-datasource>
      <jndi-name>abc</jndi-name>
      <connection-url>..</connection-url>
      <user-name>...</user-name>
      ..
      </local-tx-datasource>

      The problem is my jboss app server always referring to "other" application policy(default). How to I redirect to MYAPP application policy. Please guide me. Thanks