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

AW: Re: Subversion over http !!

From: Felix Gilcher <felix.gilcher_at_exozet.com>
Date: 2007-01-17 09:57:05 CET

Hi,

> -----Ursprüngliche Nachricht-----
> Von: Himanshu Raina [mailto:raina_himanshu@yahoo.com]
> Gesendet: Mittwoch, 17. Januar 2007 09:20
> An: Norbert Unterberg; users@subversion.tigris.org
> Betreff: Re: Subversion over http !!
>
>
> HI,
>
> Let me explain again.I have three repositories
> /usr/local/svn/repos1
> /usr/local/svn/repos2
> /usr/local/svn/repos3
> Now when i access this over http
> http://www.myip.com/svn/repos1 - I authenticate and am able
> to see the directory structure.Now if i want to access
> another repository i can simply give
> http://www.myip.com/svn/repos2 and since i am already
> authenticated it won't prompt me for id/password.
> Now coming back to my problem.How can i restrict user from
> one repository to access another repository.I made use of
> .htaccess file and was able to restrict access to
> repositories but post authentication it doesn't list the
> directories and instead gives me an error.

Once again, as Norbert already mentioned read the free subversion book [1], specifically the chapters about "Authentication Options" with http [2] and "Per-Directory Access Control" [3] which explain the available methods of restricting access in great detail. Probably the easiest method is to use an AuthzSVNAccessFile, which is explained in the section "Per-Directory Access Control". If you have any specific questions concerning this setup, feel free to come back to the list.

regards

felix

[1] http://svnbook.red-bean.com/
[2] http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authn
[3] http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.perdir
 
>
>
> regards
> Himanshu Raina
>
> ----- Original Message ----
> From: Norbert Unterberg <nepo@gmx.net>
> To: users@subversion.tigris.org
> Sent: Wednesday, January 17, 2007 12:51:47 PM
> Subject: Re: Subversion over http !!
>
>
> Himanshu Raina schrieb:
>
> > Now if i access it over http i.e
> > http://myip.com/svn/repos1 -- it prompts me for a password and post
> > authentication lists the directories.Since i make use of a single
> > auth-file it doesn't prompt me for another authentication and as a
> > result i can browse through any repository (provided i know
> the repos
> > name)..Is there anyway i can avoid the same.
>
> Yes. Read the subversion book (http://svnbook.red-bean.com/),
> in particular the
> chapter about server configuration --> Per-Directory Access
> Control. You need to
> configure an access file using the AuthzSVNAccessFile directive.
>
> NOrbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
>
> ________________________________
>
> Food fight?
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TA
zM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367> Enjoy some healthy > debate
> in the Yahoo! Answers Food & Drink Q&A.
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TA
zM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>

--
Felix Gilcher
Head of IT Development
Exozet Berlin GmbH
Rotherstraße 20
10245 Berlin
eMail: gilcher@exozet.com
URL: www.exozet.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 17 09:57:25 2007

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.