0 Replies Latest reply on Jun 10, 2008 10:02 AM by jbosexplorer

    Multiple Principal not working - JBoss 4.2.1

    jbosexplorer

      Hi There,

      I'm using JBoss 4.2.1 and doing LDAP Authentication (j_security_check) in my web application. I've the following snippet in web.xml

      <security-role>
       <role-name>Admin_View</role-name>
       </security-role>
      <security-role>
       <role-name>AdminStandard</role-name>
       </security-role>...

      and, the following in jboss-web.xml.
      <security-role>
       <role-name>Admin_View</role-name>
       <principal-name>AdminStandard</principal-name>
       <principal-name>AdminAuthoriser</principal-name>
       <principal-name>AdminSuperUser</principal-name>
       </security-role>


      In my java code, I'm doing the following for a user in AdminStandard group in LDAP,

      if(this.getRequest().isUserInRole("Admin_View"))
       {
       forward = "adminsuccess";
       }


      it's not going thru' the loop. when I debugged, the condn returns false. any idea why?

      Thanks.