Using Django's auth for Trac too

77 views
Skip to first unread message

Torsten Bronger

unread,
Nov 9, 2010, 12:51:27 AM11/9/10
to django...@googlegroups.com
Hall�chen!

I know that my question has a strong Apache component, but can
anybody here give me hints for how to use Django's auth system for a
Trac installation running on the same Apache? I.e., iff someone is
logged in in Django, it is also authenticated in Trac. I already
have my own Django auth module that just needed to be fleshed out.
Maybe Django keeps a file up-to-date with all logged-in users, which
Apache uses for Trac authentication?

Thank you!

Tsch�,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: torsten...@jabber.rwth-aachen.de
or http://bronger-jmp.appspot.com

Knut Ivar Nesheim

unread,
Nov 9, 2010, 3:36:33 AM11/9/10
to django...@googlegroups.com
Hi,

See the following link to the docs. This should be exactly what you want.

http://docs.djangoproject.com/en/dev/howto/apache-auth/

Regards
Knut

On Tue, Nov 9, 2010 at 6:51 AM, Torsten Bronger
<bro...@physik.rwth-aachen.de> wrote:
> Hallöchen!


>
> I know that my question has a strong Apache component, but can
> anybody here give me hints for how to use Django's auth system for a
> Trac installation running on the same Apache?  I.e., iff someone is
> logged in in Django, it is also authenticated in Trac.  I already
> have my own Django auth module that just needed to be fleshed out.
> Maybe Django keeps a file up-to-date with all logged-in users, which
> Apache uses for Trac authentication?
>
> Thank you!
>

> Tschö,


> Torsten.
>
> --
> Torsten Bronger, aquisgrana, europa vetus
>                   Jabber ID: torsten...@jabber.rwth-aachen.de
>                                  or http://bronger-jmp.appspot.com
>

> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

Torsten Bronger

unread,
Nov 9, 2010, 3:54:30 AM11/9/10
to django...@googlegroups.com
Hall�chen!

Knut Ivar Nesheim writes:

> See the following link to the docs. This should be exactly what
> you want.
>
> http://docs.djangoproject.com/en/dev/howto/apache-auth/

We use WSGI. But if all else fails, switching to mod_python may be
an alternative. Thank you!

Tsch�,

Graham Dumpleton

unread,
Nov 9, 2010, 4:36:17 AM11/9/10
to Django users


On Nov 9, 7:54 pm, Torsten Bronger <bron...@physik.rwth-aachen.de>
wrote:
> Hall chen!
>
> Knut Ivar Nesheim writes:
> > See the following link to the docs. This should be exactly what
> > you want.
>
> >http://docs.djangoproject.com/en/dev/howto/apache-auth/
>
> We use WSGI.  But if all else fails, switching to mod_python may be
> an alternative.  Thank you!

http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms

Dirk Eschler

unread,
Nov 9, 2010, 5:25:12 AM11/9/10
to django...@googlegroups.com
Am Dienstag 09 November 2010, 09:54:30 schrieb Torsten Bronger:
> We use WSGI. But if all else fails, switching to mod_python may be
> an alternative. Thank you!

Hello,

we use mod_wsgi for django and mod_python for trac. Both coexist without any
problems for quite some time.

The authentication against Django's user database works pretty well, the only
problem i've faced is that you can't log out of trac through the logout link,
but i don't consider that a big one.

Best Regards,
Dirk Eschler

--
Dirk Eschler <esc...@gmail.com>

Reply all
Reply to author
Forward
0 new messages