27 | | # You need this to allow users to authenticate |
| 28 | ''Note: If Apache complains about the !SetEnv line make sure that the mod_env module is available and enabled.'' |
| 29 | |
| 30 | ''Note: If you are using the [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature see [http://projects.edgewall.com/trac/wiki/ApacheSuexec ApacheSuexec] (on the main Trac site).'' |
| 31 | |
| 32 | |
| 33 | == Adding Authentication == |
| 34 | |
| 35 | The simplest way to enable authentication with Apache is to create a password file. Use the `htpasswd` program to create the password file: |
| 36 | {{{ |
| 37 | $ htpasswd -c /somewhere/trac.htpasswd admin |
| 38 | New password: <type password> |
| 39 | Re-type new password: <type password again> |
| 40 | Adding password for user admin |
| 41 | }}} |
| 42 | |
| 43 | After the first user, you dont need the "-c" option anymore: |
| 44 | {{{ |
| 45 | $ htpasswd /somewhere/trac.htpasswd john |
| 46 | New password: <type password> |
| 47 | Re-type new password: <type password again> |
| 48 | Adding password for user john |
| 49 | }}} |
| 50 | |
| 51 | ''See the man page for `htpasswd` for full documentation.'' |
| 52 | |
| 53 | After you've created the users, you can set their permissions using TracPermissions. |
| 54 | |
| 55 | Now, you'll need to enable authentication against the password file in the Apache configuration: |
| 56 | {{{ |