Changes between Version 2 and Version 3 of TracStandalone


Ignore:
Timestamp:
Dec 12, 2010, 5:08:16 PM (13 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v2 v3  
    4242
    4343== Using Authentication ==
     44
     45Using tracd with Apache .htpasswd files:
     46
     47To create a .htpasswd file using htpasswd:
     48
     49{{{
     50sudo htpasswd -c /path/to/env/.htpasswd username
     51}}}
     52then for additional users:
     53{{{
     54sudo htpasswd /var/www/html/.htpasswd-users username2
     55}}}
     56then for starting the tracd:
     57{{{
     58tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname
     59}}}
     60
    4461
    4562Tracd provides support for both Basic and Digest authentication. The default is to use Digest; to use Basic authentication, replace `--auth` with `--basic-auth` in the examples below. (You must still specify a dialogic "realm", which can be an empty string by trailing the BASICAUTH with a comma.)
     
    123140}}}
    124141
    125 Note: If you would like to use --basic-auth you need to use htpasswd tool from apache server to generate .htpasswd file. The remaining part is similar but make sure to use empty realm (i.e. coma after path). When using on Windows make sure to use -m option for it (did not tested it on *nix, so not sure if that is the case there).
     142Note: If you would like to use --basic-auth you need to use htpasswd tool from apache server to generate .htpasswd file. The remaining part is similar but make sure to use empty realm (i.e. coma after path). When using on Windows make sure to use -m option for it (did not tested it on *nix, so not sure if that is the case there).  If you do not have Apache, [trac:source:/tags/trac-0.11b2/contrib/htpasswd.py htpasswd.py] may help.  (Note that it requires a `crypt` or `fcrypt` module; see the source comments for details.)
     143
     144It is possible to use md5sum utility to generate digest-password file using such method:
     145{{{
     146echo -e "${user}:trac:${password}\c" | md5sum - >>to-file
     147}}}
     148and manually delete " -" from the end and add "${user}:trac:" to the start of line from 'to-file'. You can see attachment:trac-digest-corrected.sh for detail.
    126149
    127150== Tips ==