#3821: problem with login and mod_python
-------------------------------------------------------+--------------------
Reporter: Benoit Chesneau <benoitc@archlinuxfr.org> | Owner: cmlenz
Type: defect | Status: new
Priority: high | Milestone:
Component: mod_python frontend | Version: none
Severity: critical | Keywords:
-------------------------------------------------------+--------------------
I use apache 2.2.3 and modpython 3.6.10, trac 0.10. The login window don't
popup and I have this error when I'm trying to login :
{{{
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 356, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224, in
dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/trac/web/auth.py", line 95, in
process_request
self._do_login(req)
File "/usr/lib/python2.4/site-packages/trac/web/auth.py", line 116, in
_do_login
assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available.
}}}
My vhost conf is :
{{{
<VirtualHost *>
ServerName project.archlinuxfr.org
DocumentRoot /home/trac/archlinuxfr
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/trac/archlinuxfr
PythonOption TracUriRoot /
PythonPath "sys.path + ['/home/trac/archlinuxfr']"
PythonDebug on
</Location>
<Location /login>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
AuthType Basic
AuthName "Arch Linux FR - Project"
AuthUserFile /home/trac/archlinuxfr/.htpasswd
Require valid-user
</Location>
Alias /chrome/common /usr/share/trac/htdocs
Alias /trac-static /home/trac/archlinuxfr/htdocs
Alias /trac/ "/usr/share/trac/htdocs/"
<LocationMatch /trac-static/*>
SetHandler none
</LocationMatch>
<LocationMatch /chrome/common>
SetHandler none
</LocationMatch>
</VirtualHost>
}}}
any idee ? Akready 6 hours to mess with it whithout any success :\
--
Ticket URL: <http://trac.edgewall.org/ticket/3821>
The Trac Project <http://trac.edgewall.org/>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
-------------------------------------------------------+--------------------
Reporter: Benoit Chesneau <benoitc@archlinuxfr.org> | Owner: cmlenz
Type: defect | Status: new
Priority: high | Milestone:
Component: mod_python frontend | Version: none
Severity: critical | Keywords:
-------------------------------------------------------+--------------------
I use apache 2.2.3 and modpython 3.6.10, trac 0.10. The login window don't
popup and I have this error when I'm trying to login :
{{{
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 356, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224, in
dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/trac/web/auth.py", line 95, in
process_request
self._do_login(req)
File "/usr/lib/python2.4/site-packages/trac/web/auth.py", line 116, in
_do_login
assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available.
}}}
My vhost conf is :
{{{
<VirtualHost *>
ServerName project.archlinuxfr.org
DocumentRoot /home/trac/archlinuxfr
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/trac/archlinuxfr
PythonOption TracUriRoot /
PythonPath "sys.path + ['/home/trac/archlinuxfr']"
PythonDebug on
</Location>
<Location /login>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
AuthType Basic
AuthName "Arch Linux FR - Project"
AuthUserFile /home/trac/archlinuxfr/.htpasswd
Require valid-user
</Location>
Alias /chrome/common /usr/share/trac/htdocs
Alias /trac-static /home/trac/archlinuxfr/htdocs
Alias /trac/ "/usr/share/trac/htdocs/"
<LocationMatch /trac-static/*>
SetHandler none
</LocationMatch>
<LocationMatch /chrome/common>
SetHandler none
</LocationMatch>
</VirtualHost>
}}}
any idee ? Akready 6 hours to mess with it whithout any success :\
--
Ticket URL: <http://trac.edgewall.org/ticket/3821>
The Trac Project <http://trac.edgewall.org/>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---