问题
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