[Mono-list] Problem connecting to a secure site via a NTLM authenticating proxy

Andrew Bryson abryson at rm.com
Mon Feb 14 14:46:16 EST 2011


Thanks for your response Steve.  I'm afraid I made a mistake in my original post - *hangs head in shame*.  The same binary DOES work on Windows when executed through the .NET framework.  The problem is specific to the mono runtime only.  

I'll give curl a try out though, thanks for the suggestion.  It may point to something wrong as you said.

Any hints to the mono problem would be appreicated.  I'm happy to gather more information (e.g. from tcpdump) if required.

Thanks,
andy

-----Original Message-----
From: Steve Lessard [mailto:s_lessard at yahoo.com]
Sent: Mon 14/02/2011 18:31
To: Andrew Bryson
Cc: mono-list at lists.ximian.com
Subject: Re: [Mono-list] Problem connecting to a secure site via a NTLM authenticating proxy
 
You should try isolating the problem by removing .NET and Mono altogether. Try using curl to make the same connection. Curl has support for all types of proxy servers as well as good debugging capabilities. Using curl may help you gain more insight into how connections through the proxy work.

-SteveL


On Feb 14, 2011, at 6:12 AM, Andrew Bryson <abryson at rm.com> wrote:

> 
> Hi all,
> 
> We've had a problem within our software for a while that our client on Mac
> (OS X 10.5-106, Mono 2.6) has not been able to connect to websites which
> require HTTPS when connecting through a NTLM authentication proxy (Microsoft
> ISA 2006).  In trying to get to the bottom of this I've discovered:
> 
> - This is a problem with Mono 2.6 and 2.8(.2).
> - NTLM authentication works through the ISA proxy when the target site uses
> plain HTTP.  We must connect securely via HTTPS.
> - The same problem happens on Windows when I execute my C# .NET 2.0 app
> directly (i.e. not launching it with 'mono').
> 
> I have put together a small application to allow me to test this issue. 
> When calling HttpWebRequest.GetResponse() the following exception occurs:
> http://pastie.org/1562663.
> 
> I've tried playing around with the HttpWebRequest.PreAuthenticate property,
> and associating the credentials with the HttpWebRequest.Credentials object
> (but the website does not require auth, only the proxy).
> 
> The same binary executed on Windows works.  I realy hope that somebody is
> able to help me out in either fixing the problem, or confirming that it's a
> known issue in the current Mono framework.  Here's the test application:
> http://pastie.org/1562659.
> 
> Thanks,
> andy
> -- 
> View this message in context: http://mono.1490590.n4.nabble.com/Problem-connecting-to-a-secure-site-via-a-NTLM-authenticating-proxy-tp3305051p3305051.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
____________________________________________________________________

RM Assessment is sponsoring the 9th e-Assessment Question Conference in London.
Visit us on our stand!

30th - 31st March 2011, America Square Conference Centre, London
http://www.rmassessment.co.uk/events/e-assessment_2011

____________________________________________________________________

P.S. Think Green - don't print this email unless you really need to.

This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information only for the intended purpose. Internet communications are not secure and therefore RM Education does not accept legal responsibility for the contents of this message. Any views or opinions presented are only those of the author and not those of RM Education. If this email has come to you in error please delete it and any attachments. Please note that RM Education may intercept incoming and outgoing email communications.

RM Education plc is a company registered in England and Wales, Company Reg. No: 01148594; Registered Office: New Mill House, 183 Milton Park, Abingdon, OXON OX14 4SE; VAT No: 630 8236 56
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110214/c3193de7/attachment-0001.html 


More information about the Mono-list mailing list