You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Didier Trosset <di...@agilent.com> on 2010/04/29 09:39:02 UTC
How to allow anonymous access, but not everyone access in path-based
authorization?
I have a subversion server running with apache. It authenticates users
using LDAP configuration and uses SVN path-based authorizations to limit
user access to certain repositories. This works perfectly.
Now, I have a service I want to setup (rietveld, for code reviews) that
needs to have an anonymous access to the repository. As this is a web
service, accesses are always done from the same server. Thus I added an
apache configuration to allow accesses from this machine. without user
authentication.
| <Limit GET PROPFIND OPTIONS REPORT>
Order allow,deny
Allow from # private IP address
Satisfy Any
</Limit>
|
This did not work until I add an additional line "* = r" in the
authorization file to allow read access to all users.
For instance, before I add the authorization from a specific IP, all
users were authenticated, and thus had a name. Now, some accesses are
done without a user name! I found the |"-|" user name in the apache log
files, but the line "|- = r"| does not work, neither do |"anonymous =
r"|. I'd like not to allow read access to everyone in SVN authorization.
How can I do this?
(More details in stackoverflow question
http://stackoverflow.com/questions/2728021/how-to-allow-unamed-user-in-svn-authz-file
Re: How to allow anonymous access, but not everyone access in
path-based authorization?
Posted by Johan Corveleyn <jc...@gmail.com>.
On Thu, Apr 29, 2010 at 11:53 AM, vishwajeet singh <de...@gmail.com> wrote:
>
>
> On Thu, Apr 29, 2010 at 3:09 PM, Didier Trosset <di...@agilent.com>
> wrote:
>>
>> I have a subversion server running with apache. It authenticates users
>> using LDAP configuration and uses SVN path-based authorizations to limit
>> user access to certain repositories. This works perfectly.
>>
>> Now, I have a service I want to setup (rietveld, for code reviews) that
>> needs to have an anonymous access to the repository. As this is a web
>> service, accesses are always done from the same server. Thus I added an
>> apache configuration to allow accesses from this machine. without user
>> authentication.
>>
>> | <Limit GET PROPFIND OPTIONS REPORT>
>> Order allow,deny
>> Allow from # private IP address
>> Satisfy Any
>> </Limit>
>> |
>>
>> This did not work until I add an additional line "* = r" in the
>> authorization file to allow read access to all users.
>>
>> For instance, before I add the authorization from a specific IP, all users
>> were authenticated, and thus had a name. Now, some accesses are done without
>> a user name! I found the |"-|" user name in the apache log files, but the
>> line "|- = r"| does not work, neither do |"anonymous = r"|. I'd like not to
>> allow read access to everyone in SVN authorization. How can I do this?
>>
>> (More details in stackoverflow question
>> http://stackoverflow.com/questions/2728021/how-to-allow-unamed-user-in-svn-authz-file
>
> IMHO there is no way to do it other than creating a dummy user and giving it
> access to all repositories in authorization file as we had similar issues
> integrating Subversion repositories with JIRA.
You can do this if you set up a separate Location block (referring to
the same svn repo) for this anonymous access. Then they can each have
their own authz file (or no authz file if it's not needed). I don't
see another way.
We do something like that:
<Location /svn>
DAV svn
SVNPath /path/to/repos
... auth & possible authz stuff
</Location>
<Location /svn_anon>
DAV svn
SVNPath /path/to/repos
... auth & authz stuff, Limit, ... for anonymous access within
certain limits
</Location>
Cheers,
--
Johan
Re: How to allow anonymous access, but not everyone access in
path-based authorization?
Posted by vishwajeet singh <de...@gmail.com>.
On Thu, Apr 29, 2010 at 3:09 PM, Didier Trosset
<di...@agilent.com>wrote:
> I have a subversion server running with apache. It authenticates users
> using LDAP configuration and uses SVN path-based authorizations to limit
> user access to certain repositories. This works perfectly.
>
> Now, I have a service I want to setup (rietveld, for code reviews) that
> needs to have an anonymous access to the repository. As this is a web
> service, accesses are always done from the same server. Thus I added an
> apache configuration to allow accesses from this machine. without user
> authentication.
>
> | <Limit GET PROPFIND OPTIONS REPORT>
> Order allow,deny
> Allow from # private IP address
> Satisfy Any
> </Limit>
> |
>
> This did not work until I add an additional line "* = r" in the
> authorization file to allow read access to all users.
>
> For instance, before I add the authorization from a specific IP, all users
> were authenticated, and thus had a name. Now, some accesses are done without
> a user name! I found the |"-|" user name in the apache log files, but the
> line "|- = r"| does not work, neither do |"anonymous = r"|. I'd like not to
> allow read access to everyone in SVN authorization. How can I do this?
>
> (More details in stackoverflow question
> http://stackoverflow.com/questions/2728021/how-to-allow-unamed-user-in-svn-authz-file
IMHO there is no way to do it other than creating a dummy user and giving it
access to all repositories in authorization file as we had similar issues
integrating Subversion repositories with JIRA.
--
Vishwajeet Singh
+91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com
Twitter: http://twitter.com/vishwajeets | LinkedIn:
http://www.linkedin.com/in/singhvishwajeet
Re: How to allow anonymous access, but not everyone access in
path-based authorization?
Posted by Didier Trosset <di...@agilent.com>.
Jon Foster wrote:
> Hi,
>
> Didier Trosset wrote:
>> I have a subversion server running with apache. It authenticates
>> users using LDAP configuration and uses SVN path-based
>> authorizations to limit user access to certain repositories.
>> This works perfectly.
>>
>> Now, I have a service I want to setup (rietveld, for code reviews)
>> that needs to have an anonymous access to the repository.
>> [... snip ...]
>> This did not work until I add an additional line "* = r" in the
>> authorization file to allow read access to all users.
>>
>> For instance, before I add the authorization from a specific IP,
>> all users were authenticated, and thus had a name. Now, some
>> accesses are done without a user name! I found the |"-|" user
>> name in the apache log files, but the line "|- = r"| does not work,
>> neither do |"anonymous = r"|. I'd like not to allow read access to
>> everyone in SVN authorization. How can I do this?
>
> Subversion's authz files support "$anonymous" to refer to anonymous
> users. (And "$authenticated" to refer to authenticated users).
Great! It works!
Thanks, that's exactly what I was looking for.
There's no mention of this in the SVN book. Is it a hidden feature? Will
it stay in future revisions?
>
> Kind regards,
>
> Jon
> --
> Please direct all replies to the mailing list
>
>
> **********************************************************************
> This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd.
>
> If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.
>
> Cabot Communications Limited
> Verona House, Filwood Road, Bristol BS16 3RY, UK
> +44 (0) 1179584232
>
> Co. Registered in England number 02817269
>
> Please contact the sender if you believe you have received this email in error.
>
> **********************************************************************
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
RE: How to allow anonymous access, but not everyone access in
path-based authorization?
Posted by Jon Foster <Jo...@cabot.co.uk>.
Hi,
Didier Trosset wrote:
> I have a subversion server running with apache. It authenticates
> users using LDAP configuration and uses SVN path-based
> authorizations to limit user access to certain repositories.
> This works perfectly.
>
> Now, I have a service I want to setup (rietveld, for code reviews)
> that needs to have an anonymous access to the repository.
> [... snip ...]
> This did not work until I add an additional line "* = r" in the
> authorization file to allow read access to all users.
>
> For instance, before I add the authorization from a specific IP,
> all users were authenticated, and thus had a name. Now, some
> accesses are done without a user name! I found the |"-|" user
> name in the apache log files, but the line "|- = r"| does not work,
> neither do |"anonymous = r"|. I'd like not to allow read access to
> everyone in SVN authorization. How can I do this?
Subversion's authz files support "$anonymous" to refer to anonymous
users. (And "$authenticated" to refer to authenticated users).
Kind regards,
Jon
--
Please direct all replies to the mailing list
**********************************************************************
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd.
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.
Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232
Co. Registered in England number 02817269
Please contact the sender if you believe you have received this email in error.
**********************************************************************
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________