Edgewall Software

Changes between Initial Version and Version 1 of TracAuthenticationIntroduction


Ignore:
Timestamp:
Jan 14, 2005, 12:36:00 PM (19 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracAuthenticationIntroduction

    v1 v1  
     1= Introduction to Authentication for Trac =
     2
     3||This is a work in progress document - and is written by someone who has been working this stuff out, rather than an expert.  Please feel free to add clarifications, corrections and additions||
     4
     5The basic idea is that Trac itself does not do authentication (other than for [wiki:TracStandalone tracd] which I don't intend to cover here).
     6Authentication is done by the http daemon environment, and the authentication information passed to trac when it is invoked by the httpd.
     7
     8There are 2 basic approaches to Trac authentication:-
     9 1. Restrict access to the whole Trac installation, so that none of the trac pages are visible without authentication.
     10 2. Restrict access such that the Trac installation is visible to someone without authentication, but you can login with Trac.
     11
     12The following examples are based on an Apache httpd server - further information on authentication on Apache can be found at http://httpd.apache.org/docs-2.0/howto/auth.html
     13
     14They use a password file at {{{/var/www/db/passwd}}} - you will need to manipulate this with the {{{htpasswd}}} program or you could look at http://stein.cshl.org/~lstein/user_manage/
     15As an alternative you could drop in digest authentication - the Apache documentation describes this.
     16
     17== Require Authentication To Access The Trac Installation ==
     18
     19This is the simplest method in both concept and implementation.  It also allows you to know that your data is as secure as your web server authentication scheme and that there is a degree of trust in the user information entered on tickets etc.
     20
     21For a trac installation under {{{/var/www/trac}}}, visible as URL {{{http://www.example.com/trac/}}} you can use an authenticaton stanza for Apache similar to:-
     22{{{
     23<Location /trac>
     24  AuthType Basic
     25  AuthName "trac"
     26  AuthUserFile /var/www/db/passwd
     27  Require valid-user
     28  ... extra directives to invoke trac
     29  ... - ie ScriptAlias or mod_python stuff
     30</Location>
     31}}}
     32
     33== Optional Authentication For The Trac Installation ==
     34
     35(will write this chunk shortly...)