From: André Malo Apache's require ldap-attribute
+ directive, and the attribute fetched from the LDAP directory
+ matches the given value.Require
directives are used during the authorization phase to ensure that
a user is allowed to access a resource. mod_authnz_ldap extends the
- authorization types with ldap-user
, ldap-dn
- and ldap-group
. Other authorization types may also be
- used but may require that additional authorization modules be loaded.ldap-user
, ldap-dn
,
+ ldap-group
and ldap-attribute
. Other
+ authorization types may also be used but may require that additional
+ authorization modules be loaded.
Behavior of this directive is modified by the AuthLDAPCompareDNOnServer
directive.
The require ldap-attribute
directive allows the
+ administrator to grant access based on attributes of the authenticated
+ user in the LDAP directory. If the attribute in the directory
+ matches the value given in the configuration, access is granted.
The following directive would grant access to anyone with + the attribute employeeType = active
+ +require ldap-attribute employeeType=active
Multiple attribute/value pairs can be specified on the same line
+ separated by spaces or they can be specified in multiple
+ require ldap-attribute
directives. The effect of listing
+ multiple attribute/values pairs is an OR operation. Access will be
+ granted if any of the listed attribute values match the value of the
+ corresponding attribute in the user object. If the value of the
+ attribute contains a space, only the value must be within double quotes.
The following directive would grant access to anyone with + the city attribute equal to "San Jose" or status equal to "Active"
+ +require ldap-attribute city="San Jose" status=active
|/path/to/program [args...]
+
+ This mode allows an external program to be used which acts as a
+ pipe to a particular input device; the program is sent the standard
+ prompt text used for the builtin
mode on
+ stdin
, and is expected to write password strings on
+ stdout
. If several passwords are needed (or an
+ incorrect password is entered), additional prompt text will be
+ written subsequent to the first password being returned, and more
+ passwords must then be written back.
exec:/path/to/program
Here an external program is configured which is called at startup for each
diff --git a/docs/manual/vhosts/examples.html.en b/docs/manual/vhosts/examples.html.en
index 811c94bb6a..f1baf5e07f 100644
--- a/docs/manual/vhosts/examples.html.en
+++ b/docs/manual/vhosts/examples.html.en
@@ -516,7 +516,9 @@
www.example.org
(from our name-based example, setup 2) should get its own IP
address. To avoid problems with name servers or proxies who cached the
old IP address for the name-based vhost we want to provide both
- variants during a migration phase.
+ variants during a migration phase.
The solution is easy, because we can simply add the new IP address
(172.20.30.50
) to the VirtualHost
directive.
http://www.sub1.domain.tld/
is only
served from the sub1-vhost if the client sent a correct
Host:
header. If no Host:
header is sent the
- client gets the information page from the primary host.Please note that there is one oddity: A request to
http://www.sub2.domain.tld/sub1/
is also served from the
- sub1-vhost if the client sent no Host:
header.
- The RewriteRule
directives
+ sub1-vhost if the client sent no Host:
header.
The RewriteRule
directives
are used to make sure that a client which sent a correct
Host:
header can use both URL variants, i.e.,
with or without URL prefix.
ÀÌ ¹®¼´Â ÀÚÁÖ ¹®ÀǵǴ °¡»óÈ£½ºÆ® diff --git a/docs/manual/vhosts/examples.xml.ko b/docs/manual/vhosts/examples.xml.ko index 1f682d242a..ec2fc44cc3 100644 --- a/docs/manual/vhosts/examples.xml.ko +++ b/docs/manual/vhosts/examples.xml.ko @@ -1,7 +1,7 @@ - +