DefaultCredentials Issue

Dec 4, 2008 at 3:01 PM

I have found that SvnBridge does not work for my corporate environment due to domain security :) Due to project needs I use domain controller on my PC, and our corporate network uses theirs central domain controller to grant access to TFS source control.

So, then I try to check-in changes from my computer to our central TFS storage an error occurs: my local domain user does not have rights to main server.

I have examined source code and have found out the reason: the module SvnBridge.SourceControl.CredentialsHelper invokes values form CredentialCache.DefaultNetworkCredentials in GetCredentialsForServer method.

To solve this I have created applied following patch:

Index: CredentialsHelper.cs
--- CredentialsHelper.cs    (revision 25967)
+++ CredentialsHelper.cs    (working copy)
@@ -21,7 +21,9 @@
-                    credentials = DefaultCredentials;
+                    CredentialCache cache = new CredentialCache();
+                    cache.Add(uri, "Basic", new NetworkCredential(null, null));
+                    credentials = cache;
             return credentials;

It works well for me (the SvnBridge asks me for password and I can store this information in TortiseSVN and use it in future). I'd like to commit this patch to repository, however I don't know is there are any other users with the same problem.