317 | | === Using Apache authentication with the Account Manager plugin's Login form === |
318 | | |
319 | | To begin with, see the basic instructions for using the Account Manager plugin's [http://trac-hacks.org/wiki/AccountManagerPlugin/Modules#LoginModule Login module] and its [http://trac-hacks.org/wiki/AccountManagerPlugin/AuthStores#HttpAuthStore HttpAuthStore authentication module]. |
320 | | |
321 | | '''Note:''' If is difficult to get !HttpAuthStore to work with WSGI when using any Account Manager version prior to acct_mgr-0.4. Upgrading is recommended. |
322 | | |
323 | | Here is an example (from the !HttpAuthStore link) using acct_mgr-0.4 for hosting a single project: |
324 | | {{{#!ini |
325 | | [components] |
326 | | ; be sure to enable the component |
327 | | acct_mgr.http.HttpAuthStore = enabled |
328 | | |
329 | | [account-manager] |
330 | | ; configure the plugin to use a page that is secured with http authentication |
331 | | authentication_url = /authFile |
332 | | password_store = HttpAuthStore |
333 | | }}} |
334 | | This will generally be matched with an Apache config like: |
335 | | {{{#!apache |
336 | | <Location /authFile> |
337 | | # HTTP authentication configuration |
338 | | Require valid-user |
339 | | </Location> |
340 | | }}} |
341 | | Note that '''authFile''' need not exist (unless you are using Account Manager older than 0.4). See the !HttpAuthStore link above for examples where multiple Trac projects are hosted on a server. |
342 | | |