gpt4 book ai didi

svn - mod_auth_ldap 和 mod_authnz_ldap 之间的区别

转载 作者:行者123 更新时间:2023-12-02 02:10:46 25 4
gpt4 key购买 nike

我们使用 LDAP 通过 Apache httpd 进行 Subversion 访问。我们最初让所有用户使用以下命令访问我们的所有 Subversion 存储库:

<Location /src>
DAV svn
SVNParentPath /opt/svn_repos
AuthType basic
AuthName "SVN Repository"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL "ldap://ldap.mycorp.com:3268/dc=mycorp,dc=com?sAMAccountName" NONE
AuthLDAPBindDN "CN=svn_acct,OU=Users,DC=mycorp,DC=com"
AuthLDAPBindPassword "swordfish"
Require valid-user
</Location>

一切都很好。我被要求将 CM 存储库移至其他位置,并使其仅可供 CM 组中的人员访问。我做了以下事情:

<Location /cm>
DAV svn
SVNPath /opt/cm_svn_repos
AuthType basic
AuthName "CM Repository"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL "ldap://ldap.mycorp.com:3268/dc=mycorp,dc=com?sAMAccountName" NONE
AuthLDAPBindDN "CN=svn_acct,OU=Users,DC=mycorp,DC=com"
AuthLDAPBindPassword "swordfish"
Require group CN=cm-group,OU=Groups,DC=mycorp,DC=com
</Location>

我花了几个小时才意识到我使用的是 mod_authnz_ldap 而不是普通的 ol' mod_auth_ldap。因此,我在 Require 语句中需要 ldap-group 而不是 group。这有效。

我的同事告诉我,我们使用 mod_authnz_ldap 而不是 mod_auth_ldap 是有原因的,但他不记得为什么了。我们查阅了 Apache httpd 文档,但该文档没有提供任何线索为什么您要使用其中一个而不是另一个。

那么,mod_auth_ldap 和 mod_authnz_ldap 之间有什么区别,为什么要使用其中一个而不是另一个?

最佳答案

还有谁遇到过这个问题。它与较新版本的 Apache httpd 有关。我的困惑源于httpd 2.1 和2.2 版本之间的变化。因为我有 Apache 2.2,所以我应该使用新框架:

  • mod_auth_ldap 适用于 2.2 之前的 Apache 版本
  • mod_authnz_ldap 适用于 Apache 2.2 及更高版本。
<小时/>

来自Apache 2.2 Manual

模块增强

Authn/Authz

Modules in the aaa directory have been renamed and offer better support for digest authentication. For example, mod_auth is now split into mod_auth_basic and mod_authn_file; mod_auth_dbm is now called mod_authn_dbm; mod_access has been renamed mod_authz_host. There is also a new mod_authn_alias (already removed from 2.3/2.4) module for simplifying certain authentication configurations.

mod_authnz_ldap

This module is a port of the 2.0 mod_auth_ldap module to the 2.2 Authn/Authz framework. New features include using LDAP attribute values and complicated search filters in the Require directive.

模块开发人员变更

Authn/Authz

The bundled authentication and authorization modules have been renamed along the following lines:

  • mod_auth_* -> Modules that implement an HTTP authentication mechanism
  • mod_authn_* -> Modules that provide a backend authentication provider
  • mod_authz_* -> Modules that implement authorization (or access)
  • mod_authnz_* -> Module that implements both authentication & authorization

关于svn - mod_auth_ldap 和 mod_authnz_ldap 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7164647/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com