Re: [CentOS] Tomcat with squid username/password

2008-09-20 Thread lingu
HI,

  If it is an squid proxy then you can bypass the tomcat server from the
squid using two steps.

1) using   url_regex   in squid

2) you can  masquerade that particular tomcat server ip using iptables on
the squid box  using iptables.

Regards,

Lingu

On Thu, Sep 11, 2008 at 8:28 AM, Harry Sukumar <[EMAIL PROTECTED]> wrote:

>  Hi,
>
>
>
> I am trying to help my friend on this
>
>
>
>
>
> --
>
> Hi,
>
> I have an application deployed on tomcat 5.5 with java 1.6.0_07.
>
> Occasionally the application needs to connect through our proxy to the
> outside to collect patches.
>
> I've added the following options to the JAVA_OPTS and restarted tomcat.
>
> -Dhttp.proxyUser =username
> -Dhttp.proxyPassword =password
> -Dhttp.proxyHost=proxy.company.com.au
> -Dhttp.proxyPort=3128
>
> Using snoop on the squid proxy I can see the requests, but the
> username/password combinations are not being sent and the tomcat
> application receives a 407/DENIED message.
>
> Is there a reason the username/password are not being sent? Our squid
> proxy uses both NTLM and basic authentication.
>
> thanks
>
>
>
> Harry
>
>
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat with squid username/password

2008-09-11 Thread Jeff Kinz
My apologies for that last post. It was not intended to go to the
list. I must have fat fingered the reply to choice.  Sorry!.
Jeff Kinz

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat with squid username/password

2008-09-11 Thread nate
Harry Sukumar wrote:

> Is there a reason the username/password are not being sent? Our squid
> proxy uses both NTLM and basic authentication.

The reason is your application code is not using the proxy, or
the application code is calling http libraries that are not using
the proxy.

Really nothing to do with tomcat, the arguments you passed to the
JVM are JAVA options not Tomcat options.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat with squid username/password

2008-09-11 Thread Jeff Kinz

Hi, for the sake of the the CentOS email servers, would you
please turn off attaching the additional copy of your email in
HTML format?

You are sending your email out in both plain text and HTML
format, which more than doubles the size of your email, thereby
doubling the amount of bandwidth the CentOS email server has
to use to send it to the many many people on the list.  This
increases the cost of sending out your email by almost 100% but
doesn't provide any more actual content.

to see how to turn off HTML in many email clients look at
this web page: 
http://expita.com/nomime.html#programs

This is desired by the CentOS mailing list rules. per:

1. Please turn off HTML in your e-mail client for these mailing
lists.  We have several subscribers who read the list with
text only readers and they can't easily read HTML formatted
e-mails. There is a place (somewhere) for the flowery stationary
and themes that some mail clients offer ... but this is not
it. Again, please only post text e-mails to these mailing lists.

Quoted from:
http://www.centos.org/modules/tinycontent/index.php?id=16
(near the bottom)


Thanks,
Jeff Kinz
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Tomcat with squid username/password

2008-09-10 Thread Harry Sukumar
Hi, 

 

I am trying to help my friend on this 

 

 


--

Hi,

I have an application deployed on tomcat 5.5 with java 1.6.0_07.

Occasionally the application needs to connect through our proxy to the
outside to collect patches.

I've added the following options to the JAVA_OPTS and restarted tomcat.

-Dhttp.proxyUser =username
-Dhttp.proxyPassword =password
-Dhttp.proxyHost=proxy.company.com.au  
-Dhttp.proxyPort=3128

Using snoop on the squid proxy I can see the requests, but the
username/password combinations are not being sent and the tomcat
application receives a 407/DENIED message.

Is there a reason the username/password are not being sent? Our squid
proxy uses both NTLM and basic authentication.

thanks

 

Harry 

 

 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos