Private Git repo using Smart HTTP with LDAP authentification

Posted by ALOToverflow on Server Fault See other posts from Server Fault or by ALOToverflow
Published on 2012-12-18T15:57:35Z Indexed on 2012/12/18 17:04 UTC
Read the original article Hit count: 171

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about ubuntu

Related posts about ldap