用Perl编写Apache模块续 - SVNAuth

时间:2023-03-10 06:03:56
用Perl编写Apache模块续 - SVNAuth

目标:以整合各类项目管理系统中的用户体系及权限体系为目标,实现SVN的集成式动态鉴权

支持平台:usvn、禅道等 - 开发中,本文仅对前期的探索工作做点整理

开发环境:

Windows、XAMPP 1.7.2

项目地址:

https://code.****.net/x3dcn/svnauth

有兴趣的可以一起参加。

  1. 加载perl模块
LoadFile "D:/PHP/xampp/perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so
  1. 配置svn
PerlLoadModule Apache::Authn::Redmine
<Location /svn/>
#ErrorDocument default
DAV svn
SVNParentPath "D:\PHP\xampp\SvnRepo\svn"
SVNListParentPath on Require valid-user
AuthName "USVN"
AuthType Basic #SVNPathAuthz off PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
## for mysql
#RedmineDSN "DBI:mysql:database=usvn;host=127.0.0.1"
#RedmineDbUser "root"
#RedmineDbPass "" AuthUserFile D:\PHP\xampp\SvnRepo\htpasswd
AuthzSVNAccessFile D:\PHP\xampp\SvnRepo\authz
</Location>

目前遇到的问题:上面配置文件中传递的参数如RedmineDSN没有传到代码环境中

 
  1. D:/PHP/xampp/perl/site/Apache/Authn/Redmine.pm

内容详见代码库。

以上就是记流水帐的意思,整个开发工作还没有完成。

关于Perl与Apache的知识,请参看:http://www.cnblogs.com/x3d/p/3771704.html