SVN + SASL +活动目录:如何
我正在尝试设置 SVN 以针对 ActiveDirectory 进行身份验证。我知道如果您将 SVN 设置为使用 Apache 提供服务,这是可能的,但这样做会带来太多开销,并且 SVN 运行速度太慢。通过阅读 SVN 文档,听起来现在应该可以(因为 SASL 在 1.5 中集成到 SVN 中)配置 SVN 以针对 ActiveDirectory 进行身份验证,而无需使用 Apache。不幸的是,SVN 和 SASL 的文档非常通用,缺乏帮助其正常工作的细节。
有人得到这个工作吗?如果您可以提供一些示例配置文件或高级步骤来为我自己(以及可能的其他人)指明正确的方向,那将是一个巨大的帮助。
I'm trying to set up SVN to authenticate against an ActiveDirectory. I know this is possible if you set up SVN to be served using Apache, but doing so introduces too much overhead, and SVN runs too slow. From reading the SVN docs, it sounds like it should now be possible (since SASL was integrated into SVN in 1.5) to configure SVN to authenticate against ActiveDirectory without using Apache. Unfortunately the documentation from SVN and SASL is extremely generic, and lacks specifics to help get this working properly.
Has anyone gotten this working? It would be a huge help if you could provide some sample configuration files, or high-level steps to point myself (and likely others) in the right direction on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
启用 SASL 的 SVN(在 Debian v7 机器上),使用 Active Directory(在另一台服务器上)
请注意,我已经设置了 samba 和 winbind,其中包括 libsasl2-2,因此还获得了启动可执行文件以及 svnserve 和模块(svn plain 所需)或其他)机制来工作,(仅供参考)将它们放入 /usr/lib/x86_64-linux-gnu/sasl2/libplain.so):
将
START=no
更改为START= yes
,以及MECHANISMS="pam"
到MECHANISMS="ldap"
,以及THREADS=0
(不是 5),以及删除最后一行中/run
前面的/var
,使其变为OPTIONS="-c -m /run/saslauthd";
控制x,y,输入添加以下内容(注意:您可能需要在dc=系列前面添加“ou=folder”):
运行
sudo testaslauthd -u usernamehere -p password
来测试ldap setup 和cat /var/log/auth.log
查看日志。将以下行添加到文件
/usr/lib/sasl2/svn.conf
:创建存储库:
假设之前有某种“svnadmin dump /data/repohere >/data/repohere.dump”
svnadmin 加载 /data/repohere
取消注释(删除前导井号和前导空格);并且,修改 anon-access 和 authz-db (请注意,我将 authz 放在 /data 中,以便我的多个存储库共享它):
添加以下内容:
在启动时安排 svnserve (抱歉,找不到一个,所以手动制作一):
将DESC更改为“subversion server”,将NAME更改为“svnserve”,去掉DAEMON的“sbin”中的“s”(使其只是/bin/),将DAEMON_ARGS更改为“-d -r / data --log-file /var/log.svn.log"
测试你最喜欢的 svn 客户端(例如 TortoiseSVN)!
SVN with SASL enabled (on a Debian v7 box), using Active Directory (on another server)
note that I already setup samba and winbind, which included libsasl2-2 so also get the startup executable and svnserve and modules (needed for svn plain (or other) mechanism to work, which (just FYI) puts them in /usr/lib/x86_64-linux-gnu/sasl2/libplain.so):
change
START=no
toSTART=yes
, andMECHANISMS="pam"
toMECHANISMS="ldap"
, andTHREADS=0
(not 5), and remove the/var
in front of/run
from the last line so that it'sOPTIONS="-c -m /run/saslauthd";
control x, y, enterAdd the following (note: you may need an "ou=folder" in front of the dc= series):
Run
sudo testsaslauthd -u usernamehere -p password
to test the ldap setup andcat /var/log/auth.log
to see log.Add following lines to a file
/usr/lib/sasl2/svn.conf
:Create repository:
assuming some sort of previous "svnadmin dump /data/repohere >/data/repohere.dump"
svnadmin load /data/repohere
uncomment (remove the leading pound and the leading space); and, modify anon-access and authz-db (and note that I put authz in /data so than my multiple repos share it):
add the following:
to schedule svnserve on startup (sorry, couldn't find one, so manually make one):
change DESC to "subversion server", change NAME to "svnserve", take out the "s" in the "sbin" of DAEMON (to make it just /bin/), change DAEMON_ARGS to "-d -r /data --log-file /var/log.svn.log"
test your favorite svn client (e.g. TortoiseSVN)!
使用 VisualSVN Server 在 Windows 上运行 SVN
Run SVN on windows using VisualSVN Server
我在其中一封邮件中找到了这篇文章列表。下次我尝试使其正常工作时,我将参考此信息。下面我将其引用以供参考。
I found this post in one of the mailing lists. Next time I try to get this working I'm going to reference this information. I'll quote it below for reference.
我认为这在技术上是可行的。请参阅链接第 8.GSSAPI 和 Microsoft Technet 文章。
我有 SVN 1.6 + SASL 的实践经验,如所述 此处。这对我们来说效果很好。所以我认为你最大的挑战是“联姻”SASL 和 Active Directory。
I think it's technically possible. See the link point 8.GSSAPI and microsoft technet article as well.
I've hands-on experience with SVN 1.6 + SASL as described here. It's works fine for us. So I think your biggest challenge is to "married" SASL and Active directory.