Skip to content

Problems with dotnet restore on Unbuntu 18.04.1: SPNEGO cannot find mechanisms to negotiate #28324

Closed
@jeroenlandheer

Description

@jeroenlandheer

I've installed the .Net Core SDK, added a authenticated feed from a local TFS instance and I get this error when running dotnet restore:

/usr/share/dotnet/sdk/2.2.101/NuGet.targets(114,5): error : Unable to load the service index for source https://xxxxxxxxx/tfs/xxxxxxx/_packaging/xxxxx/nuget/v3/index.json. [/home/beheerder/net/hello/hello.csproj]
/usr/share/dotnet/sdk/2.2.101/NuGet.targets(114,5): error :   GSSAPI operation failed with error - An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate). [/home/beheerder/net/hello/hello.csproj]

The server is using NTLM and Kerberos Authentication, we have no issues with using these feeds on Windows.

.Net SDK v2.2
Tried on Ubuntu 18.04 and 16.04, both have the same issues.

On IIS Extended Protection is off, Kernel-mode authentication is on, Negotiate and NTLM provider are both enabled. Besides that Anonymous authentication is enabled on the /tfs directory. (Standard configuration AFAIK.) SPN of the server is registered for Kerberos Auth. (HTTP/my-server-address points to the TFSService account)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions