close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of TracStandalone


Ignore:
Timestamp:
Jul 14, 2008, 10:28:18 AM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v1 v2  
    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 ==