Websvn Authentication DS212+

Questions regarding Subversion Server may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.
I'm New!
I'm New!
Posts: 4
Joined: Sat Apr 14, 2012 3:55 am

Websvn Authentication DS212+

Postby KingXs » Sat Apr 14, 2012 4:19 am


I am pretty new to Synology Diskstation and got a problem in setting up authentication for the DiskStation 212+.
I got SVN up and running and I even managed to get WebSVN to running after hours of reading through guides and Google(were some steps I somehow didn't understand at first)

Now my problem is that I don't want random people accessing WebSVN.
If I got this right then WebSVN is able to use the passwd as an database for logging into WebSVN with an authentication.
I read about using .htaccess with htpasswd(generated by a generator) but this doesn't seem to fit in the idea of using the existing SVN userdatabase stored in passwd.

My setup is /volume1/svn/project/ for the svn and /volume1/web/websvn/ for the website.

In /volume1/svn/project/conf/authz is where I can use restriction for the svn users.
In /volume1/web/websvn/include/config.php contains the settings for websvn

I am also not very sure which settings to add, for the moment I have

Code: Select all

for accessing svn

Code: Select all

here I am not sure if I should take the remote version of this command as I forwarded my ports on my router to access
my NAS outside my home-network.

Code: Select all

this one I am not sure again if I need to put this or not

Code: Select all

and here, if I got this right then I have to use the authz file as authentication file

When accessing Websvn with only this I get an error saying
Unable to read authentication file "/volume1/svn/project/conf/authz"

I am really confused, I am writing this at 5 in the morning because I was trying for 4 hours already to understand this but I simply couldn't proceed anymore and therefor I arrived here hoping for some help regarding this problem.
Someone who can explain me where I did wrong in my thinking or what steps I missed would be really nice.
Posts: 12
Joined: Tue Apr 26, 2011 11:45 am

Re: Websvn Authentication DS212+

Postby ncc74656 » Fri Jul 06, 2012 11:35 pm

I'm stuck with the same problem.
I'm New!
I'm New!
Posts: 2
Joined: Mon Jan 28, 2013 11:43 pm

Re: Websvn Authentication DS212+

Postby mihailupu » Mon Jan 28, 2013 11:54 pm

in case this is still an issue...
i've solved this by placing the folder of the authz file in the open_basedir paths (in php.ini):
in my case, this links to the user-setting.ini config file.
edit it with
sudo vi /usr/syno/etc/php/user-setting.ini
by adding the path of the folder containing the authz file after all the existing ones.
I'm New!
I'm New!
Posts: 5
Joined: Thu Apr 25, 2013 8:24 pm

Re: Websvn Authentication DS212+

Postby rickdeez » Wed Mar 19, 2014 9:33 pm

Great info!

I'm trying to replicate these steps on DSM 5 but getting stuck.

Can some one chime in with what I need to change?

Or maybe suggest an easier way to password protect the http://diskstation/websvn url


edit : Solved - USED .htaccess file instead. I guess there is a reason that is the preferred method, it's to the point and works well.

thanks lacibaci!

Return to “Subversion Server”

Who is online

Users browsing this forum: No registered users and 1 guest