Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5814 closed defect (worksforme)

Another authorization requested for already logged in user by certain operations

Reported by: flad@… 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 Emmanuel Blot)

Using 0.11dev r5883 and mod_ldap authentication via apache we get the following strange behaviour for an authenticated user:

  1. log in
  2. go to "New Ticket" and enter a ticket, or edit an existing ticket
  3. click on "Submit"
  4. the authenticate window pops up again, even though the user appears as "logged in"
  5. 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)

trac.conf (946 bytes ) - added by anonymous 17 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by anonymous, 17 years ago

What location path are you securing with mod_ldap?

by anonymous, 17 years ago

Attachment: trac.conf added

comment:2 by anonymous, 17 years ago

sorry problem exists also as TRAC_ADMIN. we'll attach our trac.conf apache2 config-file

comment:3 by anonymous, 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 Emmanuel Blot, 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 flad@…, 17 years ago

Resolution: fixed
Status: newclosed

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 Emmanuel Blot, 17 years ago

Resolution: fixed
Status: closedreopened

comment:7 by Emmanuel Blot, 17 years ago

Resolution: worksforme
Status: reopenedclosed

(invalid status)

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.