【问题标题】:How to add group access to SVN+LDAP access?如何将组访问添加到 SVN+LDAP 访问?
【发布时间】:2012-04-18 10:59:18
【问题描述】:

我已经使用 ldap 设置了一个系统来控制对 svn repos 的访问。

目前 ldap 用户可以获得对存储库的完全访问权限。

我想要实现的目标: 在 ldap 中为一个 svn 存储库设置 2 个组:

  • project_developer

  • project_guest

在哪里

  • project_developer 有读写权限

  • project_guest 具有只读权限。

有没有人知道如何进行这项工作?或任何提示将不胜感激

提前致谢。

环境

  • CentOS 4.9 版(最终版)
  • 阿帕奇 2
  • Subversion 版本 1.4.6 (r28521)

【问题讨论】:

  • 您可以通过在 servfail 上提出这个问题来找到更好的答案。我还要强调还涉及哪些其他技术。例如linux/windows、IIS/Apache。
  • 感谢您的建议,我会添加我的环境。

标签: svn apache


【解决方案1】:
<Location />
      AuthBasicProvider ldap
      AuthType Basic
      AuthName "SVN Server"
      #general user for ldap requests which password never expire
      AuthLDAPBindDN insertLdapUserHere
      AuthLDAPBindPassword insertPasswordForLdapUserHere
      AuthLDAPURL ldap://ldapServerHostName.companyXYZ.com:3268/?userPrincipalName?sub?(objectClass=user)
      Require valid-user

    </Location>
    <Location /path/to/repo/which/apear/in/webbrowser>

      # Uncomment this to enable the repository
      DAV svn

      # Set this to the path to your repository
      SVNPath /absolute/path/to/the/repo

      #set order of authentification
      Order Deny,Allow
      #generally disallow for all
      Deny from all
      #only allow for Germany and Amerika
      Allow from GER.companyXYZ.com US.companyXYZ.com
      # allow read and write access to ldap modify group
      # IMPROTANT: User full qualified name for group
      Require ldap-group CN=Modiy-GroupName,OU=Groups,OU=DomainName,DC=companyXYZ,DC=com
      # for read request allow all users in the read group
      # Limit handle only the read access commands, if such a command will be received, it checks the Read-Group
      <Limit OPTIONS PROPFIND GET REPORT>
        Require ldap-group CN=Read-GroupName,OU=Groups,OU=DomainName,DC=companyXYZ,DC=com
      </Limit>
    </Location>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-04-29
    • 1970-01-01
    • 1970-01-01
    • 2021-04-29
    • 1970-01-01
    • 1970-01-01
    • 2011-05-22
    • 1970-01-01
    相关资源
    最近更新 更多