webSVN doesn't ask for authentication for using a repository

拈花ヽ惹草 提交于 2019-12-11 15:27:58

问题


I just setup the SVN server on my local network.its working fine as expected but to use SVN more handy way i just configured webSVN. but after configuring webSVN's config.php file its shows me all the repositories and its not asking me for any authentication like user name and password. what i have in my /etc/httpd/conf.d/subversion.conf is

<Location /mysvn>
DAV svn
      SVNParentPath /var/www/html/svn
         AuthzSVNAccessFile /etc/svn-acl-conf
         AuthType Basic
         AuthName "Subversion repos"
         AuthUserFile /etc/svn-auth-conf
         Require valid-user
         SVNListParentPath on
</Location>

I have just uncommented this line in my webvpn's config.php file

 $config->parentPath('/var/www/html/svn');

I am using a single user access control file to manage the permission of different repositories.

if i add following line in my config.php file then the error which i am getting is 'You do not have the necessary permissions to view this content.'

$config->useAuthenticationFile('/etc/svn-acl-conf'); // Global access file

How do i resolve this permission issue, what configuration i need to do to fix this? give me some hint or idea to solve my issue.

Thanks & Regards


回答1:


Try the following:

Comment the line useAuthenticationFile and uncomment the next line:

$config->addRepository('My Repo', 'http://x.x.x.x/svn/repository', NULL, 'username', 'password');

username and password is a svn authentication.

And password protect the main directory by ht-access.



来源:https://stackoverflow.com/questions/13541629/websvn-doesnt-ask-for-authentication-for-using-a-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!