You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Patricia A Moss <pm...@csc.com> on 2009/06/10 18:03:39 UTC

Limiting permission's

I have Subversion version 1.7.0 installed and configured.  I am trying to 
figure out how to limit access to a repository to a single group.  This is 
how my config file is set up.

<AuthnProviderAlias ldap ldap-FCGNET>
        AuthLDAPBindDN FCGNET\svnaccount
        AuthLDAPBindPassword svnpasswd
        AuthLDAPURL ldap://servername
:3268/DC=domainname,DC=com?samAccountName?sub?
(objectCategory=person)
<Location /zorch>
dav svn
SVNPath /disk01/home/zorch
AuthType Basic
AuthBasicProvider ldap-FCGNET
AuthName "CSC Subversion Repository"
AuthzLDAPAuthoritative off
Require valid-user
##
# Allows group to have read access to the repository
<Limit GET PROPFIND OPTIONS REPORT>
        Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
</Limit>
# Allows group to have write access to the repository
<LimitExcept GET PROPFIND OPTIONS REPORT>
        Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
</LimitExcept>
</Location>

Do I need to have the "AuthBasicProvider ldap-FCGNET" line if I have 
entries for "Limit" and "LimitExcept"?
Are the "Limit" and "LimitExcept" entries the correct way to limit access 
to a specific group only?

Any help is appreciated.  Thank you

PATI MOSS
System Engineer Sr. Professional
CSC

575 E. Swedesford Road, Suite 300, Wayne, PA 19464
GIS | p: 610.989.7105 | f: 610.989.7100 | pmoss4@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to 
any order or other contract unless pursuant to explicit written agreement 
or government initiative expressly permitting the use of e-mail for such 
purpose.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361033

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
Thank you very much for all of your help.  It is now working as expected 
and I did not need to add the quotation marks.


PATI MOSS
System Engineer Sr. Professional
CSC





Johan Corveleyn <jo...@uz.kuleuven.ac.be> 
06/17/2009 09:30 AM

To
"'Ryan Schmidt'" <su...@ryandesign.com>
cc
Patricia A Moss/GIS/CSC@CSC, "users@subversion.tigris.org" 
<us...@subversion.tigris.org>
Subject
RE: Limiting permission's






> -----Oorspronkelijk bericht-----
> Van: Ryan Schmidt [mailto:subversion-2009b@ryandesign.com]
> Verzonden: woensdag 17 juni 2009 14:49
> Aan: Johan Corveleyn
> CC: 'Patricia A Moss'; users@subversion.tigris.org
> Onderwerp: Re: Limiting permission's
> 
> 
> On Jun 17, 2009, at 07:44, Johan Corveleyn wrote:
> 
> > Ah ok, now I start to understand what you want: you just want only
> > that FP-Development group to have access (reading and writing) to
> > the repository, and anyone else should have no access (no read, no
> > write). Then forget about the Limit and LimitExcept (those are for
> > making a difference between reading and writing, but you want to
> > restrict both reading and writing the same way, so ...).
> >
> > It's actually what Jason Malinowski suggested in the very first
> > post - just do it like this (require anyone who accesses /zorch to
> > be in the FP-Development group):
> > <Location /zorch>
> >     DAV svn
> >     SVNPath /disk01/home/zorch
> >     AuthType Basic
> >     AuthBasicProvider ldap
> >     AuthzLDAPAuthoritative off
> >     AuthName "Subversion Repository"
> >     AuthLDAPBindDN CSCNET\svnaccount
> >     AuthLDAPBindPassword svnpasswd
> >     AuthLDAPURL ldap://servername:3268/DC=domainname,DC=com?
> > samAccountName?sub?(objectCategory=person)
> >     Require ldap-group CN=PRJ FP-
> > Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> > </Location>
> >
> > About the quotes, those should be around the entire DN, not just
> > the value of the CN. But again, I'm not sure if it's really needed,
> > first try without them. If it doesn't work and you need to add
> > them, the line should look like this:
> >     Require ldap-group "CN=PRJ FP-
> > Development,OU=U.S.,OU=Groups,DC=domainname,DC=com"
> >
> > Also, I'm not sure whether this matters, but in my httpd.conf the
> > "dav" is in uppercase, so "DAV svn".
> 
> Does she still need "Require valid-user" or no?
> 

