Changeset 10396

Show
Ignore:
Timestamp:
07/07/11 23:10:43 (10 months ago)
Author:
hasienda
Message:

AccountManagerPlugin: Add separate password files for each AbstractPasswordFileStore implementation, refs #4677.

Creates two new configuration options

  • htdigest_file
  • htpasswd_file

allow setup of HtDigestStore and HtPasswdStore with separate password
files for concurrent use.

Beware: If you used one of these authentication stores before, you'll need to
rename password_file option to the appropriate new option name to avoid
a painful DOS situation on login. Better login before upgrading and make sure
to check the account config admin page after upgrade and before logging out.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • accountmanagerplugin/trunk/acct_mgr/htfile.py

    r10332 r10396  
    184184    [account-manager] 
    185185    password_store = HtPasswdStore 
    186     password_file = /path/to/trac.htpasswd 
     186    htpasswd_file = /path/to/trac.htpasswd 
    187187    htpasswd_hash_type = crypt|md5|sha <- None or one of these options 
    188188    }}} 
     
    194194    implements(IPasswordStore) 
    195195 
     196    filename = EnvRelativePathOption('account-manager', 'htpasswd_file', '', 
     197        doc = N_("""Path relative to Trac environment or full host machine 
     198                path to password file""")) 
    196199    hash_type = Option('account-manager', 'htpasswd_hash_type', 'crypt', 
    197200        doc = N_("Default hash type of new/updated passwords")) 
     
    225228    [account-manager] 
    226229    password_store = HtDigestStore 
    227     password_file = /path/to/trac.htdigest 
     230    htdigest_file = /path/to/trac.htdigest 
    228231    htdigest_realm = TracDigestRealm 
    229232    }}} 
     
    232235    implements(IPasswordStore) 
    233236 
     237    filename = EnvRelativePathOption('account-manager', 'htdigest_file', '', 
     238        doc = N_("""Path relative to Trac environment or full host machine 
     239                path to password file""")) 
    234240    realm = Option('account-manager', 'htdigest_realm', '', 
    235241        doc = N_("Realm to select relevant htdigest file entries"))