This blog, How to practise SVN repository With Active Directory Authentication CentOS 7.X
What is Apache Subversion :-
Apache Subversion, which is ordinarily referred to inwards its abbreviated degree every bit SVN, (named afterwards the command scream SVN) is a pop software versioning in addition to revision command arrangement which is distributed every bit a gratuitous software nether the Apache License. Mainly used past times developers to keep acquaint in addition to historic file versions similar documentation, source code, in addition to spider web pages, it primarily aims to survive a compatible successor to the extensively used CVS (Concurrent Versions System). As a thing of fact, the Subversion has been widely used past times the gratuitous software community. This tutorial explains how to install in addition to purpose SVN on CentOS 7.Step:1 Creating SVN Repository
Use below mentioned command to practise SVN repository
[root@svn ]# svnadmin practise /svndata/testrepo
Where
svnadmin create = Command
/svndata = is Perent SVN information folder where nosotros volition practise all the repository
/testrepo = is repository name
Step:2 Change Repository Ownership
Now nosotros take away to hand permission to user Apache thus he tin hand the axe write into SVN Repository.
Use below command to brand Owner Apache User.
[root@svn ]# chown -R apache:apache /svndata/testrepo/
Step:3 Create Repository Configuration File:
Now nosotros take away to practise Repository config file inwards Apache thus it tin hand the axe survive accessed over the network.
[root@svn ]# vi /etc/httpd/conf.d/testrepo.conf
Now append below content into file.
<location /testrepo> DAV svn SVNPath /svndata/testrepo Order deny,allow Deny from all Allow from 10.0.0.0/24 Allow from 10.0.1.0/24 AuthType Basic AuthName "SVN Auth" AuthBasicProvider "ldap" AuthLDAPURL ldap://BMT-DC-01.ISHIR.LOCAL:3268/DC=ISHIR,DC=LOCAL?sAMAccountName?sub?(objectClass=user) AuthLDAPBindDN svnauth@ISHIR.LOCAL AuthLDAPBindPassword ********* authzldapauthoritative Off AuthzSVNAccessFile /etc/svn/testrepo require valid-user </Location>
Note:- Please modify the Repository scream instead of testrepo if yous are using different name.
Save in addition to Exit from File.
Step:4 Create Access file.
We take away to practise auth file, Where nosotros tin hand the axe assign user access for the specific repository using below command.
[root@svn ]# vi /etc/svn/testrepo
Now add together the user whom yous desire to hand access on this repo.
[/] asingh = rw
Save in addition to overstep from file.
Note:- Please add together Active Directory Login user in addition to proceed file scream that yous accept inwards Configuration file i.e. (AuthzSVNAccessFile /etc/svn/testrepo)
Step:5 Import Trunk, Tag in addition to Branch :
Let's import trunk, tag in addition to branches into testrepo using below command.
[root@svn ]# svn import /home/amar/ file:///svndata/testrepo/ -m "initial messege" Adding /home/amar/tag Adding /home/amar/trunk Adding /home/amar/branches Committed revision 1. [root@svn ]#
Note:- Please modify repository scream instead of testrepo
Step:6 Restart Apache in addition to endeavor to browse the URL.
[root@svn ]# systemctl restart httpd
Now browse the URL: