Modify ↓
#9360 closed defect (fixed)
tracd --help wrong for --basic-auth ?
Reported by: | 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 , 15 years ago
Keywords: | documentation added |
---|---|
Milestone: | → 0.12.1 |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → 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 by , 14 years ago
Owner: | set to |
---|
Note:
See TracTickets
for help on using tickets.
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?