diff options
author | Andres G. Aragoneses <knocte@gmail.com> | 2013-03-13 23:00:50 +0400 |
---|---|---|
committer | Andres G. Aragoneses <knocte@gmail.com> | 2013-03-13 23:00:50 +0400 |
commit | 05600e811489297c4503063ea4dc9d048fd9752d (patch) | |
tree | 0d4cdbc40ef0014641a555c176de578e206b5736 /mcs/class/Mono.Data.Tds | |
parent | e0e560630a5c3634e2f9efc0a5aed45d00ad8388 (diff) |
[Mono.Data.Tds] Stop using Obsoleted NTLM APIs (partial fix for BXC#11122)
New NTLM APIs have been pushed recently[1], which made Mono.Data.Tds break
with IOE: Refusing to use legacy-mode LM/NTLM authentication unless
explicitly enabled using DefaultAuthLevel.
This doesn't fix the bug completely, but at least reverts the situation
to the same exception being thrown before the NTLM changes took place.
[1] https://github.com/mono/mono/commit/45745e5123267e8530b87b8dada9a89c6269b383
Diffstat (limited to 'mcs/class/Mono.Data.Tds')
-rw-r--r-- | mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs index 214afcfb443..6865df9adbe 100644 --- a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs +++ b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs @@ -1463,8 +1463,7 @@ namespace Mono.Data.Tds.Protocol // 0x0200 Negotiate NTLM // 0x8000 Negotiate Always Sign - Type3Message t3 = new Type3Message (); - t3.Challenge = t2.Nonce; + Type3Message t3 = new Type3Message (t2); t3.Domain = this.connectionParms.DefaultDomain; t3.Host = this.connectionParms.Hostname; |