svn+apache+AD认证

一、系统环境

CentOS Linux release 7.8.2003 (Core)

二、相关软件安装

yum install httpd httpd-tools subversion mod_dav_svn mod_ldap -y

三、配置AD认证

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


DAV svn
SVNParentPath /var/svn/
SVNListParentPath on
AuthzSVNAccessFile /etc/httpd/conf.d/svn-authz

AuthName "Subversion repository"
AuthType Basic
AuthName "SVN-ldap"
AuthBasicProvider ldap
AuthLDAPURL "ldap://test.cn:389/dc=hjimi,dc=cn?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN "cn=interface,cn=users,dc=test,dc=cn"
AuthLDAPBindPassword "xxxxxxxx*"

Require ldap-user

##创建用户权限策略文件

#vim   /etc/httpd/conf.d/svn-authz

[groups]
bjic = test01,test02

[bjic:/]
@bjic = rw

[test:/]
@bjic = rw

四、启动服务

systemctl enable svnserve.service
systemctl start svnserve.service

systemctl enable httpd
systemctl start httpd

五、验证服务

打开web浏览器提示,输入你的AD用户名和密码

svn+apache+AD认证_第1张图片

 

你可能感兴趣的:(linux,svn,centos,svn,linux,centos)