On 12 April 2010 20:20, Vishwajeet <[email protected]> wrote: > > > On Apr 12, 2:15 pm, Graham Dumpleton <[email protected]> > wrote: >> On 12 April 2010 17:45, Vishwajeet <[email protected]> wrote: >> >> >> It seems therefore that in Apache 2.2 you just can't do it without >> >> defining a full blown authentication handler, which mod_wsgi doesn't >> >> provide support for doing. >> >> > Thanks for such a nice and elaborate reply. >> > I think this would not be possible either but I will ask ss there a >> > way to do something like this >> >http://svn.apache.org/repos/asf/subversion/trunk/contrib/server-side/... >> > That script is for mod_python it uses groups in svn authorization file >> > to authorize users. >> >> How complicated are the restrictions in your svnserve.conf file? >> > SVN Authorization file is not that complicated and is as shown below > [Project1:/] > vishwajeet = rw > > [Project2:/] > vishwajeet = r > >> It is possible to implement simple restrictions using standard Apache >> directives. I don't have an example right now but can send one when >> get back to work. >> >> When I get a chance to look at it properly I respond in a bit more detail. >> > Thanks once again for your help much appreciated.
Sorry, forgot about this earlier and am in a hurry to get out door now. The basic idea is to use something like the following. The second one may need to change as for what I was doing I was actually allowing a copy into the area, but then no further commits, so not pure read only. Don't have time to go back and work out what other methods should be blocked to make it complete read only. # [Project1:/] # vishwajeet = rw <Location /svn/Project1/!svn/*/*/*> Require user vishwajeet </Location> # [Project2:/] # vishwajeet = r <Location /svn/Project2/!svn/*/*/*> Require user vishwajeet <LimitExcept OPTIONS GET PROPFIND REPORT COPY> deny from all </LimitExcept> </Location> Anyway, I have done that in a rush, so may not be totally correct, but you can get the idea. Look in your Apache access logs to see the different URLs and methods subversion repository may receive and adjust as necessary. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
