我已经设置了Ubuntu 10.04的颠覆,但无法使authentication工作。 我相信我所有的configuration文件安装正确,但我不断收到提示input凭据在SVN CHECKOUT。 就像apache2与svnserve交谈一样。 如果我允许匿名访问结帐工作正常。
有没有人知道是否有一个颠覆和10.04已知的问题,或看到我的configuration错误?
下面是我的configuration:
# fresh install of Ubuntu 10.04 LTS 32bit sudo apt-get install apache2 apache2-utils -y sudo apt-get install subversion libapache2-svn subversion-tools -y sudo mkdir /svn sudo svnadmin create /svn/DataTeam sudo svnadmin create /svn/ReportingTeam #Setup the svn config file sudo vi /etc/apache2/mods-available/dav_svn.conf #replace file with the following. <Location /svn> DAV svn SVNParentPath /svn/ AuthType Basic AuthName "Subversion Server" AuthUserFile /etc/apache2/dav_svn.passwd Require valid-user AuthzSVNAccessFile /etc/apache2/svn_acl </Location> sudo touch /etc/apache2/svn_acl #replace file with the following. [groups] dba_group = tom, jerry report_group = tom [DataTeam:/] @dba_group = rw [ReportingTeam:/] @report_group = rw #Start/Stop subversion automatically sudo /etc/init.d/apache2 restart cd /etc/init.d/ sudo touch subversion sudo cat 'svnserve -d -r /svn' > svnserve sudo cat '/etc/init.d/apache2 restart' >> svnserve sudo chmod +x svnserve sudo update-rc.d svnserve defaults #Add svn users sudo htpasswd -cpb /etc/apache2/dav_svn.passwd tom tom sudo htpasswd -pb /etc/apache2/dav_svn.passwd jerry jerry #Test by performing a checkout sudo svnserve -d -r /svn sudo /etc/init.d/apache2 restart svn checkout http://127.0.0.1/svn/DataTeam /tmp/DataTeam
你为什么同时使用svnserve和apache ? 你可以使用,但使用两者都是惹麻烦。
要通过http服务颠覆,你需要在Apache中启用mod_dav和mod_svn。
由于它是DAV,你会想检查Apache的错误日志auth失败。 你能用你的浏览器正确validation吗?