[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Access rights files with Parent path and svn protocol?

From: Tom Malia <tommalia_at_ttdsinc.com>
Date: Fri, 14 Feb 2014 16:39:10 -0500

I've got svnserver running with parent path set and I want to support
Path-based Authorization.

 

I'm starting there server as follows:

C:\Program Files (x86)\WANdisco\Subversion>svnserve -d -r
C:/SVN/repositories

 

I'm having no trouble reading repositories from remote clients with the
svn:// protocol but I can't commit.

 

The documentation talks about setting the "authz-db" value in the
"svnserve.conf" file to define access rights. However, I'm confused and
having some trouble with getting this to work in a parent path environment.

 

If I populate the authz and passwd files in the conf directory of a specific
repository and I start the SVNSERVE for that specific repository:

 

(i.e. C:\Program Files (x86)\WANdisco\Subversion>svnserve -d -r
C:/SVN/repositories/Test)

things seem to work fine.

 

However, if I try to set authz-db to a file in any directory other than the
conf directory of the repo. Being served it appears to fail to read it. It
works fine if I set authz-db to just the file name in the conf directory
like:

authz-db = authz

it also works fine if I give it a complete path the same file like:

authz-db = C:/SVN/repositories/Test/conf/authz

 

However, if I copy the same file to a different directory (i.e.
c:/SVN/repositories/authz) then try to reference it either with a relative
path or a literal path:

authz-db =../../ authz

or

authz-db = C:/SVN/repositories/authz

 

Finally when I run svnserve with a parent path. no matter what I do in any
of the svnserve.conf and authz-db and password-db files anywhere. it just
seems to ignore any and all access rights settings.. It just allows
read-only access right to anonymous users. never asks for any cridentials,
and doesn't allow write rights to anything.

 

 

I've managed access rights for multiple repositories on other servers where
Apache integration was being used to provide HTTP access to the repos but
I've never done this before using svnserve.. What am I missing? How do you
manage the path-based Authentication for multiple repositories on a single
server using svnserve?

 

Thanks in advance,

Tom
Received on 2014-02-14 22:41:31 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.