Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#3964 closed defect (worksforme)

Problem Authentication not success

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.3
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

Hello,

Environment : Ubuntu 6.06 , Apache2 , Trac 0.9.3 and Python 2.4

I install above enviroment , It running fine , on Login URL link , It come prompt for Username and password , I submit right user and password but nothing happening. authentication not success.

I have generated password file using \

htpasswd -c /var/trac/.htpasswd pshah 

My Trac Config file as follow:

<VirtualHost *>
	ServerAdmin webmaster@localhost
	ServerName localhost
	DocumentRoot /var/trac/pizza_home
	<Directory /usr/share/trac/cgi-bin/>
		Options FollowSymLinks Indexes MultiViews ExecCGI
		AllowOverride All
                Order allow,deny
                allow from all
	</Directory>
        Alias /trac "/usr/share/trac/htdocs"
        # Insert Project URL Copy Location both Virtual Host For Each Project.
        <Location /pizza_home>
                SetHandler mod_python
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnvParentDir /var/trac/pizza_home
                PythonOption TracUriRoot /pizza_home
#		SetEnv TRAC_ENV "/var/trac/pizza_home"
        </Location>

        <LocationMatch "/pizza_home/[^/]+/login">
             AuthType Basic
	     AuthName "Trac"
             AuthUserFile /var/trac/.htpasswd
             Require Valid-user
        </LocationMatch>
	ErrorLog /var/log/apache2/error.trac.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/access.trac.log combined

</VirtualHost>

Attachments (0)

Change History (6)

comment:1 by Christopher Lenz, 18 years ago

Description: modified (diff)

comment:2 by anonymous, 17 years ago

Seems like I have the same problem, my configuration is very similar and the system is Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_python/3.2.10 Python/2.4.4. The error.log has "access to /tracker/login failed, reason: require directives present and no Authoritative handler."

But I get the same error just trying to access a directory using the same authentication method. This doesn't seem to be Trac's problem.

So whoever reported this bug:

  • Do you have the same error message in the apache's error.log as I have?
  • Does authentication work on other directories?

comment:3 by previous poster, 17 years ago

Just for the record, doing "a2enmod authz_user" solved my problem… Seems the debian upgrade to 2.2.3 doesn't enable all the necessary mods, so authentication breaks.

comment:4 by Matthew Good, 17 years ago

Keywords: needinfo added
Version: 0.100.9.3

Can the original poster verify that they had the same problem with a module not enabled?

If not please check your Apache and Trac logs for any messages when you log in. Please post any log information available.

If you've resolved this problem please close this ticket as worksforme.

comment:5 by julianhernandez@…, 17 years ago

Hi, I got exactly the same problem with Debian unstable and I can confirm that doing a "a2enmod authz_use" as suggested on a previous comment solved the problem.

— Julián

comment:6 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

Seems this is a worksforme, as described in comment:3 and confirmed in comment:5.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.