I’m running a SVN repo server with ldap/file auth. This let me filter which users will access each of the repositories in the server.
Now I’m planning to migrate to GIT and I’ve already get GIT running through Apache/LDAP, but I cannot manage to get users filtered as I have on SVN.
Is there a way to achieve this?
Thanks
You can replicate the same authentication mechnism (LDAP auth, declared in your httpd.conf) if you are calling the smart http mechanism behind, as described in “Setting up GIT with Apache Smart HTTP/S and LDAP“.
Note that this is different from the authorization part, as explained in Gitolite: authorization vs. authentication, and explained in “Using LDAP as auth method to manage git repositories“.
I prefer to use LDAP aliases in order to reference that authentication server multiple times:
Here is an example of a config (with SSL in place) using LDAP: