| 51 | |
| 52 | == Authenticating Trac users against MS Windows domain controller == |
| 53 | |
| 54 | Running Trac in Apache, you can let your users login using their existing Windows username/password using `mod_sspi`. (If you use Subversion as a repository and access it through Apache, you can also do the same with Subversion). Download this module [http://sourceforge.net/projects/mod-auth-sspi here], place it in the Apache modules directory, and add the following line to your `httpd.conf`, with all the `LoadModule` instructions: |
| 55 | {{{ |
| 56 | LoadModule sspi_auth_module modules/mod_auth_sspi.so |
| 57 | }}} |
| 58 | |
| 59 | Then add the following to the end of `http.conf`, modified according to your settings: |
| 60 | |
| 61 | {{{ |
| 62 | <LocationMatch /MyTracRootURL/[^/]+/login> |
| 63 | AuthType SSPI |
| 64 | AuthName "Trac project management website @ MyLocalMachine" |
| 65 | SSPIAuth On |
| 66 | SSPIAuthoritative On |
| 67 | SSPIDomain MyLocalDomain |
| 68 | SSPIOfferBasic On |
| 69 | Require valid-user |
| 70 | </LocationMatch> |
| 71 | }}} |
| 72 | |
| 73 | Then, if you change permissions in Trac using `trac-admin.exe`, remember to declare the user `bob` as `MyLocalDomain\bob`. (The same remarks applies for Subversion) |