> Apache2.2 中文手册 > mod_authn_alias

Apache模块 mod_authn_alias

说明 基于实际认证支持者创建扩展的认证支持者,并为它起一个别名以便于引用
状态 扩展(E)
模块名 authn_alias_module
源文件 mod_authn_alias.c
兼容性 仅在 Apache 2.1 及以后的版本中可用

概述

这个模块可以在配置文件中基于实际认证支持者创建扩展的认证支持者,并为它起一个别名以便于在AuthBasicProviderAuthDigestProvider指令中像实际认证支持者一样被引用。此外,它还允许同一个认证支持者在不同的区域被多次引用。

mod_authn_alias

示例

下面的例子创建了基于ldap(实际)认证支持者的两个不同的ldap(扩展)认证支持者别名。这样,同一个认证区域就可以被多个ldap主机伺服。

示例

LoadModule authn_alias_module modules/mod_authn_alias.so

<AuthnProviderAlias ldap ldap-alias1>
AuthLDAPBindDN cn=youruser,o=ctx
AuthLDAPBindPassword yourpassword
AuthLDAPURL ldap://ldap.host/o=ctx
</AuthnProviderAlias>

<AuthnProviderAlias ldap ldap-other-alias>
AuthLDAPBindDN cn=yourotheruser,o=dev
AuthLDAPBindPassword yourotherpassword
AuthLDAPURL ldap://other.ldap.host/o=dev?cn
</AuthnProviderAlias>

Alias /secure /webpages/secure
<Directory /webpages/secure>
Order deny,allow
Allow from all

AuthBasicProvider ldap-other-alias ldap-alias1

AuthType Basic
AuthName LDAP_Protected_Place
AuthzLDAPAuthoritative off
require valid-user
</Directory>

mod_authn_alias

说明 封装一组定义扩展认证支持者的指令,并为其指定一个别名 语法 <AuthnProviderAlias baseProvider Alias> ... </AuthnProviderAlias> 作用域 server config, virtual host 状态 扩展(E) 模块 mod_authn_alias

<AuthnProviderAlias></AuthnProviderAlias>用来封装一组定义扩展认证支持者的指令,并为其指定一个别名,这个别名可以被AuthBasicProviderAuthDigestProvider引用。

上一篇:
下一篇: