Edgewall Software
Modify

Ticket #9360 (closed defect: fixed)

Opened 21 months ago

Last modified 17 months ago

tracd --help wrong for --basic-auth ?

Reported by: Steven R. Loomis <srl@…> Owned by: cboos
Priority: normal Milestone: 0.12.1
Component: web frontend/tracd Version: 0.12b1
Severity: trivial Keywords: documentation
Cc:
Release Notes:
API Changes:

Description

tracd --help says

  --basic-auth=BASICAUTH    [projectdir],[htpasswd_file],[realm]

But http://trac.edgewall.org/wiki/TracStandalone#UsingAuthentication says

tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname

And it is the latter which works.

So, I think the --help should say something like:

  --basic-auth=BASICAUTH    [projectNAME],[htpasswd_file],[/fullpath/projectdir]

or maybe projectNAME here should be 'realm'.

Attachments

Change History

comment:1 Changed 21 months ago by cboos

  • Keywords documentation added
  • Milestone set to 0.12.1

Looking at the code (source:/trunk/trac/web/standalone.py and source:/trunk/trac/web/auth.py), the [projectdir],[htpasswd_file],[realm] hint seems to be correct.

That doesn't mean that a realm looking like /fullpath/environmentname wouldn't work, as the realm is not used internally when using Basic authentication (as opposed to Digest authentication).

The doc could eventually be clearer about the realm, saying it can be anything for Basic auth, and should match the realm used for the htdigest file for Digest auth.

Or is there another problem?

comment:2 Changed 17 months ago by cboos

  • Resolution set to fixed
  • Status changed from new to closed

Well, I verified this, and the documentation in the source code is correct, the quoted part of the TracStandalone page wrong.

In fact, the realm can take any value, even /fullpath/environmentname one wants to have this.

Fixed in TracStandalone@86.

comment:3 Changed 17 months ago by rblank

  • Owner set to cboos
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.