有没有办法对 Git 服务器使用 Windows 身份验证(Active Directory)?
我找到了有关如何在 Windows 服务器上安装 Git 并使用 SSH(例如 CopSSH)进行身份验证的文章。我对此感到有点惊讶,因为我记得读到过不应使用 Windows 计算机来共享 Git 存储库(抱歉不记得我在哪里读到了)。我的问题是我可以将 Git 设置为使用 Windows 身份验证而不是 SSH 吗?这对我来说管理起来要容易得多。由于机器将由我在“业余时间”管理,所以越简单越好。
I have found articles regarding how to install Git on a Windows server and use SSH (such as CopSSH) for authentication. I am a little surprised by this as I remember reading that one should not use a Windows machine for a shared Git repository (sorry don't remember where I read that). My question is can I setup Git to use Windows Authentication rather than SSH? This would be considerably easier for me to administer. Since the machine would be administered by me in my "spare time", easier is better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您可以简单地使用共享文件夹作为域内的 git 存储库,并与域用户一起管理它。
You can simply use a shared folder as git repository inside your domain and administer it with your domain users.
Microsoft 正式支持 Windows 版 Git Credential Manager 使用 Windows 身份验证向 git 进行身份验证。
https://github.com/Microsoft/Git-Credential-Manager-for-Windows
Git Credential Manager for Windows is officially supported by Microsoft to use Windows authentication to authenticate yourself to git.
https://github.com/Microsoft/Git-Credential-Manager-for-Windows
您可以使用 Redmine 来 控制用户对 Git 存储库的访问。反过来,Redmine 本身支持使用 Active Directory 进行身份验证。因此,您的 Git 服务器拥有 Active Directory 身份验证。我们使用这个设置没有问题。
如果您不想使用Redmine,请备注一下。在我看来,Redmine 是最好的开源项目管理应用程序,即使您不需要 AD 身份验证,它也确实值得使用。
You could use Redmine to control user access to Git repositories. In turn, Redmine natively supports authentication with Active Directory. Thus, you have Active Directory authentication for your Git server. We use this setup without problems.
Just a remark in case you don't want to use Redmine. Redmine is in my opinion the best open source project management application out there, and it's really worth using even if you don't need the AD authentication.
您可以使用 scm-manager,它有一个活动目录插件。
You could use scm-manager, which has an active directory plugin.
您还可以通过 HTTPS 使用 IIS 托管存储库,然后使用 Windows 用户凭据保护每个项目子文件夹。
You can also host the repo with IIS over HTTPS and then protect each project subfolder with Windows user credentials.
您可以使用 Windows Credential Store for Git
https://gitcredentialstore.codeplex.com/
它将您的 Git 凭据保存在 PC 的 Windows 凭据存储中,并保留它安全地存放在安全的地方。而且它真的很容易使用:)
You can use Windows Credential Store for Git
https://gitcredentialstore.codeplex.com/
It saves your Git credentials in your PC's Windows Credential Store, keeping it safe in a secure location. And it's really easy to use :)
Gitlab Enterprise 声称支持 Active Directory。我还没有演示它,但我正在考虑将它作为一个选项,因为我们迁移我们的组织希望有 AD 支持的 svn 服务器。
Gitlab Enterprise claims to support Active Directory. I haven't demo'd it yet, but I'm considering it as an option as we migrate a svn server that our organization wants to have AD backing it.