No, I don't think so. In our httpd.conf we only have the "Require 
ldap-group", and it works as expected. I guess the "Require ldap-group" 
check simply implies that you must be a valid-user, since Apache (or 
mod_authzn_ldap or whathever) must know your username first (i.e. make you 
authenticate) before it can ask your group membership from the LDAP.

Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362891

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Johan Corveleyn <jo...@uz.kuleuven.ac.be>.
> -----Oorspronkelijk bericht-----
> Van: Ryan Schmidt [mailto:subversion-2009b@ryandesign.com]
> Verzonden: woensdag 17 juni 2009 14:49
> Aan: Johan Corveleyn
> CC: 'Patricia A Moss'; users@subversion.tigris.org
> Onderwerp: Re: Limiting permission's
> 
> 
> On Jun 17, 2009, at 07:44, Johan Corveleyn wrote:
> 
> > Ah ok, now I start to understand what you want: you just want only
> > that FP-Development group to have access (reading and writing) to
> > the repository, and anyone else should have no access (no read, no
> > write). Then forget about the Limit and LimitExcept (those are for
> > making a difference between reading and writing, but you want to
> > restrict both reading and writing the same way, so ...).
> >
> > It's actually what Jason Malinowski suggested in the very first
> > post - just do it like this (require anyone who accesses /zorch to
> > be in the FP-Development group):
> > <Location /zorch>
> >     DAV svn
> >     SVNPath /disk01/home/zorch
> >     AuthType Basic
> >     AuthBasicProvider ldap
> >     AuthzLDAPAuthoritative off
> >     AuthName "Subversion Repository"
> >     AuthLDAPBindDN CSCNET\svnaccount
> >     AuthLDAPBindPassword svnpasswd
> >     AuthLDAPURL ldap://servername:3268/DC=domainname,DC=com?
> > samAccountName?sub?(objectCategory=person)
> >     Require ldap-group CN=PRJ FP-
> > Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> > </Location>
> >
> > About the quotes, those should be around the entire DN, not just
> > the value of the CN. But again, I'm not sure if it's really needed,
> > first try without them. If it doesn't work and you need to add
> > them, the line should look like this:
> >     Require ldap-group "CN=PRJ FP-
> > Development,OU=U.S.,OU=Groups,DC=domainname,DC=com"
> >
> > Also, I'm not sure whether this matters, but in my httpd.conf the
> > "dav" is in uppercase, so "DAV svn".
> 
> Does she still need "Require valid-user" or no?
> 

No, I don't think so. In our httpd.conf we only have the "Require ldap-group", and it works as expected. I guess the "Require ldap-group" check simply implies that you must be a valid-user, since Apache (or mod_authzn_ldap or whathever) must know your username first (i.e. make you authenticate) before it can ask your group membership from the LDAP.

Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362805

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Limiting permission's

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 17, 2009, at 07:44, Johan Corveleyn wrote:

> Ah ok, now I start to understand what you want: you just want only  
> that FP-Development group to have access (reading and writing) to  
> the repository, and anyone else should have no access (no read, no  
> write). Then forget about the Limit and LimitExcept (those are for  
> making a difference between reading and writing, but you want to  
> restrict both reading and writing the same way, so ...).
>
> It's actually what Jason Malinowski suggested in the very first  
> post - just do it like this (require anyone who accesses /zorch to  
> be in the FP-Development group):
> <Location /zorch>
>     DAV svn
>     SVNPath /disk01/home/zorch
>     AuthType Basic
>     AuthBasicProvider ldap
>     AuthzLDAPAuthoritative off
>     AuthName "Subversion Repository"
>     AuthLDAPBindDN CSCNET\svnaccount
>     AuthLDAPBindPassword svnpasswd
>     AuthLDAPURL ldap://servername:3268/DC=domainname,DC=com? 
> samAccountName?sub?(objectCategory=person)
>     Require ldap-group CN=PRJ FP- 
> Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> </Location>
>
> About the quotes, those should be around the entire DN, not just  
> the value of the CN. But again, I'm not sure if it's really needed,  
> first try without them. If it doesn't work and you need to add  
> them, the line should look like this:
>     Require ldap-group "CN=PRJ FP- 
> Development,OU=U.S.,OU=Groups,DC=domainname,DC=com"
>
> Also, I'm not sure whether this matters, but in my httpd.conf the  
> "dav" is in uppercase, so "DAV svn".

Does she still need "Require valid-user" or no?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362792

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Johan Corveleyn <jo...@uz.kuleuven.ac.be>.
> I apologize that it is taking me forever to understand this. I am
> getting confused and the more that I read the more that I am not sure.
> Currently everyone, with a domain account, has access to the
> repository. That is not what I want. I want only the members of the
> development group to have access to the repository.
> So, if I want just the development group to have write access to the
> repository (and no one else can read),I need to remove the Require
> valid-user from my location block as well as put quotation marks around
> my group name. My config file should, then, look like this:
> 
> <Location /zorch>
> dav svn
> SVNPath /disk01/home/zorch
> AuthType Basic
> AuthBasicProvider ldap
>  AuthzLDAPAuthoritative off
> AuthName "Subversion Repository"
> AuthLDAPBindDN CSCNET\svnaccount
> AuthLDAPBindPassword svnpasswd
> AuthLDAPURL
> ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectC
> ategory=person)
>  <LimitExcept GET PROPFIND OPTIONS REPORT>
>       Require ldap-group CN="PRJ FP-
> Development",OU=U.S.,OU=Groups,DC=domainname,DC=com
> </LimitExcept>
> </Location>
> 
> Or is this still allowing everyone to read, but only the group members
> can write?

