如何登录WebSVN

发布于 2024-09-16 01:08:27 字数 792 浏览 3 评论 0原文

有人可以告诉我如何在 Ubuntu 9.1 中启用 WebSVN 的登录功能吗?

我的任务是为我的团队创建一个 SVN,以下是我点击的链接之一,它帮助我成功设置了我的第一个存储库。

http://agilior.pt/blogs/pedro。 rainho/archive/2010/02/06/11698.aspx

但是安装 WebSVN 后,我可以看到我的存储库,但没有提示身份验证。

我的设置和上面提到的网站的区别在于我的httpd.conf(该网站使用dav_svn.conf)。

我的 httpd.conf 内容:

<Location /svn2>
    DAV svn
    SVNParentPath /home/svn2
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile /etc/apache2/passwd
    AuthzSVNAccessFile /etc/apache2/dav_svn.authz
    Require valid-user
</Location>

我的 dav_svn.authz 内容:

[myproject:/]
    xxx = r

很多 thks~ =)

Can some one tell me how to do I enable LOGIN function for WebSVN in Ubuntu 9.1?

I was tasked to create a SVN for my team, and the following is one of the link i followed which helped me successfully setup my first repos.

http://agilior.pt/blogs/pedro.rainho/archive/2010/02/06/11698.aspx

But after installing WebSVN, i can see my repos but no authentication was prompted.

The difference between my settings and the above mentioned website are in my httpd.conf (the website uses dav_svn.conf).

my httpd.conf content:

<Location /svn2>
    DAV svn
    SVNParentPath /home/svn2
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile /etc/apache2/passwd
    AuthzSVNAccessFile /etc/apache2/dav_svn.authz
    Require valid-user
</Location>

my dav_svn.authz content:

[myproject:/]
    xxx = r

Many thks~ =)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望笑 2024-09-23 01:08:27

最简单的方法是将 websvn 设置为使用与 svn 已使用的相同的身份验证文件。显然,这取决于您的用户是谁,以及您是否想要与前端相同的存储库权限。我这样做是为了在添加/删除开发人员时不必弄乱多个身份验证文件:

    <Directory /var/www/websvn/>
         AuthType SSPI
         SSPIAuth On
         SSPIAuthoritative On
         SSPIDomain "Subversion repository"
         SSPIOfferBasic On
         Require valid-user
    </Directory>

Directory 指令中的尾部斜杠始终是一个症结点 - 您必须包含一个。现在,您需要编辑 websvn config.php 文件,将 websvn 指向现有的 dav_svn.authz 文件:

$config->useAuthenticationFile("/etc/apache2/dav_svn.authz");

如果您希望使用数据库、活动目录或单独的身份验证文件来管理访问,您还可以使用其他身份验证提供程序。请注意,您需要为该类型的设置使用正确的 AuthType 指令,并且可以省略对 config.php 的编辑。

The easiest way is to set websvn to use the same auth file as you're already using for svn. This will depend on who your users are and whether you want the same permissions for the repository as the front-end, obviously. I do it this way so as to not have to mess with multiple auth files when we add/remove developers:

    <Directory /var/www/websvn/>
         AuthType SSPI
         SSPIAuth On
         SSPIAuthoritative On
         SSPIDomain "Subversion repository"
         SSPIOfferBasic On
         Require valid-user
    </Directory>

That trailing slash in the Directory directive has always been a sticking-point - you must include one. Now you'll need to edit your websvn config.php file to point websvn to your existing dav_svn.authz file:

$config->useAuthenticationFile("/etc/apache2/dav_svn.authz");

You can also use other auth providers if you'd rather use a database, active directory or separate auth file to govern access. Note that you will need to use the proper AuthType directive for that type of setup and you can omit the edit to config.php.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文