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

Facebook - Control privacy setting of liked page

By default, Facebook displayed your liked page to public. It is the user responsibility to adjust the privacy setting. And in my opinion, F...