File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Websphere Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Websphere Authentication" Watch "Websphere Authentication" New topic
Author

Websphere Authentication

Pritam Pritam
Greenhorn

Joined: Dec 05, 2003
Posts: 6
I am facing a major difficulty. It is as follows :
I have entered the following in web.xml
<security-constraint id="SecurityConstraint_1">
<web-resource-collection id="WebResourceCollection_1">
<web-resource-name>SecureMe</web-resource-name>
<url-pattern>/jsp/ILM/HomePage.jsp</url-pattern>
<url-pattern>/manualSetup.do</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint id="AuthConstraint_1">
<description>CategoryManager:+:tutorial</description>
<role-name>CategoryManager</role-name>
</auth-constraint>
<user-data-constraint id="UserDataConstraint_1">
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
Here /jsp/ILM/HomePage.jsp , /manualSetup.do are the resources to be protected . I have entered role as CategoryManager.

When i enter http://localhost:9080/ILMWeb/.. /HomePage.jsp

I am directed to Authentication page of WAS where i can enter Username and password as per the user's password in Active Directory.Having done this , when the username and password entered are correct I am directed again to Authentication page
where i entered username and password . At this stage i should be directed to HomePage.jsp as per the URL entered . This is because the username and password entered by me are correct.
Can u please help regarding this issue ?
May i know how did you tackle this problem ?
Waiting for your reply


It is one's attitude at the beginning of a task <br />which will, more than anything else, determine its outcome
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
This could be caused, for instance, by combining form-based authentication (which it sounds like you're using) with having cookies turned off on your browser...
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Please Pritam....
Don't post the same question in multiple threads (EJB and WebSphere AND private email...)
It's a bit hard to follow the evolution of your problem, and I'm sure it will discourage some JavaRancher


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Websphere Authentication