chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1427760 - /chemistry/dotcmis/trunk/DotCMIS/binding/binding-intf.cs
Date Wed, 02 Jan 2013 12:14:44 GMT
Author: fmui
Date: Wed Jan  2 12:14:44 2013
New Revision: 1427760

URL: http://svn.apache.org/viewvc?rev=1427760&view=rev
Log:
DotCMIS: NtlmAuthenticationProvider improvements

Modified:
    chemistry/dotcmis/trunk/DotCMIS/binding/binding-intf.cs

Modified: chemistry/dotcmis/trunk/DotCMIS/binding/binding-intf.cs
URL: http://svn.apache.org/viewvc/chemistry/dotcmis/trunk/DotCMIS/binding/binding-intf.cs?rev=1427760&r1=1427759&r2=1427760&view=diff
==============================================================================
--- chemistry/dotcmis/trunk/DotCMIS/binding/binding-intf.cs (original)
+++ chemistry/dotcmis/trunk/DotCMIS/binding/binding-intf.cs Wed Jan  2 12:14:44 2013
@@ -217,7 +217,18 @@ namespace DotCMIS.Binding
         {
             if (request != null)
             {
-                request.Credentials = CredentialCache.DefaultNetworkCredentials;
+                string user = GetUser();
+                string password = GetPassword();
+
+                if ((user == string.Empty || user == null) && (password == string.Empty
|| password == null))
+                {
+                    request.Credentials = CredentialCache.DefaultNetworkCredentials;
+                }
+                else
+                {
+                    request.Credentials = new NetworkCredential(user, password);
+                }
+                
                 request.CookieContainer = Cookies;
                 request.AllowWriteStreamBuffering = true;
             }



Mime
View raw message