Windows – Tortoise SVN v1.66 – authorization failed: Could not authenticate to server: could not parse

authenticationsslsvntortoise-svnwindows 7

So a co-worker is having an issue with connecting to a SVN repo over HTTPS. Here are the details:

OS: Windows 7 Enterprise x64

SVN Client: Tortoise SVN 1.6.6 x64

So, whenever he connects (via a fresh checkout (i.e. a clean svn checkout) or update of existing files (i.e. existing working copy)) to the SVN repo in question, he gets the following error:

Error: Unable to connect to a repository at URL  
Error:  'https://svn.server/svn/path/to/files'  
Error: OPTIONS of  
Error:  'https://svn.server/svn/path/to/files:  
Error:  authorization failed: Could not authenticate to server: could not parse  
Error:  challenge (https://svn.server/svn/path/to/files) 

I had my co-worker try the following things in TortoiseSVN to resolve the issue:

  1. Reset the Authentication Data in Tortoise SVN | Settings | Saved Data for the Authentication Data and URL History,

  2. Checked Proxy Settings in Tortoise SVN | Settings to make sure my co-worker has the same settings that I have on my laptop.

He had the same proxy settings (no settings configured) in TortoiseSVN. Clearing the Authentication Data did not seem to resolve the issue.

I asked my co-worker to log into a spare desktop that is joined to our Active Directory domain with his login credentials and try to checkout a working copy. He was able to check out files, update files, commit files to SVN from the spare desktop. Obviously this issue is not due to my co-worker not having permissions to access the SVN repo since he can communicate with the server from another machine.

So – what / why / where do I have to look on his laptop to resolve this issue? Based on the info contained in the error message, it sounds like something in his SSL certificate on his laptop is screwed up.

I should mention that the SVN server is VisualSVN Server and it is using Integrated Windows Authentication.

Let me know if you need any further info.

Thanks

Richard

Best Answer

Sounds like it this support article could be relevent:
http://www.visualsvn.com/support/topic/00052/

It seems to match all of the conditions that you described. Their fix says:

Since you run VisualSVN Server service under a dedicated user account, 
you have to add SPN manually to Active Directory: 

1.Logon to a Domain Controller as a domain administrator or as a user 
with specific delegated permissions required to modify SPNs. 
For additional information on permissions required to modify SPNs 
please read the "Delegating Authority to Modify SPNs" Microsoft TechNet article. 

2.Start elevated command prompt and enter the following command: 
setspn -a http/hostname.contoso.com CONTOSO\username 
Related Question