Opened 19 years ago
Closed 19 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 )
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 , 19 years ago
| Description: | modified (diff) | 
|---|
comment:2 by , 19 years ago
comment:3 by , 19 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 , 19 years ago
| Keywords: | needinfo added | 
|---|---|
| Version: | 0.10 → 0.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 , 19 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 , 19 years ago
| Resolution: | → worksforme | 
|---|---|
| Status: | new → closed | 



  
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: