• 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

Security question with Tomcat

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to have a secure web site that allows users to self/register. My question is that if I secure the site using user names in the tomcat-users.xml file and specify what pages need securing in the web.xml, then
1) How can I dynamically add users to the users.xml file?
2) Is that secure, could someone hack in and get the whole list of user ids and passowrds?
What other alternatives are there?
I'm leaning towards forgetting about the web.xml and users.xml altogether and having one main login servlet validate a user out of a database and start a session. Then have each subsequent servlet get the session and if not its present redirect the user to the login servlet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic