• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WAS AEs Security

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have got a FORM based authentication in an application. In the Assembly Tool, I have specified the roles and the users. However when I use the method in the servlet request.isUserInRole("RoleName"), the authorization fails. But when I use the method the request.getRemoteUser(),I get the loginname of the User.
It would great help, if some can tell me how the roles mapping ca be done so that the request.isUserInRole("RoleName") does not fail.
Any help would be appreciated
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using AE multi-server version or AEs (Single-server version)? The answer is different in each. Part of the answer depends on WHAT repository you use for your users.
Kyle
 
Abhi Gokhale
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle,
I am using the NT Realm on an AE single server edition. I think there is some relation between the url-pattern and the security contraints that we specify in the web module.
Please tell me whether I am on the right track.
Abhi
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, in the AAT you specify which roles have access to which URL's. For instance, you may create a role "administrators" and give access to your servlets and JSP's to "administrators". Then you'd map this to your NT users using the Web console. The instructions for doing the second part are here:
http://www-3.ibm.com/software/webservers/appserv/doc/v40/aes/infocenter/index.html
So did you carry out the second step?
Kyle
 
reply
    Bookmark Topic Watch Topic
  • New Topic