title: httpClient.SendAsync throws Unspecified GSS failure
body: <p>I am using .NET Core 3.1
  Here is a code that I am using:</p>
  <pre><code>        CredentialCache credentialCache = new CredentialCache();
          credentialCache.Add(new Uri(URL), &quot;NEGOTIATE&quot;, new NetworkCredential(USER, PASSWORD, DOMAIN));
  
          using (HttpClientHandler handler = new HttpClientHandler())
          {
              handler.Credentials = credentialCache;
  
              using (HttpClient httpClient = new HttpClient(handler))
              {
                  HttpRequestMessage request = new HttpRequestMessage(new HttpMethod(&quot;GET&quot;), REQUEST_URL);
  
                  HttpResponseMessage response = httpClient.SendAsync(request).Result;
  
                  Console.Write(response.ToString());
              }
          }
  </code></pre>
  <p>It works corrent on my windows machine but crushes when is launched on linux docker container:</p>
  <blockquote>
  <p>System.AggregateException: One or more errors occurred. (GSSAPI operation failed with error - Unspecified GSS failure.  Minor code may provide more information (Cannot find KDC for realm &quot;DOMAIN_NAME&quot;).)
  ---&gt; System.ComponentModel.Win32Exception (0x80090020): GSSAPI operation failed with error - Unspecified GSS failure.  Minor code may provide more information(Cannot find KDC for realm &quot;DOMAIN_NAME&quot;).
  at System.Net.Security.NegotiateStreamPal.AcquireCredentialsHandle(String package, Boolean isServer, NetworkCredential credential)
  at System.Net.NTAuthentication.Initialize(Boolean isServer, String package, NetworkCredential credential, String spn, ContextFlagsPal requestedContextFlags,ChannelBinding channelBinding)
  at System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
  at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
  at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
  at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
  at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
  at OurHomeServer.Log.LoggingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /src/OurHomeServer/Log/LoggingHandler.cs:line 35
  at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)</p>
  </blockquote>
  <p>It works when I use curl request in container's shell.</p>