Can Git authenticate virtual users via PAM? In particular, would Git require some additional utility, such as gitolite
or gitosis
?
Asked
Active
Viewed 1,181 times
2

davide
- 162
- 8
-
Since I require to authenticate Git users against a MySQL database, a simpler solution which doesn't require PAM can be applied: run git via HTTP protocol, served by Apache with modules auth_mysql and WebDAV. I haven't yet solved this simpler hypothetical way, but it seems I'm close. Here I discussed one of the troubles encountered: http://www.mail-archive.com/git@vger.kernel.org/msg14449.html – davide Dec 29 '12 at 20:57
-
Problem solved thanks to the discussion carried on the above mailing list. – davide Dec 30 '12 at 01:03
1 Answers
1
Git doesn't authenticate. Period.
Gitolite (please don't use the now obsolete project gitosis) is only for authorization.
As long as the listening service (ssh or apache) is able to:
- use PAM (like an
libapache2-mod-auth-pam
in "Authenticate Apache using PAM") - call gitolite (as in this configuration, L107)
You can authenticate using PAM and authorize using Gitolite.