Ah ok, now I start to understand what you want: you just want only that FP-Development group to have access (reading and writing) to the repository, and anyone else should have no access (no read, no write). Then forget about the Limit and LimitExcept (those are for making a difference between reading and writing, but you want to restrict both reading and writing the same way, so ...). 

It's actually what Jason Malinowski suggested in the very first post - just do it like this (require anyone who accesses /zorch to be in the FP-Development group):
<Location /zorch>
    DAV svn
    SVNPath /disk01/home/zorch
    AuthType Basic
    AuthBasicProvider ldap
    AuthzLDAPAuthoritative off
    AuthName "Subversion Repository"
    AuthLDAPBindDN CSCNET\svnaccount
    AuthLDAPBindPassword svnpasswd
    AuthLDAPURL ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectCategory=person)
    Require ldap-group CN=PRJ FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
</Location>

About the quotes, those should be around the entire DN, not just the value of the CN. But again, I'm not sure if it's really needed, first try without them. If it doesn't work and you need to add them, the line should look like this:
    Require ldap-group "CN=PRJ FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com"

Also, I'm not sure whether this matters, but in my httpd.conf the "dav" is in uppercase, so "DAV svn".

Regards,
Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362789

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
> -----Oorspronkelijk bericht-----
> Van: Patricia [mailto:]
> Verzonden: woensdag 17 juni 2009 12:36
> Aan: Johan Corveleyn
> Onderwerp: RE: Limiting permission's
> 
> 
> >I think you misunderstand the Limit and LimitExcept directives. These
> are Apache directives, and you can >find what they mean at
> http://httpd.apache.org/docs/2.2/ <http://httpd.apache.org/docs/2.2/> .
> They can be used to limit access (read/write) for >groups of people to
> the repository as a whole (you can't use them to do "path-based
> authorization")
> >
> >You have to understand that the HTTP (WEBDAV) methods GET, OPTIONS,
> PROPFIND and REPORT are the ones that >SVN uses to read stuff. To write
> stuff it also needs access to other methods, like PUT, DELETE, ...
> >
> >The Limit section literally says: apply the underlying restrictions to
> the listed methods.
> >The LimitExcept section literally says: apply the underlying
> restrictions to any http method, *except* to >the listed methods.
> >
> >The way you have it configured, you really say:
> >- restrict access to SVN's read methods to group CN=PRJ FP-
> Development,...
> >- restrict access to all other methods to that same group
> >
> >That's why the post of Jason Malinowski is correct: you could just as
> well put the restriction of this group >in the Location block itself.
> >
> >So I guess in the end, I don't understand what you're trying to do,
> and what is going wrong (not as >expected).
> >If you want everyone to have read access, but only your special group
> to have write access, you should just >remove the "Limit" block from
> the config sample you posted. The "LimitExcept" block with the "Require
> >ldap-group" will make sure that all write methods (i.e. all of them
> except get, propfind, options and >report) are restricted to that
> group.
> 
> >Hope this helps...
> >Regards,
> >Johan
> 
> 
> Johan -
> This TOTALLY helps me.  Thank you.
> What I want to do is to allow r/w access to only FP-Development. So, if
> I understand what you are telling me above, I should only have one line
> and that should be:
> <LimitExcept GET PROPFIND OPTIONS REPORT>
>       Require ldap-group CN=PRJ FP-
> Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> </LimitExcept>
> And this is saying limit read access to everyone except FP-Development,
> correct?

Close, but not exactly accurate. It's really saying "Limit write access 
(i.e. everything except the read actions GET, PROPFIND, OPTIONS and 
REPORT) to the group FP-Development". It doesn't impose any additional 
restrictions on the read actions (get, propfind, ...). Those fall back on 
any restrictions that you've already put in your Location block, as 
general restrictions (in this case "Require valid-user", i.e. you have to 
be authenticated to be able to read).

> I checked out the url that you sent; thank you.  I didn't see anything
> about "GET, PROPFIND...etc". So I am not sure if my above line is
> allowing read and write or just read.

>It's saying nothing about read (that's done by the Require valid-user in 
the Location block), only >restricting write access to that group.
>
>GET, PROPFIND, ... are HTTP and WEBDAV "methods". You'd have to read some 
articles or rfc's to get to know >them thoroughly, and to find out how SVN 
uses them. Anyway, in this case all you need to know is that those >4 
methods are the "read" ones for SVN. And by limiting all the others (the 
"non-read"=write ones), you >effectively limit write access. It's more or 
less described (with an example Apache config) in the SVN book:
>http://svnbook.red-bean.com/en/1.5/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.blanket

