I would like to create a DAV SVN server with autoversioning that has no access control of any kind. I experimented with several variations on this, but every one of them runs into this error in the end:
"Anonymous lock creation is not allowed."
So, as a fallback option I would like to configure my SVN Location to have default credentials. Is this possible? Is there a better way to do what I'm trying to do?
This is a bit of a hack, and there may be a better way, but...
The mod_auth_tkt module is a single sign-on solution for Apache. You don't care about this for your application, but what is of interest is the support for "guest" logins. For users without an authentication cookie (which for you will be all of them), you can assign a default identity. The configuration would look something like this:
This would authenticate everyone as the "guest" user, which ought to be make the DAV stuff happy. NB: Completely untested! I use
mod_auth_tkt
all the time, but I haven't tried this particular configuration.If you want to give full access to your repository to ALL users, don't include security or authentication directives in your apache configuration.
If you're publishing your repository at www.example.com/svn, you may use something like this
Since authentication is disabled all commits will be done by the apache user (normally www-data or apache)
I hope this helps. Regards.