svn基于mysql认证

前提条件

httpd、svn、mysql、mod_auth_mysql、mod_dav_svn已安装部署好,参考文章:http://my.oschina.net/xiaokaceng/blog/185070


核心配置

vim /etc/httpd/conf.d/subversion.conf

<Location /svn>
        DAV svn
        SVNParentPath /home/svn
        AuthType Basic
        AuthName "Subversion"
        AuthzSVNAccessFile /home/svn/authz
        AuthMySQLEnable on
        AuthMySQLHost localhost
        AuthMySQLDB cas
        AuthMySQLUser root
        AuthMySQLPassword root
        AuthMySQLUserTable KS_IDENTITY
        AuthMySQLNameField user_account
        AuthMySQLPasswordField user_password
        AuthMySQLPwEncryption MD5
        AuthMySQLUserCondition "KS_IDENTITY.ISVALID = 1"
        Require valid-user
</Location>



完成

svn基于mysql认证_第1张图片


你可能感兴趣的:(apache,mysql,SVN)