libgit2 / libgit2/libgit2sharp

Unable to load shared Lib "git2-106a5f2" or one of its dependencies & "Negotiate" authentication is not supported

Open
#2,016 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

Reproduction steps

Our .net 6 app uses LibGit2Sharp 0.26.2 version . Our git is in Bitbucket which accepts Kerberos via SPNEGO. It all works fine in our windows environment. when we do dotnet publish ...... -r linux-x64 , I see that the 'git2-106a5f2' is also copied. A container is created with Linux/ubi7 to run the app, where we get the Unable to load shared Lib "git2-106a5f2" or one of its dependencies

Later I upgraded it to 0.27.0-preview-0182 which fixed Unable to load shared Lib "git2-106a5f2". However, it start throwing "Negotiate" authentication is not supported when Repo.Clone is called with CloneOptions.

CloneOptions is given a new DefaultCredentials() call back , to work with SPNEGO.

Version of LibGit2Sharp (release number or SHA1)

LibGit2Sharp 0.26.2 - Unable to load shared Lib "git2-106a5f2"

0.27.0-preview-0182 - "Negotiate" authentication is not supported

Operating system(s) tested; .NET runtime tested

.net 6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduction steps using LibGit2Sharp 0.26.2 and 0.27.0-preview-0182 in the described .NET 6 Linux container. Inspect the CloneOptions callback using DefaultCredentials and compare the native library-loading and Negotiate failures across those versions. Done means the relevant failure is reproducible and its supported resolution or limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git, linux
Domain
authentication, backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.