Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9360 closed defect (fixed)

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

Reported by: Steven R. Loomis <srl@…> Owned by: Christian Boos
Priority: normal Milestone: 0.12.1
Component: web frontend/tracd Version: 0.12b1
Severity: trivial Keywords: documentation
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (3)

comment:1 by Christian Boos, 14 years ago

Keywords: documentation added
Milestone: 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 by Christian Boos, 14 years ago

Resolution: fixed
Status: newclosed

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 by Remy Blank, 14 years ago

Owner: set to Christian Boos

Modify Ticket

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