Wednesday, February 18, 2009

SVN - Authentication

Setting up Authentication for SVN is not tough too.

First, stop Apache server - net stop apache2.2

Second, create a htpasswd file with the following command
htpasswd -cm svn-auth-file your-name

Third, in httpd.conf, add the following to Module path

LoadModule authz_svn_module modules/mod_authz_svn.so

Fourth, in httpd.conf, add the following to Location tag


DAV svn
SVNPath "C:\svn_repository"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "C:\Program Files\CollabNet Subversion Server\httpd\conf\svn-auth-file "
Require valid-user


Lastly, restart Apache server.

That all, you will required to use username/password to retrieve your documents.

No comments:

Post a Comment

Hadoop - How to setup a Hadoop Cluster

Below is a step-by-step guide which I had used to setup a Hadoop Cluster Scenario 3 VMs involved: 1) NameNode, ResourceManager - Host...