Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

enabling JAAS authentication service in tomcat 6.0.20

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic