无法初始化 SASL 库 [英] Could not initilize the SASL library

查看:38
本文介绍了无法初始化 SASL 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照教程此处,我安装了 Subversion 1.5.6(Setup-Subversion-1.5.6.msi 此处)在 Windows Server 上2003 SP2.我能够使用命令行创建一个存储库 (C:\SVN\Repository),没问题.而且我可以将其配置为服务,但是当我尝试启动该服务时,它不会启动.我想我会尝试在没有 --service 参数的情况下手动运行 svnserve,但它出错了.我正在尝试:

Following the tutorial here, I installed Subversion 1.5.6 (Setup-Subversion-1.5.6.msi here) on Windows Server 2003 SP2. I was able to create a repository (C:\SVN\Repository) using the command line, no problem. And I can configure it as a service, but when I try to start the service, it won't start. I figured I would try to run svnserve manually without the --service argument, but it errors. I am trying:

svnserve -r c:\svn\repository

svnserve -r c:\svn\repository

...我得到的错误是:

...and the error I get is:

svn:无法初始化 SASL 库
svn:通用失败

svn: Could not initialize the SASL library
svn: generic failure

其他可能相关的信息:我通过取消注释 anon-access 和 auth-access 行来编辑 svnserve.conf 文件:

Other Information that might be pertinent: I edited the svnserve.conf file by uncommenting the anon-access and auth-access lines:

匿名访问=无
身份验证访问 = 写入

anon-access = none
auth-access = write

我也取消了 password-db 行的注释:

I also uncommented the password-db line:

password-db = passwd

password-db = passwd

我使用远程桌面登录到该框,并且我在服务器上以管理员身份登录.有什么想法吗?

I am logged into the box using remote desktop, and I am logged in as an administrator on the server. Any ideas?

推荐答案

1) SASL/svnserve 配置并不总是一个简单的步骤,它是 在此处详细描述.总结如下:

1) The SASL / svnserve configuration is not always an easy step, and is described in details here. Here is a summary:

  • 不要忘记检查以下必须指向您的配置文件的注册表项:

  • Don't forget to check the following registry key which must point to your configuration file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Carnegie Mellon\Project Cyrus\SASL Library]
"ConfFile"="c:\\svn\\etc\\conf"

目录 C:\svn\etc\conf 应该包含 svn.conf 文件(或者 subversion.conf 应该包含也可以工作),其中包含例如:

The directory C:\svn\etc\conf should contain the svn.conf file (or subversion.conf should work too), that contains for example:

pwcheck_method:辅助道具
auxprop_plugin: sasldb
sasldb_path: c:\svn\etc\conf\saslpasswd
mech_list:ANONYMOUS DIGEST-MD5

最后,必须为与您的存储库中声明的域相同的域创建 saslpasswd 密码文件,对应于下面的 .检查该部分的 saslpasswd2.exe 命令用法.

Finally, the saslpasswd password file will have to be created for the same domain as declared in your repository, corresponding to the <domain> below. Check the saslpasswd2.exe command usage for that part.

在每个仓库的 conf 子目录中,svnserve.conf 文件需要以下几行(替换 >):

In each repository, in the conf subdirectory, the svnserve.conf file needs the following lines (replace <domain>):

[一般]
authz-db =//./C:/svn/etc/conf/authz
realm = <域>
[sasl]
use-sasl = true

2) 过去我在 1.5 版左右使用 SASL 时遇到了一些问题,来自 tigris 的可执行文件是针对 Apache 编译的.通过安装Collabnet版本解决了这个问题.

2) I had some problems with SASL in the past around version 1.5, with executables from tigris compiled against Apache. It was solved by installing the Collabnet version instead.

请参阅此链接:http://www.open.collab.net/downloads/subversion/ 和旧版本:http://www.open.collab.net/downloads/subversion/svn1.5.html 但除非你有很好的理由不这样做,否则我会安装最新版本.安装程序将让您选择是要使用 Apache 还是 svnserve 服务器.

See this link: http://www.open.collab.net/downloads/subversion/ and for older versions: http://www.open.collab.net/downloads/subversion/svn1.5.html but unless you have a very good reason not to, I would install the latest version. The installer will let you choose whether you want to have an Apache or svnserve server.

这篇关于无法初始化 SASL 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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