[Mono-dev] patch for Mono.Security.Protocol.Ntlm (revisited)

Atsushi Eno atsushi at ximian.com
Mon Aug 13 10:25:32 EDT 2007


Couple of months ago I posted a patch for NTLM authentication
which seemed outdated.

Now I'm revisiting this patch, with some NUnit test breakage fixes
(mentioned in the earlier post).

As for TDS testing, today I have been trying to test this NTLM auth
with our SqlClient, but I couldn't get it working fine with our
(unpatched) code. Should current code work fine?

Part of my code looks like below. I tried with MSDE 2000 (2005
Express too, but I heard that it won't work fine either way).
I guess I have no problem with this (it worked under .NET 1.x/2.0).
  string connStr = "Data Source=PC;Initial
Catalog=enotest0002;Integrated Security=True;Pooling=False";
  SqlConnection conn = new SqlConnection (connStr);
  SqlCommand cmd = new SqlCommand ("select * from Table2", conn);
  SqlDataAdapter adapter = new SqlDataAdapter (cmd);
  DataSet ds = new DataSet ();
  adapter.Fill (ds);

Any suggestions to verify NTLM stuff would be appreciated.

Atsushi Eno

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: version-aware-ntlm-2.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070813/25a7166d/attachment.pl 

More information about the Mono-devel-list mailing list