---
title: "mysql +svn + mantis 项目验证方式"
author: "bayaci"
date: "2012-02-09T16:21:00Z"
tags: []
slug: "mysql-svn-mantis"
draft: false
lastmod: "2012-02-21T23:26:24Z"
id: 1416053
url: "https://peter9.iteye.com/blog/1416053"
---

&lt;Location /repos/test&gt;  
#DAV svn  
#SVNPath /swp/svn-repository/test  
AuthType Basic  
AuthName "test SVN Repository"  
\# Require SSL connection for password protection.  
\# SSLRequireSSL  
&lt;ifModule mod\_auth\_mysql.c&gt;  
\# Limit write permission to list of valid users.  
&lt;Limit GET PROPFIND OPTIONS REPORT&gt;  
Require valid-user  
&lt;/Limit&gt;  
&lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;  
Require group 40 55 70 90  
&lt;/LimitExcept&gt;  
AuthBasicAuthoritative Off  
AuthMySQLEnable On  
AuthMySQLHost localhost  
AuthMySQLUser root  
AuthMySQLPassword root  
AuthMySQLDB mantisup  
AuthMySQLUserTable "mantis\_user\_table u, mantis\_project\_user\_list\_table pl, mantis\_project\_table p"  
AuthMySQLNameField u.username  
AuthMySQLPasswordField u.password  
AuthMySQLUserCondition "u.enabled = 1 and u.id = pl.user\_id and pl.project\_id = 2 and p.enabled = 1 and p.id = 2 and \\"%U\\" like p.file\_path"  
AuthMySQLPwEncryption md5  
AuthMySQLGroupTable "mantis\_project\_table p, mantis\_project\_user\_list\_table pl, mantis\_user\_table u"  
AuthMySQLGroupCondition "p.id = pl.project\_id and pl.access\_level &gt;= p.access\_min and pl.project\_id = 2 and u.enabled = 1 and u.id = pl.user\_id and pl.project\_id = 2 and p.enabled = 1 and p.id = 2"  
AuthMySQLGroupField pl.access\_level  
AuthMySQLAuthoritative ON  
&lt;/ifModule&gt;  
&lt;/Location&gt;