Apache Module mod_authn_core
Check here first AuthUserFile /www/conf/passwords1
Then check here AuthUserFile /www/conf/passwords2 AuthBasicProvider file1 file2 AuthType Bas
Note that Require ldap-* would not work here, since the
AuthnProviderAlias does not provide the config to authorization providers
that are implemented in the same module as the authentication provider.
This module provides core authentication capabilities to allow or deny access to portions of the web site.
provides directives that are common to all authentication providers.modauthncore
in the same way as a base authentication provider. Besides the ability to create and alias an extended provider, it also allows the same extended authentication provider to be reference by multiple locations.AuthDigestProvider
This example checks for passwords in two different text files.
The example below creates two different ldap authentication provider aliases based on the ldap provider. This allows a single authenticated location to be serviced by multiple ldap hosts:
The string provided for the AuthName
is what will appear in the password dialog provided by most browsers.
To implement authentication, you must also use the
disables authentication. When authentication is enabled, it is normally inherited by each subsequent configuration section, unless a different authentication type is specified. If no authentication is desired for a subsection of an authenticated section, the authentication type None
may be used; in the following example, clients may access the /www/docs/public
Modules | Directives | FAQ | Glossary | Sitemap
Apache HTTP Server Version 2.4
Apache Module mod_authn_core
Available Languages: en | fr
Creating Authentication Provider Aliases
Extended authentication providers can be created within the configuration file and assigned an alias name. The alias providers can then be referenced through the directives AuthBasicProvider or AuthDigestProvider in the same way as a base authentication provider. Besides the ability to create and al
AuthName Directive
This directive sets the name of the authorization realm for a directory. This realm is given to the client so that the user knows which username and password to send. AuthName takes a single argument; if the realm name contains spaces, it must be enclosed in quotation marks. It must be accompanied b
Directive
AuthType Directive
This directive selects the type of user authentication for a directory. The authentication types available are None, Basic (implemented by mod_auth_basic), Digest (implemented by mod_auth_digest), and Form (implemented by mod_auth_form).