• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Update of Tomcat-users.xml by Tomcat Administration Tool

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have clarification regarding the user management of Tomcat server.

1. When we make updation of tomcat-users.xml editing through any editor and the tomcat server is started, the new entries are not available immediately for use unless we restart the server.
2. When we make updation of tomcat-users.xml using admin tool of tomcat the values are reflected in the in memory of the tomcat server (i.e. we can use those user details with restarting the tomcat server)

would like to know the mechanism admintool uses to update the in memory of tomcat server whenever there is a new entry of user/role/group in tomcat-users.xml.

Regards
Roshini
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IF this was my problem I would download the Tomcat source code and start searching.
 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

OK.

I will do analyse on the source .. any other inputs on this !! for easy reference would be of great help.

Thanx in advance.

Regards
Roshini.S
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to access the internals of Tomcat from within your web application, you need to set the 'privileged' attribute in your Context entry to "true".

Other than that, I think William's advice is the best you'll get.
 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mr.Ben , i downloaded the source, I will search it.

Would like to know how tomcat maintains the user information across session and how its mapped with the web application using security-constraint tag of web.xml., any web links or tutorial would be of great help.


Regards
Roshini.S
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Security-constraints are driven by the Servlet Spec.
There is a link to the spec in my signature.

How a particular container implements the spec is up to the makers of the container. I don't know of any tutorials that explain the inner workings of Tomcat. I think the source code and the documentation on the Tomcat site will be your best bets.
http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html
 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mr.Ben for your suggestion.

Regards
Roshini.S
 
Evildoers! Eat my justice! And this tiny ad's justice too!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic