Edgewall Software

Ticket #686 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

0.8pre and tracd - can't log in.

Reported by: davep@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.7.1
Severity: normal Keywords:
Cc:

Description

I'm running 0.8pre and using tracd as the webserver. We have four projects running on the site, tracd is bound to 127.0.0.1 and we use ssh tunnels to connect to the server remotely (so authentication is no biggie).

We don't seem to have the ability to create and login as users. Clicking "login" from the front page gives me:

Oops...

Trac detected an internal error:

'NoneType?' object has no attribute 'do_auth' Traceback (most recent call last):

File "/usr/bin/tracd", line 234, in do_trac_req

self.do_real_trac_req()

File "/usr/bin/tracd", line 244, in do_real_trac_req

self.remote_user = self.env.auth.do_auth(self)

AttributeError?: 'NoneType?' object has no attribute 'do_auth'

Attachments

Change History

Changed 4 years ago by BM`

I get that too. I don't think authentication is done yet in tracd, but that is just a guess from some obscure references I found in the changesets.

Changed 4 years ago by anonymous

It is not implemented in trac and from what I know the idea is that you use something else for authentification.

For example a .htpasswd file. And let Apache do the authenthification.

But see TracInstall. Search for 'htpasswd' in the page.

Changed 4 years ago by daniel

  • status changed from new to closed
  • resolution set to invalid

This is actually not a bug... you have to use the '-a' command argument.

However, the error message needs to be improved (read: even exist :-)

See also: #264.

Changed 4 years ago by jonas

tracd currently only has htdigest support (not htpasswd). Trying to authenticate without proper configuration will result in the following non-userfriendly error message.

Authentication is activated like this:

tracd --auth myproj,/foo/myproj.htdigest,www.yourrealm.com /bar/myproj

Ticket #264 will make sure tracd gets better documentation in the future.

Add/Change #686 (0.8pre and tracd - can't log in.)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.