>
>Maybe one more caveat you might run into: your ldap-group has a space in 
it. I'm not exactly sure, but you >might have to put it between double 
quotes after the "Require ldap-group" directive to make it work. Some 
>experimentation will help you figure that out. If it doesn't work as 
expected, be sure to take a look at the >apache error logs to find out 
why...
>
>(oh and one more thing: best to keep the list in cc when replying, so 
others can follow in case anyone's >still interested)
>
>Regards,
>Johan

I apologize that it is taking me forever to understand this. I am getting 
confused and the more that I read the more that I am not sure.
Currently everyone, with a domain account, has access to the repository. 
That is not what I want. I want only the members of the development group 
to have access to the repository. 
So, if I want just the development group to have write access to the 
repository (and no one else can read),I need to remove the Require 
valid-user from my location block as well as put quotation marks around my 
group name. My config file should, then, look like this:

<Location /zorch>
 dav svn
 SVNPath /disk01/home/zorch
 AuthType Basic
 AuthBasicProvider ldap
 AuthzLDAPAuthoritative off
 AuthName "Subversion Repository"
 AuthLDAPBindDN CSCNET\svnaccount
 AuthLDAPBindPassword svnpasswd
 AuthLDAPURL 
ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectCategory=person)
 <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require ldap-group CN="PRJ 
FP-Development",OU=U.S.,OU=Groups,DC=domainname,DC=com
 </LimitExcept>
</Location>

Or is this still allowing everyone to read, but only the group members can 
write?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362778

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Johan Corveleyn <jo...@uz.kuleuven.ac.be>.
> -----Oorspronkelijk bericht-----
> Van: Patricia A Moss [mailto:pmoss4@csc.com]
> Verzonden: woensdag 17 juni 2009 12:36
> Aan: Johan Corveleyn
> Onderwerp: RE: Limiting permission's
> 
> 
> >I think you misunderstand the Limit and LimitExcept directives. These
> are Apache directives, and you can >find what they mean at
> http://httpd.apache.org/docs/2.2/ <http://httpd.apache.org/docs/2.2/> .
> They can be used to limit access (read/write) for >groups of people to
> the repository as a whole (you can't use them to do "path-based
> authorization")
> >
> >You have to understand that the HTTP (WEBDAV) methods GET, OPTIONS,
> PROPFIND and REPORT are the ones that >SVN uses to read stuff. To write
> stuff it also needs access to other methods, like PUT, DELETE, ...
> >
> >The Limit section literally says: apply the underlying restrictions to
> the listed methods.
> >The LimitExcept section literally says: apply the underlying
> restrictions to any http method, *except* to >the listed methods.
> >
> >The way you have it configured, you really say:
> >- restrict access to SVN's read methods to group CN=PRJ FP-
> Development,...
> >- restrict access to all other methods to that same group
> >
> >That's why the post of Jason Malinowski is correct: you could just as
> well put the restriction of this group >in the Location block itself.
> >
> >So I guess in the end, I don't understand what you're trying to do,
> and what is going wrong (not as >expected).
> >If you want everyone to have read access, but only your special group
> to have write access, you should just >remove the "Limit" block from
> the config sample you posted. The "LimitExcept" block with the "Require
> >ldap-group" will make sure that all write methods (i.e. all of them
> except get, propfind, options and >report) are restricted to that
> group.
> 
> >Hope this helps...
> >Regards,
> >Johan
> 
> 
> Johan -
> This TOTALLY helps me.  Thank you.
> What I want to do is to allow r/w access to only FP-Development. So, if
> I understand what you are telling me above, I should only have one line
> and that should be:
> <LimitExcept GET PROPFIND OPTIONS REPORT>
>       Require ldap-group CN=PRJ FP-
> Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> </LimitExcept>
> And this is saying limit read access to everyone except FP-Development,
> correct?

Close, but not exactly accurate. It's really saying "Limit write access (i.e. everything except the read actions GET, PROPFIND, OPTIONS and REPORT) to the group FP-Development". It doesn't impose any additional restrictions on the read actions (get, propfind, ...). Those fall back on any restrictions that you've already put in your Location block, as general restrictions (in this case "Require valid-user", i.e. you have to be authenticated to be able to read).

> I checked out the url that you sent; thank you.  I didn't see anything
> about "GET, PROPFIND...etc". So I am not sure if my above line is
> allowing read and write or just read.

It's saying nothing about read (that's done by the Require valid-user in the Location block), only restricting write access to that group.

GET, PROPFIND, ... are HTTP and WEBDAV "methods". You'd have to read some articles or rfc's to get to know them thoroughly, and to find out how SVN uses them. Anyway, in this case all you need to know is that those 4 methods are the "read" ones for SVN. And by limiting all the others (the "non-read"=write ones), you effectively limit write access. It's more or less described (with an example Apache config) in the SVN book:
http://svnbook.red-bean.com/en/1.5/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.blanket

