1 Reply Latest reply on Aug 23, 2005 11:14 AM by Scott Stark

    I have problem migrating application from weblogic to jboss

    Ramachandra Reddy Newbie

      I have problem migrating application from weblogic to jboss

      With security roles defined in jboss.xml

      <security-domain>java:/jaas/Advisor</security-domain>
      <security-role>
      <role-name>clients</role-name>
      <principal-name>clients</principal-name>
      <principal-name>ccc:role/client</principal-name>
      </security-role>

      <security-role>
      <role-name>managers</role-name>
      <principal-name>managers</principal-name>
      <principal-name>ccc:role/manager</principal-name>
      <principal-name>ccc:manager/T_AI_Manager1</principal-name>
      </security-role>

      and web.xml entry is

      <security-role id="SecurityRole_1047986176812">

      <role-name>managers</role-name>
      </security-role>
      <security-role>

      <role-name>clients</role-name>
      </security-role>

      and authenticating against login module after that getting forbidden error.

      Whatever security-roles mapped with principal-name in jboss.xml, not authorizing and same peace of code will work with Weblogic very well.
      Below code for Weblogic-application.xml

      <security-role-assignment>
      <role-name>clients</role-name>
      <principal-name>clients</principal-name>
      <principal-name>ccc:role/client</principal-name>
      </security-role-assignment >

      <security-role-assignment >
      <role-name>managers</role-name>
      <principal-name>managers</principal-name>
      <principal-name>ccc:role/manager</principal-name>
      <principal-name>ccc:manager/T_AI_Manager1</principal-name>
      </security-role-assignment >


      And I don?t have to set roles in LoginModule, how to achieve same functionality in jboss.
      Let you us know if its possible with jboss