"mkumar79" wrote:"mkumar79" wrote:
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.
1. Modified the login-config.xml (in server/default/conf) to add
<login-module code="org.jboss.security.auth.spi.LdapLoginModule" flag="required">
... all optional LDAP attributes...
2. Added the following line in newly created file
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?
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.