aspose file tools*
The moose likes Security and the fly likes Jaas custom Realm and Login Module Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Jaas custom Realm and Login Module" Watch "Jaas custom Realm and Login Module" New topic
Author

Jaas custom Realm and Login Module

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Hi,
I am new to JAAS and using this link to create custom Realm and Login module.
I have followed all the steps given in that tutorial.

I have created a web application with only one JSP page (index.jsp) as mentioned there and paste the following code in it:
Welcome ${pageContext.request.userPrincipal.name}

I have also add information to web.xml.
When I run the application it only displays the page with Welcome in it.

I would very much appreciate, if some one could guide me with this.
Should I have to create a LogIn page and then go to index.jsp page or some other steps are required to run the application.

Thanks
malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Finally found a solution.
In web.xml of the web application I placed the code:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jaas custom Realm and Login Module
 
Similar Threads
Issue matching web app with desired security domain (JBoss 4.2.2)
Basic question about JAAS in Java ...
Basic Websphere Security Questions
Error in integrating Simple JAAS with Tomcat 5.0
JAAS and Websphere