You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rajko Albrecht <ra...@alwins-world.de> on 2007/06/12 06:54:53 UTC

ACLs via external hooks

Hi,

inside a larger project with quite dynamics access rights (yes, true)  
I would like to check the access rights (and logins?) against external  
sources.

Eg., just like a "pre-commit" - hook but for reading, too. Or may I  
insert something into the configuration which will do that?

And yes - the documented dir-based ACLs will not work 'cause its too  
much. External source means, I may ask a server has_rights(user,path)  
and will return yes/no or exit 0/exit 1 or similar. For pre-commit it  
would work.

Is this possible?

CU

Rajko


Re: ACLs via external hooks

Posted by Karl Fogel <kf...@red-bean.com>.
Rajko Albrecht <ra...@alwins-world.de> writes:
> inside a larger project with quite dynamics access rights (yes, true)
> I would like to check the access rights (and logins?) against external
> sources.
>
> Eg., just like a "pre-commit" - hook but for reading, too. Or may I
> insert something into the configuration which will do that?
>
> And yes - the documented dir-based ACLs will not work 'cause its too
> much. External source means, I may ask a server has_rights(user,path)
> and will return yes/no or exit 0/exit 1 or similar. For pre-commit it
> would work.
>
> Is this possible?

No, unfortunately.  Subversion doesn't have any read hooks, only write
hooks.  However, you may be interested in 

   http://svn.collab.net/repos/svn/trunk/notes/sasl.txt

That won't help you get dynamism in path authorization, but at least
you can get some authentication flexibility.

Best,
-Karl

-- 
Subversion support & consulting  <>  http://producingoss.com/consulting.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org