1 Reply Latest reply on Jan 28, 2004 3:38 PM by mkumar79

    jboss/ldap/struts menus

    mkumar79

       

      "mkumar79" wrote:
      "mkumar79" wrote:
      Hello,
      I am using Struts Menus, which print out menu and menu items based on user's roles, retrieved by request.UserInRole().

      I also have instance of LDAP set up.

      After reading the user groups and some documents, this is what I have gathered so far (which is not working). Please let me know if I am missing a step or doing something incorrect. Any help would be appreciated.
      Thanks,

      1. Modified the login-config.xml (in server/default/conf) to add
      <application-policy name="security">
      <authentication>
      <login-module code="org.jboss.security.auth.spi.LdapLoginModule" flag="required">
      ... all optional LDAP attributes...
      </login-module>

      2. Added the following line in newly created file
      <jboss>
      <security-domain>java:/jaas/security</security-domain>
      </jboss>

      DO I STILL NEED THIS STEP IF I DON'T HAVE ANY EJBs? WHICH FOLDER DO I CREATE THIS FILE UNDER?

      3. Create a jboss-web.xml file with same information as above

      4. Create a login form (login.jsp)

      Am I missing something else?

      Thanks again!


        • 1. Re: jboss/ldap/struts menus
          mkumar79

           

          "mkumar79" wrote:
          I have finally figured out how to get Struts Menus working with Jboss/JAAS using file-based authentication. Let me know if anyone is interested in viewing the configurations.

          I am still working on LDAP configuration. I can get the user to authenticate but I don't think I am setting the roleAttribute correctly.

          Thanks,