diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2006-11-17 00:04:21 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2006-11-17 00:04:21 +0300 |
commit | 01730a436c18679523a664930cfc2db3f2cdad45 (patch) | |
tree | 135f56fad7d0fc88934c052d3d137c720fcee9d6 /mcs/class/Mono.Http | |
parent | 654d38765c00351f6a113fe7a69e7a6d7dbbecfc (diff) |
2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* NtlmClient.cs: fixes authentication if the first try fails and the
* second is supposed to work. Patch by egonia@acxiom.com that fixes bug
#79590.
svn path=/trunk/mcs/; revision=68035
Diffstat (limited to 'mcs/class/Mono.Http')
-rw-r--r-- | mcs/class/Mono.Http/Mono.Http/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/Mono.Http/Mono.Http/NtlmClient.cs | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/mcs/class/Mono.Http/Mono.Http/ChangeLog b/mcs/class/Mono.Http/Mono.Http/ChangeLog index 8dddf061061..ef14390c81b 100644 --- a/mcs/class/Mono.Http/Mono.Http/ChangeLog +++ b/mcs/class/Mono.Http/Mono.Http/ChangeLog @@ -1,3 +1,9 @@ +2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * NtlmClient.cs: fixes authentication if the first try fails and the + * second is supposed to work. Patch by egonia@acxiom.com that fixes bug + #79590. + 2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com> * NtlmClient.cs: return null if we have no credentials for NTLM. diff --git a/mcs/class/Mono.Http/Mono.Http/NtlmClient.cs b/mcs/class/Mono.Http/Mono.Http/NtlmClient.cs index 505fa67c518..fc748de083d 100644 --- a/mcs/class/Mono.Http/Mono.Http/NtlmClient.cs +++ b/mcs/class/Mono.Http/Mono.Http/NtlmClient.cs @@ -85,7 +85,13 @@ namespace Mono.Http } else { // Should I check the credentials? // type must be 3 here - completed = true; + if (challenge == null || challenge == String.Empty) { + Type1Message type1 = new Type1Message (); + type1.Domain = domain; + message = type1; + } else { + completed = true; + } } string token = "NTLM " + Convert.ToBase64String (message.GetBytes ()); |