Using apache authentication with gitweb, gitosis – repository access control
gitosis is a tool for simple hosting of git repositories and managing access to them. gitweb has capabilities to control which repositories are listed on the project list page – $strict_export, $export_auth_hook and some other friends. in my case, everyone accessing web resources are authenticating through apache, which in turn connects to an LDAP server.
Here is a guide for setting up gitosis.
Q: how to provide gitweb access only to those repositories to which the apache user has been granted access in gitosis.conf?
A: use $export_auth_hook in /etc/gitweb.conf.
This is modified source of gitweb_auth.
Make sure you match up your Apache names, ssh public keyfile names and gitosis ‘writable’ names.
Note: you may want to check out gitolite, an enhanced gitosis.
-
http://github.com/sitaramc/gitolite Sitaram
-
http://github.com/sitaramc/gitolite/blob/pu/doc/3-faq-tips-etc.mkd#gitwebauth Sitaram
-
http://www.linuxized.com Alex Alexander
-
http://leho.kraav.com LK
-
http://th-h.de/blog/archives/1530-gitweb-mit-Passwortschutz.html Aus dem Leben eines Szlauszafs
-
http://massaioli.homelinux.com/wordpress/2010/04/09/gitweb-and-gitosis-play-nice/ Gitweb and Gitosis: Play Nice | Programming by Robert Massaioli

