2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $LastChangedRevision$ -->
7 Copyright 2002-2005 The Apache Software Foundation or its licensors, as
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <modulesynopsis metafile="mod_authn_alias.xml.meta">
25 <name>mod_authn_alias</name>
26 <description>Provides the ability to create extended authentication
27 providers based on actual providers</description>
28 <status>Extension</status>
29 <sourcefile>mod_authn_alias.c</sourcefile>
30 <identifier>authn_alias_module</identifier>
31 <compatibility>Available in Apache 2.1 and later</compatibility>
34 <p>This module allows extended authentication providers to be created
35 within the configuration file and assigned an alias name. The alias
36 providers can then be referenced through the directives
37 <directive module="mod_auth_basic">AuthBasicProvider</directive> or
38 <directive module="mod_auth_digest">AuthDigestProvider</directive> in
39 the same way as a base authentication provider. Besides the ability
40 to create and alias an extended provider, it also allows the same
41 extended authentication provider to be reference by multiple
46 <section id="example"><title>Example</title>
47 <p>The example below creates two different ldap authentication
48 provider aliases based on the ldap provider. This allows
49 a single authenticated location can be serviced by multiple
52 <example><title>Example</title>
53 LoadModule authn_alias_module modules/mod_authn_alias.so<br /><br />
54 <AuthnProviderAlias ldap ldap-alias1><br />
56 AuthLDAPBindDN cn=youruser,o=ctx<br />
57 AuthLDAPBindPassword yourpassword<br />
58 AuthLDAPURL ldap://ldap.host/o=ctx<br />
60 </AuthnProviderAlias><br /><br />
61 <AuthnProviderAlias ldap ldap-other-alias><br />
63 AuthLDAPBindDN cn=yourotheruser,o=dev<br />
64 AuthLDAPBindPassword yourotherpassword<br />
65 AuthLDAPURL ldap://other.ldap.host/o=dev?cn<br />
67 </AuthnProviderAlias><br /><br />
69 Alias /secure /webpages/secure<br />
70 <Directory /webpages/secure><br />
72 Order deny,allow<br />
73 Allow from all<br /><br />
75 AuthBasicProvider ldap-other-alias ldap-alias1<br /><br />
78 AuthName LDAP_Protected_Place<br />
79 require valid-user<br />
81 </Directory><br />
85 <directivesynopsis type="section">
86 <name>AuthnProviderAlias</name>
87 <description>Enclose a group of directives that represent an
88 extension of a base authentication provider and referenced by
89 the specified alias</description>
90 <syntax><AuthnProviderAlias <var>baseProvider Alias</var>>
91 ... </AuthnProviderAlias></syntax>
92 <contextlist><context>server config</context><context>virtual host</context>
96 <p><directive type="section">AuthnProviderAlias</directive> and
97 <code></AuthnProviderAlias></code> are used to enclose a group of
98 authentication directives that can be referenced by the alias name
99 using one of the directives <directive module="mod_auth_basic">
100 AuthBasicProvider</directive> or <directive module="mod_auth_digest">
101 AuthDigestProvider</directive>.</p>