{"id":134,"date":"2015-02-10T19:05:09","date_gmt":"2015-02-11T02:05:09","guid":{"rendered":"https:\/\/www.jumpcloud.com\/engineering-blog\/?p=134"},"modified":"2021-09-22T16:54:02","modified_gmt":"2021-09-22T20:54:02","slug":"git-repository","status":"publish","type":"post","link":"https:\/\/jumpcloud.com\/blog\/git-repository","title":{"rendered":"Managing your Git repository with LDAP authentication"},"content":{"rendered":"\n
When setting up a Git repo, controlling access is key. With JumpCloud\u2019s LDAP solution, it\u2019s easy to manage your users’ access to your repositories. Let\u2019s walk through how this can be done.<\/p>\n\n\n\n
Create your Git server<\/h3>\n\n\n\n
We\u2019re assuming here that you have a clean Linux server machine. I\u2019m using Ubuntu 14.04. Other systems might have slight variations with the commands, especially in the installation steps.<\/p>\n\n\n\n
Install Git<\/h5>\n\n\n\n
Installing the Git server software is simple.<\/p>\n\n\n\n
sudo apt-get install git<\/pre>\n\n\n\n
Add user identities to the Git server<\/h3>\n\n\n\n
Git controls access to repositories through the fundamental user access to files and directories on the machine. By managing these users via LDAP, you manage who can access which repositories.<\/p>\n\n\n\n
Let\u2019s configure LDAP in JumpCloud to get this going.<\/p>\n\n\n\n
Get your organization\u2019s setting from the JumpCloud admin console<\/h5>\n\n\n\n