I'm trying to set up patch based authorization in SVN using LDAP and AuthzSVNAccess and my initial test was just to give read/write access to everyone in order to check that the config was working correctly.
I have my Apache conf as:
<Location /svn/>
AuthName "Login with LDAP"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL ldap://XXX.com:389/ou=XXX,dc=XXX,dc=XXX,dc=XXX?uid
SVNParentPath /var/www/svn
AuthzSVNAccessFile /var/www/svn/authorization.access
Satisfy Any
require valid-user
</Location>
I have various SVN repositories that live directly under /var/www/svn.
And authorization.access looks like this:
[/]
* = rw
This is definitely taking effect, if I were to change it to * = r
then I can no longer commit so I'm happy that Apache is using the file.
However, Whilst I can checkout, commit, repo-browse, update I can no longer svn lock
any files I get the error:
Error: Server sent unexpected return value (401 Authorization Required) in response to LOCK request for '/svn/MyRepo/MyFile.txt'.
Does any one know if there needs to be additional configuration for svn lock
and AuthzSVN? Is there another permission other than rw
that I may need? Or perhaps something wrong in my current config.
Thanks, Mike.