2

This question is an extension of https://stackoverflow.com/q/438163/1168342 I'd like to know specifically if there's a web interface to Git repository server allowing users to:

  1. Register for an account if they haven't one already. (assume server's only visible via VPN)
  2. Manage (create/share) private repos with other users on same server.

I looked at Redmine and GitLab, and both seem to require superusers to create accounts. GitLab runs on Gitolite, which seems to support the back-end of pre-configured accounts. But I'm looking for something with the front-end software that manages the users/sharing.

p.s. This is also a more focused question related to Best source code control for a university environment (low overhead to manage repositories)


The solution we want should work for the entire university, allowing any registered user (p.ex. LDAP) to create and share repos without the intervention of an admin. Think >10K users, several repos per student/course (each semester), with teams created dynamically without a lab assistant or professor, as well as research/club/group usage, etc.

Community
  • 1
  • 1
Fuhrmanator
  • 11,459
  • 6
  • 62
  • 111
  • GitLab requires you to set up a gitolite and gitlab user only for initial setup. After that, admins can add new users through the Web interface and their can manage their own SSH keys. – Abe Voelker Apr 23 '12 at 00:33
  • 1
    I believe the "admins can add" part is exactly what Fuhrmanator does not want to have. Instead the users should be able to register independently. – Daniel Baulig Apr 23 '12 at 08:32

3 Answers3

4

If you've got an LDAP or ActiveDirectory (with LDAP open), you can allow users to log into Gitlab with their LDAP email address and password.

But an admin or project master will still need to add users to projects.

Then, to add users to projects automatically, use a System Hook. Unfortunately, the documentation for system hooks is light, and what documentation there is is not online; it's part of the Gitlab application you installed. But after you do install it, you can get to it via (http://yourgitlabhost/help/system_hooks).

You'll need to write a small web app to receive these hooks, then call the Gitlab API (http://yourgitlabhost/help/api) to add the newly logged in user to the appropriate projects.

Jimothy
  • 9,150
  • 5
  • 30
  • 33
  • This is a valid answer. Not sure why someone would down-vote without even commenting why. +1 – Ilia Choly Dec 12 '12 at 15:48
  • @iliacholy I downvoted it before it was edited - because it said admins must add users to projects (contradicts my request in the question, not useful). As for the current version, it says "you have to write it yourself," which I still think makes the answer not useful. – Fuhrmanator Dec 15 '12 at 02:19
  • Gitlab, even without LDAP and web hooks, meets the asker's requirements: it allows users to register, create projects, and share projects without an administrator. The creator of a project may add other users to that project. Only administrators, however, may add users to any project. But as I re-read the original question and comments, I see that this is not a requirement. Gitlab will work well in this scenario. – Jimothy Dec 15 '12 at 05:42
  • I removed my downvote an accepted. Our admins finally coded the system hook, and this is the best answer (even if it's not exactly the ideal wrt the question). – Fuhrmanator Sep 27 '15 at 15:52
1

Gitorious allows independent user registration and just recently released their first version with private repositories.

Daniel Baulig
  • 10,739
  • 6
  • 44
  • 43
  • Thanks! Adding gitorious tag to the question. – Fuhrmanator Apr 22 '12 at 22:26
  • Pricing for Gitorious is steep for a university environment. "€5000 per year for up to 50 users" – Fuhrmanator Oct 01 '12 at 13:51
  • Gitorious is free software. If hosted by yourself the cost is only what you need to operate and maintain your systems. If however you want someone else to host, maintain or install your Gitorious environment for you, you will have to pay him. I guess there should be special pricing available for schools and universities on request. – Daniel Baulig Oct 03 '12 at 08:18
  • Thanks! I admit the propaganda on their site makes it hard to find how to install it on your own, but [here's how](http://gitorious.org/gitorious/pages/Installation). – Fuhrmanator Oct 03 '12 at 17:02
1

If you don't want to ask about possibilities for you in Private Assembla, or build own "Assembla",

you can think about SCM-Manager

Final note (offtopic): please, do not spoil the students by dipping them into Git

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
  • 1
    Private Assembla seems very expensive for even 100 users ($1k/month). I'll pass the SCM-Manager plugins info +1 on to our admin. – Fuhrmanator Dec 15 '12 at 02:24