LDAP and Subversion: Who can access my repository

ε祈祈猫儿з 提交于 2019-12-25 04:22:39

问题


I use our Active Directory groups to verify access to our Subversion repository. We have the following setup in our httpd.conf file:

<Location /repo>
        DAV svn
        SVNPath /mnt/svn/repositories/repo
        AuthType basic
        AuthName "Corporate Repostitory"
        AuthBasicProvider ldap
        AuthzLDAPAuthoritative off
        AuthLDAPUrl "ldap://ldap2.vegicorp.net:389 ldap3.vegicorp.net:389/OU=Users,DC=vegicorp,DC=NET?sAMAccountName" NONE
        AuthLDAPBindDN "CN=CM,OU=Service Accounts,OU=Users,DC=Vegicorp,DC=NET"
        AuthLDAPBindPassword swordfish
        Require ldap-group CN=Development,OU=Security Groups,DC=Vegicorp,DC=NET
        Require ldap-dn "CN=Release Management,OU=Service Accounts,OU=Users, dc=Vegicorp,dc=net"
        AuthzSVNAccessFile /mnt/svn/repo
</Location>

Access to our repository is only suppose to be for the Release Management user (the one who uses Subversion for builds) and people in the group Development. However, I've recently found that a user who are not in the Development group does have access to our repository.

Is there an error somewhere in our configuration? Or, could there be another reason why this user has access to our repository?


回答1:


<Location /repo>
    DAV svn
    SVNPath /mnt/svn/repositories/repo
    AuthType basic
    AuthName "Corporate Repostitory"
    AuthBasicProvider ldap
    AuthzLDAPAuthoritative off
    AuthLDAPUrl "ldap://ldap2.vegicorp.net:389 ldap3.vegicorp.net:389/OU=Users,DC=vegicorp,DC=NET?sAMAccountName" NONE
    AuthLDAPBindDN "CN=CM,OU=Service Accounts,OU=Users,DC=Vegicorp,DC=NET"
    AuthLDAPBindPassword swordfish
    Require ldap-group CN=Development,OU=Security Groups,DC=Vegicorp,DC=NET
    Require ldap-dn CN=Release Management,OU=Service Accounts,OU=Users, dc=Vegicorp,dc=net
    AuthzSVNAccessFile /mnt/svn/repo
</Location>

You do not need quotes on the ldap-dn. Also, you need to remove the double comma in ldap-group "OU=Security Groups,,"

Please refer to http://www.held-im-ruhestand.de/software/apache-ldap-active-directory-authentication



来源:https://stackoverflow.com/questions/24638286/ldap-and-subversion-who-can-access-my-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!