Re: Tomcat 9 - Missing auth-constraint configuration appears to allow access to protected content

2022-09-18 Thread Mark Thomas
int" is the "" element that may be nested under a "" element. > However I found that if I placed an empty 'auth-constraint' element in the web.xml then I could NOT access /protected/protected.jsp without authorisation. e.g include the following in web.xml

Tomcat 9 - Missing auth-constraint configuration appears to allow access to protected content

2022-09-17 Thread Kerry
sub-folder 'protected' to match the above url-pattern I found that with this configuration I was able to access /protected/protected.jsp without any authorisation. However I found that if I placed an empty 'auth-constraint' element in the web.xml then I could NOT access /pr

Re: Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Cédric Couralet
2013/5/3 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Cédric, > > On 5/3/13 3:09 AM, Cédric Couralet wrote: >> More of a servlet spec question than a tomcat one, and, from what >> I read, a rather long shot, but is there a wa

Re: Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cédric, On 5/3/13 3:09 AM, Cédric Couralet wrote: > More of a servlet spec question than a tomcat one, and, from what > I read, a rather long shot, but is there a way to define > auth-constraint dynamically in web.xml? > > For insta

Dynamic auth-constraint in web.xml ?

2013-05-03 Thread Cédric Couralet
Hello, More of a servlet spec question than a tomcat one, and, from what I read, a rather long shot, but is there a way to define auth-constraint dynamically in web.xml? For instance I'd like to have the following /something/(.*)/someother