Maybe one more caveat you might run into: your ldap-group has a space in it. I'm not exactly sure, but you might have to put it between double quotes after the "Require ldap-group" directive to make it work. Some experimentation will help you figure that out. If it doesn't work as expected, be sure to take a look at the apache error logs to find out why...

(oh and one more thing: best to keep the list in cc when replying, so others can follow in case anyone's still interested)

Regards,
Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362757

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Limiting permission's

Posted by Johan Corveleyn <jo...@uz.kuleuven.ac.be>.
> -----Oorspronkelijk bericht-----
> Van: Patricia A Moss [mailto:pmoss4@csc.com]
> Verzonden: donderdag 11 juni 2009 19:08
> Aan: users@subversion.tigris.org
> Onderwerp: RE: Limiting permission's
> 
> 
> Can anyone lend an understanding to this
> 
> Here is my config file.
> 
> <AuthnProviderAlias ldap ldap-FCGNET>
>       AuthLDAPBindDN FCGNET\svnaccount
>       AuthLDAPBindPassword svnpasswd
>       AuthLDAPURL
> ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectC
> ategory=person)
> </AuthnProviderAlias>
> 
> <Location /zorch>
> dav svn
> SVNPath /disk01/home/zorch
> AuthType Basic
> AuthBasicProvider ldap-FCGNET
> AuthName "CSC Subversion Repository"
> AuthzLDAPAuthoritative off
> Require valid-user
> ##
> # Allows group to have read access to the repository
> <Limit GET PROPFIND OPTIONS REPORT>
>       Require ldap-group CN=PRJ FP-
> Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> </Limit>
> # Allows group to have write access to the repository
> <LimitExcept GET PROPFIND OPTIONS REPORT>
>       Require ldap-group CN=PRJ FP-
> Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
> </LimitExcept>
> </Location>
> 
> It is my understanding that "<Limit GET PROPFIND OPTIONS REPORT>" and
> <LimitExcept GET PROPFIND OPTIONS REPORT>" are used to distiguish
> between read only permission's and read/write permissions. Is this
> correct?
> 
> Do I need the "AuthBasicProvider ldap-FCGNET" entry?
> It seems that with it included ANY FCGNET account has access to the
> repository.
> 
> Also, I was under the impression that the "Require ldap-user " entry
> was what would need to be added to give a single user access to the
> repository. However, when I include the entry I still do not have
> access to the repository.

A bit late to help maybe, but nonetheless ...

I think you misunderstand the Limit and LimitExcept directives. These are Apache directives, and you can find what they mean at http://httpd.apache.org/docs/2.2/. They can be used to limit access (read/write) for groups of people to the repository as a whole (you can't use them to do "path-based authorization")

You have to understand that the HTTP (WEBDAV) methods GET, OPTIONS, PROPFIND and REPORT are the ones that SVN uses to read stuff. To write stuff it also needs access to other methods, like PUT, DELETE, ...

The Limit section literally says: apply the underlying restrictions to the listed methods.
The LimitExcept section literally says: apply the underlying restrictions to any http method, *except* to the listed methods.

The way you have it configured, you really say:
- restrict access to SVN's read methods to group CN=PRJ FP-Development,...
- restrict access to all other methods to that same group

That's why the post of Jason Malinowski is correct: you could just as well put the restriction of this group in the Location block itself.

So I guess in the end, I don't understand what you're trying to do, and what is going wrong (not as expected).
If you want everyone to have read access, but only your special group to have write access, you should just remove the "Limit" block from the config sample you posted. The "LimitExcept" block with the "Require ldap-group" will make sure that all write methods (i.e. all of them except get, propfind, options and report) are restricted to that group.

Hope this helps...
Regards,
Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362647

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Limiting permission's

Posted by Geir Engebakken <ge...@edb.com>.
I guess Collabnet itself supplies consultancy support on a payment basis?

Btw have you looked at these :

http://blogs.open.collab.net/svn/2009/03/subversion-with-apache-and-ldap-updated.html


Especially this one, where LDAP groups are being used to limit access :

http://www.thoughtspark.org/node/26


Geir
From: Patricia A Moss [mailto:pmoss4@csc.com]
Sent: 15. juni 2009 15:21
To: Patricia A Moss
Cc: users@subversion.tigris.org
Subject: RE: Limiting permission's


Does anyone know of any other means by which I can get support with Subversion?  This list doesn't seem to be of much help.
I've been googling, but can not find a solution.

PATI MOSS
System Engineer Sr. Professional
CSC



Patricia A Moss/GIS/CSC@CSC

06/12/2009 07:02 AM

To

users@subversion.tigris.org

cc

Subject

RE: Limiting permission's








Can someone please help me to resolve the issue of limiting access to a single group and/or user to the repository?


PATI MOSS
System Engineer Sr. Professional
CSC

Patricia A Moss/GIS/CSC@CSC

06/11/2009 01:07 PM


To

users@subversion.tigris.org

cc

Subject

