Is there a way to use Windows Authentication (Active Directory) for a Git server?

主宰稳场 提交于 2019-12-18 14:43:01

问题


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.


回答1:


You can simply use a shared folder as git repository inside your domain and administer it with your domain users.

c:/> git clone \\myserver\repository\myfolder



回答2:


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




回答3:


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.




回答4:


You could use scm-manager, which has an active directory plugin.




回答5:


You can also host the repo with IIS over HTTPS and then protect each project subfolder with Windows user credentials.




回答6:


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 :)




回答7:


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.



来源:https://stackoverflow.com/questions/4329740/is-there-a-way-to-use-windows-authentication-active-directory-for-a-git-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!