Showing posts with label apache svn add users. Show all posts
Showing posts with label apache svn add users. Show all posts

Thursday, April 16, 2009

Adding users to SVN and setting SVN with Apache

A quickie... to add users in SVN running under Apache, this is the syntax for Windows:

htpasswd D:\Repositories\svn-auth-file jack

You will be prompted as follows:
New password: *******
Re-type new password: *******
Adding password for user jack

Of course when setting up SVN with Apache the svn-auth-file is created.

One can set SVN with Apache as follows:
Copy the the following modules in Apache modules folder:
mod_dav_svn.so, mod_authz_svn.so

Modify the httpd.conf, by adding the following:

# Subversion modules
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<location>
DAV svn
SVNPath "C:/Repository/repositoryname"
AuthType Basic
AuthName "Subversion Casino repository"
AuthUserFile "C:/Repository/svn-auth-file"

Require valid-user
<location>