RE: Limiting permission's









Can anyone lend an understanding to this

Here is my config file.

<AuthnProviderAlias ldap ldap-FCGNET>
    AuthLDAPBindDN FCGNET\svnaccount
    AuthLDAPBindPassword svnpasswd
    AuthLDAPURL ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectCategory=person)
</AuthnProviderAlias>

<Location /zorch>
dav svn
SVNPath /disk01/home/zorch
AuthType Basic
AuthBasicProvider ldap-FCGNET
AuthName "CSC Subversion Repository"
AuthzLDAPAuthoritative off
Require valid-user
##
# Allows group to have read access to the repository
<Limit GET PROPFIND OPTIONS REPORT>
    Require ldap-group CN=PRJ FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
</Limit>
# Allows group to have write access to the repository
<LimitExcept GET PROPFIND OPTIONS REPORT>
    Require ldap-group CN=PRJ FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com
</LimitExcept>
</Location>

It is my understanding that "<Limit GET PROPFIND OPTIONS REPORT>" and <LimitExcept GET PROPFIND OPTIONS REPORT>" are used to distiguish between read only permission's and read/write permissions. Is this correct?

Do I need the "AuthBasicProvider ldap-FCGNET" entry?
It seems that with it included ANY FCGNET account has access to the repository.

Also, I was under the impression that the "Require ldap-user " entry was what would need to be added to give a single user access to the repository. However, when I include the entry I still do not have access to the repository.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362210

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
There are a couple of reasons.
1. There are several hundred users, between the three groups, that would 
need to be manually added. Then each addition would need to be manually 
added.
2. We are trying to use LDAP/AD to limit the manual administrator work, as 
specified above.


PATI MOSS
System Engineer Sr. Professional
CSC





Olivier Sannier <ob...@free.fr> 
06/15/2009 09:50 AM

To
Patricia A Moss/GIS/CSC@CSC
cc
users@subversion.tigris.org
Subject
Re: Limiting permission's






Why not use the default behaviour that is to use the svnaccess file like 
this:

 AuthzSVNAccessFile "path/to/file/svn_access.txt"

This way you can put whatever you want in this, as explained in the book 
here :

http://svnbook.red-bean.com/en/1.5/svn.serverconfig.pathbasedauthz.html

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362188

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
You are correct.


PATI MOSS
System Engineer Sr. Professional
CSC





Radomir Zoltowski <ra...@s3group.com> 
06/15/2009 10:07 AM

To
Olivier Sannier <ob...@free.fr>
cc
Patricia A Moss/GIS/CSC@CSC, users@subversion.tigris.org
Subject
Re: Limiting permission's






AuthLDAPBindDN FCGNET\svnaccount

line makes me think that this is an Active Directory, isn't it?

R.


Olivier Sannier wrote:
> Why not use the default behaviour that is to use the svnaccess file like 

> this:
>
>  AuthzSVNAccessFile "path/to/file/svn_access.txt"
>
> This way you can put whatever you want in this, as explained in the book 

> here :
>
> http://svnbook.red-bean.com/en/1.5/svn.serverconfig.pathbasedauthz.html
>
> ------------------------------------------------------
> 
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362179

>
> To unsubscribe from this discussion, e-mail: 
[users-unsubscribe@subversion.tigris.org].
> 

The information contained in this e-mail and in any attachments is 
confidential and is designated solely for the attention of the intended 
recipient(s). If you are not an intended recipient, you must not use, 
disclose, copy, distribute or retain this e-mail or any part thereof. If 
you have received this e-mail in error, please notify the sender by return 
e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications@s3group.com.
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362195

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Limiting permission's

Posted by Radomir Zoltowski <ra...@s3group.com>.
AuthLDAPBindDN FCGNET\svnaccount

line makes me think that this is an Active Directory, isn't it?

R.


Olivier Sannier wrote:
> Why not use the default behaviour that is to use the svnaccess file like 
> this:
>
>  AuthzSVNAccessFile "path/to/file/svn_access.txt"
>
> This way you can put whatever you want in this, as explained in the book 
> here :
>
> http://svnbook.red-bean.com/en/1.5/svn.serverconfig.pathbasedauthz.html
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362179
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>   

The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications@s3group.com.
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362194

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Limiting permission's

Posted by Olivier Sannier <ob...@free.fr>.
Why not use the default behaviour that is to use the svnaccess file like 
this:

 AuthzSVNAccessFile "path/to/file/svn_access.txt"

This way you can put whatever you want in this, as explained in the book 
here :

http://svnbook.red-bean.com/en/1.5/svn.serverconfig.pathbasedauthz.html

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362179

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
Does anyone know of any other means by which I can get support with 
Subversion?  This list doesn't seem to be of much help.
I've been googling, but can not find a solution.

PATI MOSS
System Engineer Sr. Professional
CSC





Patricia A Moss/GIS/CSC@CSC 
06/12/2009 07:02 AM

