CentOS 7 下 SVN + Apache 对接 LDAP 服务
准备环境
创建 SVN 仓库
[ root@redmine ~]
[ root@redmine ~]
可用 SVN 服务
[ root@redmine ~]
配置账户
[ root@redmine ~]
[ groups]
administrator = lsr,zds,lsr_zds
[ /]
@administrator = rw
安装 Apache
[ root@redmine ~]
安装 SVN 对接 LDAP 插件
[ root@redmine ~]
配置 Apache && SVN 集成
httpd.conf 配置
[ root@redmine ~]
Listen 10.10 .200.248:80
subversion.conf 配置
[ root@redmine ~]
< Location />
DAV svn
SVNPath /data/svn/repository
AuthzSVNAccessFile /data/svn/repository/conf/authz
SVNListParentPath on
SVNAutoversioning On
AuthBasicProvider ldap
AuthType Basic
AuthName "SVN"
AuthLDAPURL "ldap://${ldap_ip} :${ldap_port} /DC=bjgoodwill,DC=com?sAMAccountName?sub?(objectClass=*)" NONE
AuthLDAPBindDN "${ldap_auth_user} "
AuthLDAPBindPassword "${ldap_autp_pass} "
require valid-user
Allow from all
< /Location>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
注意事项
SELinux 权限
[ root@redmine svn_client]
[ Wed Aug 03 10 :28:14.026930 2022 ] [ authz_svn:error] [ pid 5969 ] ( 13 ) Permission denied: [ client 10.10 .200.234:50267] Failed to load the AuthzSVNAccessFile: Can't open file ' /data/svn/repository/conf/authz': Permission denied
[Wed Aug 03 10:28:14.028920 2022] [authz_svn:error] [pid 5971] (13)Permission denied: [client 10.10.200.234:50268] Failed to load the AuthzSVNAccessFile: Can' t open file '/data/svn/repository/conf/authz' : Permission denied
[ Wed Aug 03 10 :28:14.031794 2022 ] [ authz_svn:error] [ pid 5967 ] ( 13 ) Permission denied: [ client 10.10 .200.234:50269] Failed to load the AuthzSVNAccessFile: Can't open file ' /data/svn/repository/conf/authz': Permission denied
[ root@redmine ~]
[ root@redmine ~]
测试
测试 svn 方式
[ root@redmine ~]
测试 http 方式
[ root@redmine ~]
参考