#5814 closed defect (worksforme)
Another authorization requested for already logged in user by certain operations
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Using 0.11dev r5883 and mod_ldap authentication via apache we get the following strange behaviour for an authenticated user:
- log in
- go to "New Ticket" and enter a ticket, or edit an existing ticket
- click on "Submit"
- the authenticate window pops up again, even though the user appears as "logged in"
- after this second authentication, it is not necessary to authenticate again in this situation
alternatively we also see this behaviour when viewing your "Preferences", changing e.g. your email and clicking on "save" there …and possibly in other situations.
This does *not* happen when the user is in the TRAC_ADMIN group
Of course this is a quite annoying behaviour, any suggestions welcome
Attachments (1)
Change History (8)
comment:1 by , 17 years ago
by , 17 years ago
comment:2 by , 17 years ago
sorry problem exists also as TRAC_ADMIN. we'll attach our trac.conf apache2 config-file
comment:3 by , 17 years ago
It almost certainly has to do with your use of LocationMatch. Have you tried just adding your Auth statements to the /projects
location?
comment:4 by , 17 years ago
Description: | modified (diff) |
---|---|
Milestone: | 0.11 |
This really looks like a configuration issue rather than an issue w/ Trac: the authentication window is popped up by Apache, not by Trac.
Please copy the relevant section of your trac.ini file, especially the base_url
parameter.
comment:5 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
this is no trac-bug, but stems from authentication behaviour between http server and client.
if there is a mismatch between the requested url and the base_url in your trac.ini (e.g. base_url contains the fqdn and your request is just to http://hostname/) you will need two authentication as your browser stores two different authentication-cookies.
to prevent this you can use an apache rewrite rule such as (in <VirtualHost>)
RewriteEngine On RewriteCond %{SERVER_NAME} hostname$ RewriteRule (.*)$ http://fqdn$1 [R]
comment:6 by , 17 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
What location path are you securing with mod_ldap?