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

Re: mod_dav_svn api

From: Marcus Rueckert <darix_at_web.de>
Date: 2005-03-25 19:13:01 CET

On 2005-03-25 07:52:26 -0600, Ben Collins-Sussman wrote:
> >but how can i cleanly access the config options from other modules?

i want to write a module which uses the same logic as svnserve for
authentication. therefor i need to find the filesystem path of the
repository to read conf/svnserve.conf to find the passwd file.

what would be a proper way to get the path to it?
> >would it be usefull to republish some of the external mod_dav_svn api?

for my module it would be usefull if dav_svn_get_fs_path would be
public. or a similar function that just returns the repository path of
for the current request object.

> I don't understand these last two questions, can you elaborate? I
> don't see why your module needs anything more than dav_svn_split_uri().
> That's all mod_authz_svn needs.

right. because authz_svn only works against relative paths inside the
repository. it doesnt need the path to the repository on the disk.

if i just add a setting like AuthnSvnFile, mod_authn_svn would work so
well with svnparentpath.
> Also, have you looked at mod_authz_svn? It's incredibly simple, and
> your own module could use it as a template. Your own module would be
> even smaller and simpler.

i will read mod_authz_svn about the config parsing stuff.
but it doesnt help me to find the svnserve.conf and the passwd file.


irssi - the client of the smart and beautiful people
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 25 19:14:13 2005

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

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