Private Git repo using Smart HTTP with LDAP authentification
- by ALOToverflow
I've been crawling the interwebz and getting my hands dirty for the last few days, but I can't seem to make it all work together.
I managed to get a HTTP repo working with Ubuntu 10.04 over Smart HTTP (pull and push over HTTP) for a single repo. This means that I do the initial setup over SSH to the server (git init --bare) and after that the clients can pull and push to it (git clone http://servername/allgitrepos/repo.git).
Unfortunately it's impossible to add a new repo without SSHing to the server and adding it manually) i.e. git push http://servername/allgitrepos/repo2.git (allgitrepos is available for everyone to read-write and execute) would fail talking about git update-server-info (which seems to be a general error message).
So far the repository is anonymous, so I would like to authenticate using LDAP and also use the LDAP creds to make the git commit.
So, how can I push new repos to the server and how can I use the LDAP creds to make the git commit.
Thanks