aspose file tools*
The moose likes Tomcat and the fly likes wildcard for tomcat-users.xml users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "wildcard for tomcat-users.xml users" Watch "wildcard for tomcat-users.xml users" New topic
Author

wildcard for tomcat-users.xml users

Jaime Acosta
Greenhorn

Joined: Nov 24, 2010
Posts: 4
Hello,

I'm curious if it's possible to make some kind of modification to the tomcat-users.xml file that would allow me to provide a generic password for all users of a specific role. For example, instead of creating a new user record for every user with rold="client,user", i'd like to just have one user record for that role.

Essentially, i want to do something to the effect of this:


instead of creating something like this:


Any direction you can provide would be greatly appreciated.

thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

I wouldn't use tomcat-users.xml for general user management for web apps. Just for access to the manager app and so on for admins.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jaime Acosta
Greenhorn

Joined: Nov 24, 2010
Posts: 4
Hello Bear,

thanks for the quick response!

yes, in production, we authenticate against a database (i am unfortunately not too familiar with our authentication process), but to avoid having to know the user's password to look at a user's production data, we circumvent that authentication and just supply the user's username and a dummy password in tomcat-users.xml

I was thinking of the possibility of creating a stripped down version of our production application that basically did this circumvention, but didn't require us to add a user's username everytime we wanted to see their account. That is essentially why i wanted to know if there was a way to use a wildcard in the tomcat-users file.

Is this not possible?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

It is not.
Jaime Acosta
Greenhorn

Joined: Nov 24, 2010
Posts: 4
that's disappointing ;*(

I guess I'll have to start trying to figure out how the authentication works instead...

thank you very much your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wildcard for tomcat-users.xml users