To
users@subversion.tigris.org
cc

Subject
RE: Limiting permission's







Can someone please help me to resolve the issue of limiting access to a 
single group and/or user to the repository? 


PATI MOSS
System Engineer Sr. Professional
CSC



Patricia A Moss/GIS/CSC@CSC 
06/11/2009 01:07 PM 


To
users@subversion.tigris.org 
cc

Subject
RE: Limiting permission's









Can anyone lend an understanding to this 

Here is my config file. 

<AuthnProviderAlias ldap ldap-FCGNET> 
     AuthLDAPBindDN FCGNET\svnaccount 
     AuthLDAPBindPassword svnpasswd 
     AuthLDAPURL 
ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectCategory=person) 

</AuthnProviderAlias> 

<Location /zorch> 
dav svn 
SVNPath /disk01/home/zorch 
AuthType Basic 
AuthBasicProvider ldap-FCGNET 
AuthName "CSC Subversion Repository" 
AuthzLDAPAuthoritative off 
Require valid-user 
## 
# Allows group to have read access to the repository 
<Limit GET PROPFIND OPTIONS REPORT> 
     Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</Limit> 
# Allows group to have write access to the repository 
<LimitExcept GET PROPFIND OPTIONS REPORT> 
     Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</LimitExcept> 
</Location> 

It is my understanding that "<Limit GET PROPFIND OPTIONS REPORT>" and 
<LimitExcept GET PROPFIND OPTIONS REPORT>" are used to distiguish between 
read only permission's and read/write permissions. Is this correct? 

Do I need the "AuthBasicProvider ldap-FCGNET" entry? 
It seems that with it included ANY FCGNET account has access to the 
repository. 
 
Also, I was under the impression that the "Require ldap-user " entry was 
what would need to be added to give a single user access to the 
repository. However, when I include the entry I still do not have access 
to the repository.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362171

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
Can someone please help me to resolve the issue of limiting access to a 
single group and/or user to the repository?


PATI MOSS
System Engineer Sr. Professional
CSC




Patricia A Moss/GIS/CSC@CSC 
06/11/2009 01:07 PM

To
users@subversion.tigris.org
cc

Subject
RE: Limiting permission's







Can anyone lend an understanding to this 

Here is my config file. 

<AuthnProviderAlias ldap ldap-FCGNET> 
      AuthLDAPBindDN FCGNET\svnaccount 
      AuthLDAPBindPassword svnpasswd 
      AuthLDAPURL 
ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectCategory=person) 

</AuthnProviderAlias> 

<Location /zorch> 
dav svn 
SVNPath /disk01/home/zorch 
AuthType Basic 
AuthBasicProvider ldap-FCGNET 
AuthName "CSC Subversion Repository" 
AuthzLDAPAuthoritative off 
Require valid-user 
## 
# Allows group to have read access to the repository 
<Limit GET PROPFIND OPTIONS REPORT> 
      Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</Limit> 
# Allows group to have write access to the repository 
<LimitExcept GET PROPFIND OPTIONS REPORT> 
      Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</LimitExcept> 
</Location> 

It is my understanding that "<Limit GET PROPFIND OPTIONS REPORT>" and 
<LimitExcept GET PROPFIND OPTIONS REPORT>" are used to distiguish between 
read only permission's and read/write permissions. Is this correct? 

Do I need the "AuthBasicProvider ldap-FCGNET" entry? 
It seems that with it included ANY FCGNET account has access to the 
repository. 
  
Also, I was under the impression that the "Require ldap-user " entry was 
what would need to be added to give a single user access to the 
repository. However, when I include the entry I still do not have access 
to the repository.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361569

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
Can anyone lend an understanding to this

Here is my config file. 

<AuthnProviderAlias ldap ldap-FCGNET> 
       AuthLDAPBindDN FCGNET\svnaccount 
       AuthLDAPBindPassword svnpasswd 
       AuthLDAPURL 
ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub?(objectCategory=person) 

</AuthnProviderAlias>

<Location /zorch> 
dav svn 
SVNPath /disk01/home/zorch 
AuthType Basic 
AuthBasicProvider ldap-FCGNET 
AuthName "CSC Subversion Repository" 
AuthzLDAPAuthoritative off 
Require valid-user 
## 
# Allows group to have read access to the repository 
<Limit GET PROPFIND OPTIONS REPORT> 
       Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</Limit> 
# Allows group to have write access to the repository 
<LimitExcept GET PROPFIND OPTIONS REPORT> 
       Require ldap-group CN=PRJ 
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</LimitExcept> 
</Location> 

It is my understanding that "<Limit GET PROPFIND OPTIONS REPORT>" and 
<LimitExcept GET PROPFIND OPTIONS REPORT>" are used to distiguish between 
read only permission's and read/write permissions. Is this correct?

