Changes between Initial Version and Version 1 of AccountManagerPlugin/AuthStores


Ignore:
Timestamp:
Oct 9, 2010, 9:16:45 PM (14 years ago)
Author:
Steffen Hoffmann
Comment:

initial design and content, migrating information from main page here for better readability

Legend:

Unmodified
Added
Removed
Modified
  • AccountManagerPlugin/AuthStores

    v1 v1  
     1[[PageOutline(2-5,Contents,pullout)]]
     2
     3= Authentication modules for AccountManagerPlugin =
     4 see !AccountManagerPlugin's [wiki:AccountManagerPlugin main page]
     5
     6== !HtDigestStore ==
     7 '''Package''':: acct_mgr.htfile
     8
     9Used to store passwords in the htdigest file format.
     10
     11{{{
     12#!div class="important"
     13'''Warning:''' This password method may not work with [t:TracModPython mod_python] due to a  bug using Python’s md5 module under mod_python (''"it has been reported that mod_python has trouble returning good MD5 strings. It has been speculated that this is because many apache mods are using the same md5 source (php and so forth), but this is not confirmed"'').  If you experience problems try [t:TracFastCgi FastCGI], [t:wiki:TracModWSGI mod_wsgi], or [t:TracStandalone tracd].
     14}}}
     15
     16To use this component to manage your password file you need to enable it as described above and add some additional configuration to [t:wiki:TracIni trac.ini]:
     17
     18{{{
     19[components]
     20; be sure to enable the component
     21acct_mgr.htfile.HtDigestStore = enabled
     22
     23[account-manager]
     24; configure the plugin to store passwords in the htdigest format:
     25password_store = HtDigestStore
     26; with Trac < 0.10 use this instead:
     27password_format = htdigest
     28
     29; the file where user accounts are stored
     30; the webserver will need write permissions to this file
     31; and its parent folder
     32password_file = /var/trac/trac.htdigest
     33
     34; the name of the authentication “realm”
     35; it can be any text to identify your site or project
     36htdigest_realm = TracRealm
     37}}}
     38
     39== !HtPasswdStore ==
     40 '''Package''':: acct_mgr.htfile
     41
     42Used to store passwords in the htpasswd file format.
     43
     44{{{
     45#!div class="important"
     46'''Warning:''' This password method may not work with [t:TracModPython mod_python] due to a bug using Python’s md5 module under mod_python.  If you experience problems try [t:TracFastCgi FastCGI], [t:wiki:TracModWSGI mod_wsgi], or [t:TracStandalone tracd].
     47}}}
     48
     49To use this component to manage your password file you need to enable it as described above and add some additional configuration to [trac:TracIni trac.ini]:
     50
     51{{{
     52[components]
     53; be sure to enable the component
     54acct_mgr.htfile.HtPasswdStore = enabled
     55
     56[account-manager]
     57; configure the plugin to store passwords in the htpasswd format:
     58password_store = HtPasswdStore
     59; with Trac < 0.10 use this instead:
     60password_format = htpasswd
     61; optional hash type selection
     62htpasswd_hash_type =
     63
     64; the file where user accounts are stored
     65; the webserver will need write permissions to this file
     66; and its parent folder
     67password_file = /var/trac/trac.htpasswd
     68}}}
     69
     70Recent changes:
     71 * 'htpasswd_hash_type' for hash type selection available since [9274]
     72
     73== !HttpAuthStore ==
     74 '''Package''':: acct_mgr.http
     75
     76'''Note:''' This component requires Trac 0.10 or later
     77
     78Used to delegate authentication to the web server.  This allows access to be restricted based on LDAP, a password file, etc, or some combination of them.
     79
     80Note: This password store does not support listing/adding/removing users or changing passwords.
     81
     82{{{
     83[components]
     84; be sure to enable the component
     85acct_mgr.http.HttpAuthStore = enabled
     86
     87[account-manager]
     88; configure the plugin to use a page that is secured with http authentication
     89authentication_url = http://hostname/path
     90password_store = HttpAuthStore
     91}}}
     92
     93This will generally be matched with an Apache config like:
     94{{{
     95<Directory /var/www/html/path>
     96   …HTTP authentication configuration…
     97   Require valid-user
     98</Directory>
     99}}}
     100
     101== !SessionStore ==
     102 '''Package''':: acct_mgr.db
     103
     104Stores password information in the trac database. This may give better behaviour if you have large numbers of users and are finding errors due to write contention on the password file. You must enable one or other of the hash method components. !HtDigestHashMethod is the default.
     105
     106{{{
     107[components]
     108; be sure to enable the component
     109acct_mgr.db.SessionStore = enabled
     110; choose one of the hash methods
     111acct_mgr.pwhash.htdigesthashmethod = enabled
     112acct_mgr.pwhash.htpasswdhashmethod = enabled
     113trac.web.auth.loginmodule = disabled #this is important, otherwise login does not work. ref: http://www.gossamer-threads.com/lists/trac/users/41969
     114
     115[account-manager]
     116password_store = SessionStore
     117; choose one of the hash methods
     118hash_method = HtDigestHashMethod
     119hash_method = HtPasswdHashMethod
     120
     121}}}
     122
     123For more information see:
     124  http://www.mailinglistarchive.com/trac-users@googlegroups.com/msg03696.html
     125
     126For sample configuration settings see  [wiki:SessionStoreSampleSettings sample-settings]
     127== !SvnServePasswordStore ==
     128 '''Package''':: acct_mgr.svnserve
     129
     130Allows Trac to use SVN users (may be in addition to Trac users). SVN server configuration option should be "svnserve". For more information, read chapter 6 of [http://svnbook.red-bean.com/ SVN book].
     131
     132{{{
     133[components]
     134; be sure to enable the component
     135acct_mgr.svnserve.* = enabled
     136acct_mgr.svnserve.svnservepasswordstore = enabled
     137; choose one of the hash methods
     138acct_mgr.pwhash.htdigesthashmethod = enabled
     139acct_mgr.pwhash.htpasswdhashmethod = enabled
     140
     141[account-manager]
     142password_store = SvnServePasswordStore
     143password_file = /path/to/svn/repos/conf/passwd
     144; choose one of the hash methods
     145hash_method = HtDigestHashMethod
     146hash_method = HtPasswdHashMethod
     147}}}
     148
     149NB : `password_file` points to a file which defines users/passwords this way : `user = password`
     150
     151== Not yet available ==
     152=== LDAP ===
     153 Check [http://trac-hacks.org/ticket/1147 LDAPAuthStore] and LdapAuthStorePlugin regarding how to link LdapPlugin to AccountManagerPlugin.
     154
     155 #1600 is also related, we even prepare for adding it (see #1602).