Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 438
Pat O Avatar asked Dec 01 '10 22:12

Pat O


People also ask

Does Windows authentication use Active Directory?

You can use Windows authentication when your IIS 7 server runs on a corporate network that is using Microsoft Active Directory service domain identities or other Windows accounts to identify users. Because of this, you can use Windows authentication whether or not your server is a member of an Active Directory domain.


2 Answers

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
like image 105
Luke Avatar answered Oct 23 '22 21:10

Luke


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

like image 34
Zain Rizvi Avatar answered Oct 23 '22 23:10

Zain Rizvi