Do I need the "AuthBasicProvider ldap-FCGNET" entry?
It seems that with it included ANY FCGNET account has access to the 
repository.
 
Also, I was under the impression that the "Require ldap-user " entry was 
what would need to be added to give a single user access to the 
repository. However, when I include the entry I still do not have access 
to the repository.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361380

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Patricia A Moss <pm...@csc.com>.
Jason,

How does that separate between groups that can read and groups that can 
read and write?
Also, those lines are already within my location block.  Thanks.

PATI MOSS
System Engineer Sr. Professional
CSC





Jason Malinowski <ja...@jason-m.com> 
06/10/2009 04:29 PM

To
Patricia A Moss/GIS/CSC@CSC, users@subversion.tigris.org
cc

Subject
RE: Limiting permission's






If you're just trying to restrict read and write to a single group in an
all-or-nothing approach, you should be able to skip the Limit stuff and
just simple do

Require valid-user
Require ldap-group CN=PRJ
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com

Inside the <Location> tag.

Jason Malinowski


-----Original Message-----
From: Patricia A Moss [mailto:pmoss4@csc.com] 
Sent: Wednesday, June 10, 2009 1:04 PM
To: users@subversion.tigris.org
Subject: Limiting permission's


I have Subversion version 1.7.0 installed and configured.  I am trying
to figure out how to limit access to a repository to a single group.
This is how my config file is set up. 

<AuthnProviderAlias ldap ldap-FCGNET> 
        AuthLDAPBindDN FCGNET\svnaccount 
        AuthLDAPBindPassword svnpasswd 
        AuthLDAPURL
ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub? 
(objectCategory=person) 
<Location /zorch> 
dav svn 
SVNPath /disk01/home/zorch 
AuthType Basic 
AuthBasicProvider ldap-FCGNET 
AuthName "CSC Subversion Repository" 
AuthzLDAPAuthoritative off 
Require valid-user 
## 
# Allows group to have read access to the repository 
<Limit GET PROPFIND OPTIONS REPORT> 
        Require ldap-group CN=PRJ
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</Limit> 
# Allows group to have write access to the repository 
<LimitExcept GET PROPFIND OPTIONS REPORT> 
        Require ldap-group CN=PRJ
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</LimitExcept> 
</Location> 

Do I need to have the "AuthBasicProvider ldap-FCGNET" line if I have
entries for "Limit" and "LimitExcept"? 
Are the "Limit" and "LimitExcept" entries the correct way to limit
access to a specific group only? 

Any help is appreciated.  Thank you 

PATI MOSS
System Engineer Sr. Professional
CSC



------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361067


To unsubscribe from this discussion, e-mail: 
[users-unsubscribe@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361227

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Limiting permission's

Posted by Jason Malinowski <ja...@jason-m.com>.
If you're just trying to restrict read and write to a single group in an
all-or-nothing approach, you should be able to skip the Limit stuff and
just simple do

Require valid-user
Require ldap-group CN=PRJ
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com

Inside the <Location> tag.

Jason Malinowski


-----Original Message-----
From: Patricia A Moss [mailto:pmoss4@csc.com] 
Sent: Wednesday, June 10, 2009 1:04 PM
To: users@subversion.tigris.org
Subject: Limiting permission's


I have Subversion version 1.7.0 installed and configured.  I am trying
to figure out how to limit access to a repository to a single group.
This is how my config file is set up. 

<AuthnProviderAlias ldap ldap-FCGNET> 
        AuthLDAPBindDN FCGNET\svnaccount 
        AuthLDAPBindPassword svnpasswd 
        AuthLDAPURL
ldap://servername:3268/DC=domainname,DC=com?samAccountName?sub? 
(objectCategory=person) 
<Location /zorch> 
dav svn 
SVNPath /disk01/home/zorch 
AuthType Basic 
AuthBasicProvider ldap-FCGNET 
AuthName "CSC Subversion Repository" 
AuthzLDAPAuthoritative off 
Require valid-user 
## 
# Allows group to have read access to the repository 
<Limit GET PROPFIND OPTIONS REPORT> 
        Require ldap-group CN=PRJ
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</Limit> 
# Allows group to have write access to the repository 
<LimitExcept GET PROPFIND OPTIONS REPORT> 
        Require ldap-group CN=PRJ
FP-Development,OU=U.S.,OU=Groups,DC=domainname,DC=com 
</LimitExcept> 
</Location> 

Do I need to have the "AuthBasicProvider ldap-FCGNET" line if I have
entries for "Limit" and "LimitExcept"? 
Are the "Limit" and "LimitExcept" entries the correct way to limit
access to a specific group only? 

Any help is appreciated.  Thank you 

PATI MOSS
System Engineer Sr. Professional
CSC

575 E. Swedesford Road, Suite 300, Wayne, PA 19464
GIS | p: 610.989.7105 | f: 610.989.7100 | pmoss4@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC
to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of
e-mail for such purpose.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361067

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].