wood burning stoves 2.0*
The moose likes Security and the fly likes enabling JAAS authentication service in tomcat 6.0.20 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "enabling JAAS authentication service in tomcat 6.0.20" Watch "enabling JAAS authentication service in tomcat 6.0.20" New topic
Author

enabling JAAS authentication service in tomcat 6.0.20

Mumtaz Khan
Ranch Hand

Joined: Feb 21, 2008
Posts: 53
Hi,

I am trying to implement JAAS as an authentication and authorization service for my web application. I am using tomcat 6.0.20 server and mysql as database. I have read many articles on how to implement JAAS, infact have implemented it in a stand alone application where I am passing "java.security.auth.login.config" parameter as argument pointing to the jaas.config file.
For my web application , following this link, I added JAAS realm in server.xml but instead of providing authentication for specific application it is asking for authentication for Tomcat manager application when I am trying to run the application. How can I avoid this? Also which file should I add this -Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.config ?

The authentication should happen when I am submitting username and password on my login page.
Appreciate your help!!

Regards,


SCJP 5.0 -- 97%
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: enabling JAAS authentication service in tomcat 6.0.20
 
Similar Threads
JAAS login error: Failed to load users/passwords/role files
Weblogic 9.2 and custom JAAS config
JAAS and rdbms driven policy
Question about JAAS
JAAS and Policy files problems