Re: AW: problem with auth-constraint in xml

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 2/14/12 3:12 AM, Hugi Michael, Informaticon AG wrote: > Thank you very much for your response. I thought I did it? The > pattern /rest/device is in the xml that I sent.? Oops, I missed this: >> /rest/device >> /rest/device/* (It got l

AW: problem with auth-constraint in xml

2012-02-14 Thread Hugi Michael, Informaticon AG
Betreff: Re: problem with auth-constraint in xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 2/13/12 8:30 AM, Hugi Michael, Informaticon AG wrote: > I have a problem with defining in the web.xml of my > java project. I defined sereval user roles, which have access to >

Re: problem with auth-constraint in xml

2012-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 2/13/12 8:30 AM, Hugi Michael, Informaticon AG wrote: > I have a problem with defining in the web.xml of > my java project. I defined sereval user roles, which have access > to sereval . Here is a part of the xml, in which I > define pat

problem with auth-constraint in xml

2012-02-13 Thread Hugi Michael, Informaticon AG
Hello I have a problem with defining in the web.xml of my java project. I defined sereval user roles, which have access to sereval . Here is a part of the xml, in which I define patterns, that can be acessed by every role. Webservice for everyone

RE: auth-constraint

2011-08-12 Thread markt
"Caldarale, Charles R" wrote: >> From: Bijesh Vijayan [mailto:bijes v...@gmail.com] >> Subject: Re: auth-constraint > >> Is there a way in tomcat 7 to mention the roles outside of web.xml. > >Read section 8 of the servlet 3.0 spec; you might be able to use

RE: auth-constraint

2011-08-12 Thread Caldarale, Charles R
> From: Bijesh Vijayan [mailto:bije...@gmail.com] > Subject: Re: auth-constraint > Is there a way in tomcat 7 to mention the roles outside of web.xml. Read section 8 of the servlet 3.0 spec; you might be able to use a web-fragment.xml to list the roles. - Chuck THIS COMMUNIC

Re: auth-constraint

2011-08-12 Thread Bijesh Vijayan
..@gmail.com] >> Subject: auth-constraint > >> I was having the following entry in my application web.xml in tomcat 5. > > You need to be precise when stating Tomcat versions; Tomcat 5.what.what? > >> >>   * >> > > Let's look at section 12.7 of th

RE: auth-constraint

2011-08-12 Thread Caldarale, Charles R
> From: Bijesh Vijayan [mailto:bije...@gmail.com] > Subject: auth-constraint > I was having the following entry in my application web.xml in tomcat 5. You need to be precise when stating Tomcat versions; Tomcat 5.what.what? > > * > Let's look at section 12.7 of

auth-constraint

2011-08-12 Thread Bijesh Vijayan
Hi, I was having the following entry in my application web.xml in tomcat 5. * I was getting all the roles from the Database. When I migrated to tomcat 7, I need to mention all the roles in application web.xml.

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Clement Chong
Hi Tim, Good suggestion! I'll look into it. I am in a situation where I'll prefer to work on my own than to bother IT with LDAP role setup and subsequent access granting to users. By having a JDBC Realm with a blacklist of users, I can easily control the access. I'll probably dig into the filter

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 6/24/2009 2:59 PM, Tim Funk wrote: > If you want a black list - it would probably be easier to write a filter > [programmatic security] instead of declarative security. You can even combine declarative + programmatic and read your configurati

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Tim Funk
If you want a black list - it would probably be easier to write a filter [programmatic security] instead of declarative security. [At a minimum, everyone would still need to be authenticated - its the authorization which is done via the filter (actually the filter will defer to the realm so the

RE: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Martin Gainty
Jun 2009 23:12:35 +0800 > Subject: Re: Help: auth-constraint with Tomcat 6 > From: ehch...@gmail.com > To: users@tomcat.apache.org > > Hi Tim, > > Basically the first realm contains list of users we want to deny access. The > password would be dynamic, making it difficult

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Clement Chong
Hi Tim, Basically the first realm contains list of users we want to deny access. The password would be dynamic, making it difficult to get through. Well, maybe I should really consider working with specific roles. That is, grant users with roles that would allow them access. Then I would probably

Re: Auth-constraint with Tomcat 6

2009-06-24 Thread Mark Thomas
Christopher Schultz wrote: >> Would it also be possible to change the behavior of the >> combinedRealm/LockoutRealm such that if username is found in prior >> realm and password is incorrect, then it skips the other realms? It >> only look into the other realms if username is not found in prior >>

Re: Auth-constraint with Tomcat 6

2009-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Clement, On 6/24/2009 2:57 AM, Clement Chong wrote: > > > * > > > User is now authenticated via JDBCRealm followed by JNDIRealm and > would be able to access protected pages with any role. > > The question I have is how can I deny a g

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Tim Funk
Do you really want to have allow different passwords for the same user id? Sounds dangerous. For different access control restrictions you needs to set up various roles, which are names chosen by you. Which can be something like - reader, writer - admin, superuser, user - it, sales, marketing,

Auth-constraint with Tomcat 6

2009-06-23 Thread Clement Chong
Hi tomcat users, I am using Tomcat 6.0.20 and have successfully implemented a lockout realm with nested JDBCRealm and JNDIRealm. The security constraint has also been setup in my application WEB-INF/web.xml file: * User is now authenticated via JDBCRealm followed by JNDIRealm and

Help: auth-constraint with Tomcat 6

2009-06-23 Thread Clement Chong
Hi tomcat users, I am using Tomcat 6.0.20 and have successfully implemented a lockout realm with nested JDBCRealm and JNDIRealm. The security constraint has also been setup in my application WEB-INF/web.xml file: * User is now authenticated via JDBCRealm followed by JNDIRealm and

Help: auth-constraint with Tomcat 6

2009-06-23 Thread Clement Chong
Hi tomcat users, I am using Tomcat 6.0.20 and have successfully implemented a lockout realm with nested JDBCRealm and JNDIRealm. The security constraint has also been setup in my application WEB-INF/web.xml file: * User is now authenticated via JDBCRealm followed by JNDIRealm and

Wildcard role-name in auth-constraint.

2006-05-18 Thread Ronny Batty
I am using the containers JDBCRealm but would like to allow any authenticated users (without roles) to access protected resources. I realise that the handling of * was modified to comply with the Servlet specification in Tomcat 5.5.x but is it really necessary to give all users an essentially meani

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-17 Thread David Delbecq
I was hoping to get something else. Sure our sysadmin will enjoy to put 600 usernames in one line of /etc/groups (assuming HP-UX and NFS allows it)... Mark Thomas a écrit : >David Delbecq wrote: > > >>*outch* This mean i will have to change my web.xml with future tomcat >>version. >>How do I al

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Mark Thomas
David Delbecq wrote: > *outch* This mean i will have to change my web.xml with future tomcat > version. > How do I allow access to a ressource to all authenticated users now? Create a global role. Assign all users to that role. Use the global role rather than "*". Mark -

Re: Fwd: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Mark Thomas
Oliver Kohll wrote: > Oops no it didn't, my mistake. The app now doesn't prompt for > authentication at all. Is there a way of getting it to work so that the > authentication is used but you don't have to hard code roles in web.xml? Make every user a member of the global role and use this role r

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread David Delbecq
*outch* This mean i will have to change my web.xml with future tomcat version. How do I allow access to a ressource to all authenticated users now? Mark Thomas a écrit : >Oliver Kohll wrote: > > >>Hi, >> >>I have security for a web application managed by a DataSource database >>realm. Using to

Fwd: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Oliver Kohll
t;[EMAIL PROTECTED]> Date: 6 February 2006 10:54:55 GMT To: "Tomcat Users List" Subject: Re: auth-constraint in web.xml in tomcat 5.5.15 Thanks. Commenting out the got the result I want. Oliver On 3 Feb 2006, at 17:54, Mark Thomas wrote: Oliver Kohll wrote: Hi, I have security f

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Oliver Kohll
Thanks. Commenting out the got the result I want. Oliver On 3 Feb 2006, at 17:54, Mark Thomas wrote: Oliver Kohll wrote: Hi, I have security for a web application managed by a DataSource database realm. Using tomcat 5.5.14 this works fine but in 5.5.15 there seems to be a problem.

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-03 Thread Mark Thomas
Oliver Kohll wrote: > Hi, > > I have security for a web application managed by a DataSource database > realm. Using tomcat 5.5.14 this works fine but in 5.5.15 there seems to > be a problem. > The problem seems to be the * line. If I put a > specific role in, users in that role can log in but

auth-constraint in web.xml in tomcat 5.5.15

2006-02-03 Thread Oliver Kohll
Hi, I have security for a web application managed by a DataSource database realm. Using tomcat 5.5.14 this works fine but in 5.5.15 there seems to be a problem. My application's web.xml contains portalBase Application /* *