Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'd like to setup Trac as a standalone daemon, but as an internal service. I.e. I want people to do a http authentication before even entering wiki.

Both --auth and --basic-auth give me user authentication, which is ok too, but I cannot find any way to do http-auth. Is there any way?

Edit: I know I can enable authentication if I run trac via a web server, but I don't want to do that. I'd really like to stick to the standalone tracd if possible.

share|improve this question
    
What environment are you hosting it in? Web Server? OS? CGI Method (by that I mean mod_python, fast-cgi)? –  Richard Slater Aug 15 '09 at 11:28
    
No web environment, linux server. I'm running it standalone. –  viraptor Aug 15 '09 at 11:32

4 Answers 4

up vote 2 down vote accepted

I'm not sure that tracd supports exactly what you are after, but if you revoke all permissions from "anonymous", and grant those permissions to "authenticated" instead, that may be close enough for your needs.

share|improve this answer

Could you possibly run it as a standalone listening on a local port and use another web server as a reverse-proxy with authentication? It might be possible with lighttpd or squid or even apache.

share|improve this answer

I use the AuthRequiredPlugin for this, which redirects all requests to the login page until the user has authenticated. The page says that this is for trac 0.10, but I've used it in 0.11 without problems.

share|improve this answer

The big caveat with removing anonymous WIKI_VIEW is that unauthenticated users cannot see a "landing page" (if you want instructions on how to obtain access, etc), they only see a permission error.

Set up "Fine Grained Permissions", and you can specify parts of the site to be accessible to anonymous users all the way down to restricting all access other than the WikiStart page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.