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

I am currently setting up trac on Fedora 11 using the rpm provided by Fedora. I have everything up and running except authentication. Any time I try to Login I get the error "Authentication information not available"

Here is my /etc/httpd/conf.d/trac.conf

# Replace all occurrences of /srv/trac with your trac root below
# and uncomment the respective SetEnv and PythonOption directives.
<LocationMatch /cgi-bin/trac\.f?cgi>
    SetEnv TRAC_ENV /data/trac/msf
</LocationMatch>
<IfModule mod_python.c>
<Location /cgi-bin/trac.cgi>
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /data/trac/msf
</Location>
<Location /cgi-bin/trac.cgi/login>
   AuthType Basic
   AuthName "Trac"
   AuthUserFile /data/trac/msf/trac.htpasswd
   Require valid-user
</Location>
</IfModule>

From reading the trac documentation I thought this should work but am having no joy. Can anyone suggest what the issue is?

share|improve this question

3 Answers 3

Make sure that /data/trac/msf/trac.htpasswd file exists, is in proper format and can be readable by everyone(or at least by the user which is runing Apache Server).

share|improve this answer
    
Can confirm that this is the case. –  Mark Jul 29 '09 at 12:44
up vote 0 down vote accepted

I am not sure what my original problem was but was able to get up and running by following the instructions on using trac with mod_python directly in this post on the Fedora Forums.

share|improve this answer

i think you missing something, here is my config from working server

    <Location />
	SetHandler mod_python
	PythonInterpreter main_interpreter
	PythonHandler trac.web.modpython_frontend
	PythonOption TracEnv /home/XXX/trac/
	PythonOption TracUriRoot /
</Location>
<Location /login>
	AuthType Basic
	AuthName "TRAC"
	AuthUserFile /home/XXX/trac/conf/.htpasswd
	Require valid-user
</Location>
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.