简体   繁体   English

颠覆与广告整合

[英]subversion and AD integration

Well, I've successfully integrated my subversion on Linux box with a Windows Server Active Directory and right now the users get authenticated with AD before using subversion service. 好吧,我已经成功地将我的Subversion在Linux机器上与Windows Server Active Directory集成在一起,现在用户在使用Subversion服务之前已通过AD进行了身份验证。

I simply done that with defining a LDAP base search in SASL (lets say: OU=users,DC=domain,DC=com) and subversion in other hand is configured with sasl daemon. 我只是通过在SASL中定义LDAP基本搜索(让我们说:OU = users,DC = domain,DC = com)来完成此操作,而另一方面,使用sasl守护程序配置了Subversion。 Everything is fine. 一切顺利。

However my organization requires to block the access of the normal users on 'trunk' for some of its projects. 但是,对于某些项目,我的组织需要阻止“ trunk”上的普通用户访问。 So, then they specified two group of users in Windows Server AD: normal-devel : which have access to all parts of the projects, except 'trunk'. 因此,然后他们在Windows Server AD中指定了两组用户:normal-devel:可以访问项目的所有部分,但“ trunk”除外。 releng-devel : which have ultimate access. releng-devel:具有最终访问权限。

Well, I donno if it is even possible to filter those groups in svnserve service, but I tried this (svnserve.conf): 好吧,我什至无法过滤svnserve服务中的那些组,但是我尝试了这个(svnserve.conf):

[alias]
normal_usr = memberOf=CN=normal-devel
releng_usr = memberOf=CN=releng-devel

[group]
normal = &normal_usr
releng = &releng_usr

[repo:/project1/trunk]
@normal = none
@releng = rw

Unfortunately, It doesn't work and I receive "Authorization error" when I want to commit sources to 'trunk' with a releng user. 不幸的是,它不起作用,当我想用​​一个相关的用户将源提交到“ trunk”时,我收到“授权错误”。 It seems to me that the there is something wrong in my config file. 在我看来,我的配置文件中有问题。

Does anybody have successful experience regarding to filtering the AD users based on their group membership? 是否有成功的经验根据组成员身份过滤AD用户?

  1. You can't refer in group's definition on any AD|LDAP data - mod_authz|svnserve know nothing about AD and can't operate with it. 您不能在任何AD | LDAP数据上引用组的定义-mod_authz | svnserve对AD一无所知,也无法对其进行操作。
  2. You can't translate AD-groups into authz's groups automatically, using default tools. 您无法使用默认工具将AD组自动转换为authz组。

The solution is the LDAP Groups to Subversion Authz Groups Bridge script and just one additional note: with SVN 1.8+ you can have groups definition in own file, separated form other authz-data. 解决方案是从LDAP组到Subversion Authz组桥的脚本 ,还有一个附加说明:使用SVN 1.8+,您可以在自己的文件中定义组,并与其他authz数据分开。

Part of default svnserve.conf: 默认svnserve.conf的一部分:

### The groups-db option controls the location of the groups file.
...
# groups-db = groups

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM