Author Topic: trac svn module?  (Read 2809 times)

filgood

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
trac svn module?
« on: August 03, 2009, 10:53:59 pm »
Hi,

Is there a trac module available for ebox http://trac.edgewall.org/ ?
If not, what is needed to create it?
It would be great if trac could make use of ebox ldap users and control access to an svn repository in this manner.

Let me know your thoughts...

Thanks

cl0s

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: trac svn module?
« Reply #1 on: December 01, 2009, 08:50:22 pm »
I have Trac setup on a separate server than my eBox server but it does authenticate against my eBox's LDAP. Trac was easy to setup, I basically just followed these instructions https://help.ubuntu.com/community/UbuntuTracHowto (after looking at it though it looks a little more confusing and messier than I remember it, might write up a full how-to later.)

After you have trac setup though here is your apache configuration for authenticating against your LDAP.

Code: [Select]
<Location /trac/>
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /home/trac/project/
        PythonOption TracUriRoot /trac/

        AuthType Basic
        AuthBasicProvider ldap
        AuthName "Ebox Login"
        AuthLDAPUrl "ldap://YOUREBOXSERVER:389/ou=Users,dc=ebox?uid?sub?(objectClass=*)"
        Require valid-user
</Location>


All permissions, etc will still need to be handled through trac which should be easy through tracs admin interface.

c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: trac svn module?
« Reply #2 on: March 26, 2010, 01:27:55 pm »
Hi Mate,

Thanks for sharing this. Waiting for you howto though.
Having a Trac module with ebox would be awesome!

James


I have Trac setup on a separate server than my eBox server but it does authenticate against my eBox's LDAP. Trac was easy to setup, I basically just followed these instructions https://help.ubuntu.com/community/UbuntuTracHowto (after looking at it though it looks a little more confusing and messier than I remember it, might write up a full how-to later.)

After you have trac setup though here is your apache configuration for authenticating against your LDAP.

Code: [Select]
<Location /trac/>
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /home/trac/project/
        PythonOption TracUriRoot /trac/

        AuthType Basic
        AuthBasicProvider ldap
        AuthName "Ebox Login"
        AuthLDAPUrl "ldap://YOUREBOXSERVER:389/ou=Users,dc=ebox?uid?sub?(objectClass=*)"
        Require valid-user
</Location>


All permissions, etc will still need to be handled through trac which should be easy through tracs admin interface.