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

Re: hook scripts for ra_dav GET PROPFIND OPTIONS REPORT

From: Timothee Besset <ttimo_at_idsoftware.com>
Date: 2003-06-03 12:14:45 CEST

And then, Sander pointed to a very recent mail thread:
http://subversion.tigris.org/servlets/BrowseList?list=dev&by=thread&from=104090

<TTimo> how would I proceed to write a mod_authz_svn thing
<TTimo> need a few more pointers to apache and svn source I suppose
<sander> Ok, it's not that hard really
<sander> Check out the httpd-2.0 HEAD code
<sander> Then go to modules/aaa/
<sander> Take a look at mod_authz_default.c
<sander> You want to replace the content of the check_user_access function
<sander> Get the uri from the request_rec and pass that to dav_svn_split_url
<sander> Now, depending on the method, see request_rec method_number, and the path you get back from dav_svn_split_url, grant or deny access.
..
<sander> Ultimately we want to implement the access control features for webdav and use that. And we need acls in the repository first.
<sander> You trigger the module with a directive, something like AuthzSvnAccessFile.
<sander> You can put that in a limit block, but I suggest you make the file look like:
<sander> <path>:<method>[,method...]:<user>[,<user>...]
<TTimo> you mean something I'd have to parse myself
<sander> Uhuh
<sander> That is something you need to do anyway
<sander> Remember that the Location directives won't match the special urls
<TTimo> yeah I know that
<TTimo> ok I'm writing this down
<TTimo> I don't promise anything, but I'll try to look at it
<sander> If you won't I prolly will. My stack is just too high at the moment.

TTimo

On Tue, 3 Jun 2003 11:28:28 +0200
Timothee Besset <ttimo@idsoftware.com> wrote:

> I badly need per-directory read access control. I know this is planned as
> a post 1.0 feature, but I'd like to know how feasible it is to modify svn
> to spawn a hook script or similar for all the read operations (GET
> PROPFIND OPTIONS REPORT) with the appropriate information, the only thing
> I need I think is the file path.
>
> Can anyone give me a few hints as to where to look at?
>
> TTimo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>

-- 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 3 12:15:43 2003

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.