| 9 | === !HtPasswdStore === |
| 10 | === !HtDigestStore === |
| 11 | === !SessionStore === |
| 12 | {{{ |
| 13 | [components] |
| 14 | acct_mgr.admin.* = enabled |
| 15 | acct_mgr.api.* = enabled |
| 16 | acct_mgr.db.sessionstore = enabled |
| 17 | acct_mgr.htfile.htdigeststore = disabled |
| 18 | acct_mgr.htfile.htpasswdstore = disabled |
| 19 | acct_mgr.http.httpauthstore = disabled |
| 20 | acct_mgr.notification.* = enabled |
| 21 | acct_mgr.pwhash.htdigesthashmethod = enabled |
| 22 | acct_mgr.pwhash.htpasswdhashmethod = disabled |
| 23 | acct_mgr.svnserve.* = enabled |
| 24 | acct_mgr.svnserve.svnservepasswordstore = disabled |
| 25 | acct_mgr.web_ui.* = enabled |
| 26 | trac.web.auth.loginmodule = disabled |
| 28 | [account-manager] |
| 29 | hash_method = HtDigestHashMethod |
| 30 | password_store = SessionStore |
| 31 | }}} |
| 32 | |
| 33 | Create the first user through browser-based registration enabled by following additional lines in `components` section of `trac.ini`: |
| 34 | {{{ |
| 35 | [components] |
| 36 | acct_mgr.web_ui.RegistrationModule = enabled |
| 37 | }}} |
| 38 | |
| 39 | Don't add another `components` section, just the configuration line with 'enabled' into an existing `components` section. After user creation you may choose to disable registration by uncommenting the [AccountManagerPlugin#RegistrationModule RegistrationModule] setting above or changing it to: |
| 40 | {{{ |
| 41 | [components] |
| 42 | ;need this for first user |
| 43 | acct_mgr.web_ui.RegistrationModule = disabled |
| 44 | }}} |
| 45 | Or just use the plugins admin page form Trac's web interface, after you've given admin priviledges to the first user you created. |
| 46 | |
| 47 | === Award an existing user account for Trac admin === |
| 48 | {{{ |
| 49 | trac-admin /path/to/env permission add <username> TRAC_ADMIN permission list <username> |
| 50 | }}} |
| 51 | |
| 52 | === Goodies === |
| 53 | There are some misc options you may want to set/unset depending on your requirements: |
| 54 | ||'''Option'''||'''Default Value'''||'''Recommendation'''|| |
| 55 | |||||| |