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.
- Timestamp:
-
Jul 14, 2008, 10:28:18 AM (16 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
42 | 42 | |
43 | 43 | == Using Authentication == |
| 44 | |
| 45 | Using tracd with Apache .htpasswd files: |
| 46 | |
| 47 | To create a .htpasswd file using htpasswd: |
| 48 | |
| 49 | {{{ |
| 50 | sudo htpasswd -c /path/to/env/.htpasswd username |
| 51 | }}} |
| 52 | then for additional users: |
| 53 | {{{ |
| 54 | sudo htpasswd /var/www/html/.htpasswd-users username2 |
| 55 | }}} |
| 56 | then for starting the tracd: |
| 57 | {{{ |
| 58 | tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname |
| 59 | }}} |
| 60 | |
44 | 61 | |
45 | 62 | Tracd 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.) |
… |
… |
|
123 | 140 | }}} |
124 | 141 | |
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). |
| 142 | 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). 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 | |
| 144 | It is possible to use md5sum utility to generate digest-password file using such method: |
| 145 | {{{ |
| 146 | echo -e "${user}:trac:${password}\c" | md5sum - >>to-file |
| 147 | }}} |
| 148 | and 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. |
126 | 149 | |
127 | 150 | == Tips == |