Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Nov 08, 2008 1:16 pm 
Offline
Junior Member

Joined: Mon Oct 29, 2007 10:12 am
Posts: 33
I'm trying to protect a subversion repository, requiring a username/password to browse the repo, and requiring the user to be a member of the admin group to file any changes.

Guest user (read-only permissions) is 'user1', admin user (read-write permissions) is 'user2'. Both are defined in dav_svn.passwd file, but only user2 is defined in dav_svn.group, ie

# dav_svn.group
admin:user2

[httpd.conf]
Code:
<VirtualHost *:443>
  <Location /svn>
    DAV svn
    SVNPath /path/to/svn
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/apache2/dav_svn.passwd
    AuthGroupFile /etc/apache2/dav_svn.group
    Require valid-user

    <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require group admin
    </LimitExcept>
  </Location>
</VirtualHost>


Although attempts to acces the repo is greeted with the login box for both users, both users can commit changes to the repo, and the Apache access.log shows PUT, MERGE, CHECKOUT, DELETE, PROPPATCH, MKACTIVITY, etc entries for user1, who should not be able to do any of those things.

I tried putting 'Require valid-user' in a <Limit GET PROPFIND OPTIONS REPORT> block, but it didn't help.

It looks like the LimitExcept block is not taking effect, but I can't see where I might have mis-configured it. Any help appreciated.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group