1

Topic: trac or redmine using iredmail ldap auth on ubuntu 8.04 howto?

Hi All,

First of all, many thanks for this great project! I've installed the Iredmail solution on an ubuntu server and it has been working very well. One of the major differences was how light this is on resources (I run this on very low powered cpu) compared to many other mail /groupware solutions. Very impressed so far!

Now I have the Iredmail solution installed, I was keen to exploit the Ldap backend/user base and integrate this with redmine or trac (and subservion), but I'm unable to find any pointers to the ldap config required to enable trac/redmine to authenticate using the iredmail users/groups ?

Has anyone done this before? Any pointers or a howto that could help me? I'm running iredmail 0.5 on ubuntu 8.04.3 LTS.

Many thanks,

Filgood

2

Re: trac or redmine using iredmail ldap auth on ubuntu 8.04 howto?

filgood wrote:

Has anyone done this before? Any pointers or a howto that could help me? I'm running iredmail 0.5 on ubuntu 8.04.3 LTS.

We integrated Trac and subversion before, use Apache + mod_authz_ldap.

It's better to post the troubles/error log you get during integration instead of ask how to do this.

3

Re: trac or redmine using iredmail ldap auth on ubuntu 8.04 howto?

Here is basic information we used to integrate trac & subversion:


- Suppose all projects are located under /svn, and we have a project 'newproject'.
- Install subversion and trac

# yum install subversion.x86_64 trac.noarch

- Configure apache, add two new alias directories: /trac, /svn.

    # http://www.iredmail.org/svn/project_name/
    <Location /svn>
        DAV svn
        SVNParentPath /svn/

        AuthType Basic
        AuthName "Authorization Realm"

        AuthBasicProvider ldap
        AuthzLDAPAuthoritative   Off

        AuthLDAPUrl   ldap://localhost:389/o=domains,dc=iredmail,dc=org?mail?sub?(&(accountStatus=active)(enabledService=svn))

        AuthLDAPBindDN "cn=vmail,dc=iredmail,dc=org"
        AuthLDAPBindPassword "vmail_password"

        Require valid-user
    </Location>

    <Location /trac>
        SetHandler mod_python
        SetEnv PYTHON_EGG_CACHE /tmp/egg-cache/
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /svn/trac/
        PythonOption TracUriRoot /trac/iredmail/

        AuthType Basic
        AuthName "Authorization Realm"

        AuthBasicProvider ldap
        AuthzLDAPAuthoritative   Off

        AuthLDAPUrl   ldap://localhost:389/o=domains,dc=iredmail,dc=org?mail?sub?(&(accountStatus=active)(enabledService=trac))

        AuthLDAPBindDN "cn=vmail,dc=iredmail,dc=org"
        AuthLDAPBindPassword "vmail_password"

        Require valid-user
    </Location>

Note: here we use two new ldap filter: 'enabledService=svn' and 'enabledService=trac' to restrict users who have privilege to use svn and trac service.

4

Re: trac or redmine using iredmail ldap auth on ubuntu 8.04 howto?

Many thanks. I got this working now.