Re: Basic Authentication with Tomcat

2008-08-18 Thread Mark Thomas
Tom Cat wrote: > /myAdmin/admin.html This should be: /admin.html > > I think this should be enough to require authentication when someone > goes to http://localhost:8080/myAdmin/admin.html on the local machine. > And yet, it allows everyone access to the page, without even promptin

Basic Authentication with Tomcat

2008-08-18 Thread Tom Cat
Hello, I am trying to setup basic http authentication with tomcat. I modified my the web.xml file in the project's WEB-INF folder. Here is the relevant portion: http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web

Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread ram . sriharsha
Hi Chris, I figured out why the code I wrote did not work(had to look into the Authentication class inside Tomcat source code to figure it out!). The reason was when I was setting Request Property for Authentication, I was missing a space setRequestProperty("Authorization","Basic"+Base64.encode(in

Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram, [EMAIL PROTECTED] wrote: | with authentication turned | on, i receive a HTTP 401 error from the server when i try to undeploy. This is how it's supposed to work. | I am using standard code to access the tomcat manager, and am using basic | aut

basic authentication with tomcat 4.1.36

2008-03-18 Thread ram . sriharsha
Hi, I am trying to undeploy applications from Tomcat 4.1 using basic authentication, by writing a small HTTP client that uses a URL connection to request the Tomcat Manager to undeploy application given the context. Unfortunately, this is not working! If I remove the login-config details associated