libgit2 / libgit2/libgit2sharp

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

未关闭
#2,016 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C#
星标
3.5k
派生
925
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在所述的 .NET 6 Linux 容器中使用 LibGit2Sharp 0.26.2 和 0.27.0-preview-0182,按照复现步骤进行操作。检查使用 DefaultCredentials 的 CloneOptions 回调,并比较这些版本之间原生库加载失败和 Negotiate 失败的情况。当相关失败可以复现,并且其受支持的解决方案或限制已记录在案时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, git, linux
领域
authentication, backend, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。