VisualSVN - 设置存储库并设置访问权限以使用基本 Windows 身份验证 - 登录结果为 403? [英] VisualSVN - set up repository and set access to use Basic Windows Authentication - login results in 403?

查看:23
本文介绍了VisualSVN - 设置存储库并设置访问权限以使用基本 Windows 身份验证 - 登录结果为 403?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 VisualSVN 服务器设置了我的存储库,导入了一个现有的存储库,并设置了用户访问权限以使用 Windows 身份验证(基本).然后我尝试访问创建的存储库的 URL;输入我的用户名和密码后,我立即收到 403 Forbidden 通知(即使我使用 VisualSVN 服务器管理器控制台为自己指定了读/写权限).

I've set up my repository using VisualSVN Server, imported an existing repostiory, and set the user access rights to use Windows Authentication (Basic). I then try to access the URL of the created repository; after entering my username and password, I am immediately greeted with a 403 Forbidden notice (even though I have specified both Read / Write privileges to myself using VisualSVN Server Manager console).

我尝试过使用 VisualSVN 自己的用户名/密码组合,并且成功了.只有在通过 Active Directory 进行身份验证并正确输入用户名和密码时,我才会收到此 403(当然,如果我输入错误,则会再次提示我输入用户名和密码).

I've tried using VisualSVN's own username/password combo, and this works successfully. It's only when authenticating via Active Directory, and entering the username and password correctly, that I get this 403 (of course, if I enter it incorrectly, I am prompted for a username and password once more).

谁能指出我正确的方向?干杯

Can anyone point me in the right direction? Cheers

推荐答案

我猜你在安装 VisualSVN Server 时选择了 Subversion 身份验证和授权类型,然后切换到基本 Windows 身份验证.在这种情况下,VisualSVN Server 不会自动创建需要在每个存储库的/conf 目录VisualSVN-WinAuthz.ini"中的文件.这是目前出于安全原因设计的,但该行为将在未来版本中得到改进.

I guess that when you installed VisualSVN Server you selected Subversion authentication and authorization type and then later switched to Basic Windows authentication. In such case VisualSVN Server does not automatically create a file required to be in each repository's /conf directory "VisualSVN-WinAuthz.ini". This is currently by design for security reasons but the behavior is going to be improved in future releases.

所以我建议你查看 VisualSVN 服务器的事件日志:

So I suggest you to check VisualSVN Server's eventlog:

启动eventvwr.msc |应用程序和服务日志 |VisualSVN 服务器日志.

Start eventvwr.msc | Applications and Services Logs | VisualSVN Server log.

您在那里看到什么错误事件?

如果错误是

 Failed to load the AuthzVisualSVNReposRelativeAccessFile: Can't open
 file 'C:\Repositories\MyRepo\conf\VisualSVN-WinAuthz.ini': The system
 cannot find the file specified. (OS 2)

然后您必须创建包含授权规则列表的文件.为此,您可以转到 VisualSVN 服务器管理器控制台中存储库的安全属性,然后从列表中添加/删除任何帐户.这将强制 VisualSVN 服务器创建一个空的授权文件,全局权限将开始正常工作.

Then you have to create the file which contains the list of authorization rules. To do this you can go to Security properties of a repository in VisualSVN Server Manager console and add / remove any account from the list. This will force VisualSVN Server to create an empty authorization file and global permissions will start working properly.

这篇关于VisualSVN - 设置存储库并设置访问权限以使用基本 Windows 身份验证 - 登录结果为 403?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