Content
Openproject and SVN on same machine
Added by Christoph Heckmann over 9 years ago
Hi all!
I’ve currently problems in understanding how the SVN configuration works with openproject.
On my Ubuntu 14.x system I’ve first installed SVN Server. User management is done via “AuthUserFile /etc/apache2/dav_svn.passwd”.
Everything works fine.
After installing openproject I’ve no access to the reop anymore.
I guess this is due to vhost file of openproject (/etc/openproject/addons/apache2/includes/vhost/svn_dav.conf).
Once I’ve create a project in openproject, the repo on the server get created automatically as well.
So far so good. Unfortunately I cannot connect anymore with my SVN username+password.
Which one must I choose to get access?
Is openproject using the passwords from the openproject users?
Thanks for support & best regards
Christoph
Replies (1)
Hi Christoph,
when using the packager-based installation, the wizard configures Apache with
mod_svn
for you.This is the included vhost configuration you mentioned.
In this configuration, it uses the Sys API to access OpenProject locally and request for authorization based on the user credentials.
Thus, in order to access the repository through apache, you:
You can ensure that the Sys API is enabled by checking the setting at
Administration > Settings > Repositories > Enable WS / Repository web service
.The API key shown in below that setting must be identical to the one in the vhost configuration. Packager should have done that already for you.
You can also override the behavior used in that vhost, for example to re-establish your file-based authorization.
Note however, that this would be independent of the access control you define in OpenProject.
For more information, see this document:
https://github.com/opf/openproject/blob/release/4.2/doc/subversion_and_git_integration.md
If you have remarks regarding the documentation of repository integration, please let me know!
Best regards,
Oliver