Getting prompted for a Userid/Password - TFS 2010

Sep 9, 2010 at 6:14 PM

I'm running TFS 2010 release edition. I get prompted for a userid and password whenever I go to the SVN Bridge server website.   Here is what I currently have in my web config per the suggestions on the board.

<appSettings>
    <add key="DomainIncludesProjectName" value="False" />
    <add key="TfsUrl" value="http://localhost:8080/tfs/DefaultCollection" />
    <add key="LogPath" value="C:\svnbridge-server\logs" />
    <add key="ReadAllUserDomain" value="[Our domain]" />
    <add key="ReadAllUserName" value="[Valid user w/ TFS access] " />
    <add key="ReadAllUserPassword" value="[password]"/>

</appSettings>

 

Site is installed as its own website running on port 8081 using IIS v7. Performance counters have been installed. 

I tried this with the code from the download section and got prompted for a userid and password with the following message below in the log. I tried with the latest code from SVN and just get prompted with no errors in the log. Any Ideas?

Time     : 9/7/2010 3:05:15 PM
Message  : Unrecognized authorization header: False
Request  : GET /Savo/ HTTP/1.1

Exception:
   System.Exception: Unrecognized authorization header: False
   at SvnBridge.Net.HttpContextDispatcher.GetCredential(IHttpContext context)
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection)
   at SvnBridgeServer.SvnBridgeHttpHandler.ProcessRequest(HttpContext context)

Stack Trace:
   at SvnBridge.Net.HttpContextDispatcher.GetCredential(IHttpContext context)
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection)
   at SvnBridgeServer.SvnBridgeHttpHandler.ProcessRequest(HttpContext context)

Headers:

Connection: keep-alive
Keep-Alive: 115
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml;q=0.9
Accept: */*;q=0.8
Accept-Charset: ISO-8859-1
Accept-Charset: utf-8;q=0.7
Accept-Charset: *;q=0.7
Accept-Encoding: gzip
Accept-Encoding: deflate
Accept-Language: en-us
Accept-Language: en;q=0.5
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAHYAAAAYABgAjgAAAA4ADgBIAAAADAAMAFYAAAAUABQAYgAAAAAAAACmAAAABYKIogUCzg4AAAAPQwBIAEkAQwBBAEcATwBnAGIAcgBvAHcAbgBDAE8AUgBXAFMAMQAwADQAMAA0AGnexjSxgx7AAAAAAAAAAAAAAAAAAAAAANtdp6hO2gCxVzFYlaH7VYL3ojkdmXVd7Q==
Host: tfs.chicago.savogroup.net:8081
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)

Dec 17, 2014 at 7:16 AM
Hi,

the
Unrecognized authorization header: False
message is caused by a (buggy......) log output in SvnBridgeLibrary/Net/HttpContextDispatcher.cs , which gets thrown in case the

if (authorizationHeader.StartsWith("Digest"))
else if (authorizationHeader.StartsWith("Basic"))
else
throw new Exception("Unrecognized authorization header: " + authorizationHeader);

check went haywire (IOW, fix your configuration issue, to do SVN's HTTP communication properly by having the WWW-Authenticate header request either "Digest" or "Basic" authentication).
                 {
-                    throw new Exception("Unrecognized authorization header: " + authorizationHeader.StartsWith("Basic"));
+                    // Message used to show a StartsWith() result only,
+                    // however I don't think this is what was intended - unless it was done for security reasons
+                    // (don't expose full auth header, or don't log potentially large string??).
+                    // If so, this place was lacking a proper comment...
+                    throw new Exception("Unrecognized authorization header: " + authorizationHeader);
                 }