RE: User auth against an IMAP server - is it wanted? » git_imap.conf
| 1 |
SetEnv GIT_PROJECT_ROOT /home/git/ |
|---|---|
| 2 |
SetEnv GIT_HTTP_EXPORT_ALL |
| 3 |
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ |
| 4 |
|
| 5 |
<Location /git> |
| 6 |
#Turn on IMAP Authentication
|
| 7 |
Auth_IMAP_Enabled on |
| 8 |
AuthName "Use IMAP username to login" |
| 9 |
AuthType Basic |
| 10 |
|
| 11 |
# Turn off Basic auth. We'll make IMAP as authoritative.
|
| 12 |
AuthBasicAuthoritative Off |
| 13 |
|
| 14 |
#If you feel like it, restrict the users or allow all valid users:
|
| 15 |
# Require user foouser
|
| 16 |
Require valid-user |
| 17 |
|
| 18 |
#Make IMAP Authentication authoritative for this .htaccess file:
|
| 19 |
Auth_IMAP_Authoritative on |
| 20 |
Auth_IMAP_Server imap.exmail.qq.com |
| 21 |
Auth_IMAP_Port 143 |
| 22 |
Auth_IMAP_Log on |
| 23 |
# If domain was provided, login with username@domain
|
| 24 |
Auth_IMAP_Domain dingding.me |
| 25 |
</Location>
|