Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#1353 closed defect (fixed)

Basic auth on trac root result in anon permissions only

Reported by: johan.appelgren@… Owned by: Christopher Lenz
Priority: high Milestone: 0.9
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Since I want my users to always login configured the basic authentication in the root trac location instead of having it for the tracroot/login page.

<Location /tracurl>
  SetHandler mod_python
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnv "/path/to/tracenv"
  AuthType Basic
  AuthName "Trac"
  AuthUserFile tracpasswd
  Require valid-user
</Location>

This results in the login dialog appearing when going to the trac site but after entering valid credentials I only get the anonymous permissions. To get authenticated permissions I have to go to the login url.

Attachments (0)

Change History (6)

comment:1 by Christopher Lenz, 20 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Priority: normalhigh
Status: newassigned

comment:2 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed in [1457].

comment:3 by xris@…, 20 years ago

Resolution: fixed
Status: closedreopened

moved over from #1373

I just updated to [1493], and am still experiencing this problem.

comment:4 by Christopher Lenz, 20 years ago

Hmm, it really should work. If you're using mod_python, have you restarted the server after updating?

comment:5 by xris@…, 20 years ago

restarted, reinstalled, etc. I link to a url like http://example.com/report/8 and it gives me what I assume are "anon" privs (which means no privs in this case).

comment:6 by xris@…, 20 years ago

Resolution: fixed
Status: reopenedclosed

My bad. I was building my rpm from the wrong source.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.