mod_ldap.html.en revision ceb80b53389aae381f54a02e75cca69077c4fb2f
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin This file is generated from xml source: DO NOT EDIT
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<link href="/images/favicon.ico" rel="shortcut icon" /></head>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.3</a> > <a href="./">Modules</a></div>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<p><span>Available Languages: </span><a href="/en/mod/mod_ldap.html" title="English"> en </a> |
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<a href="/fr/mod/mod_ldap.html" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a></p>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>LDAP connection pooling and result caching services for use
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>ldap_module</td></tr>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>util_ldap.c</td></tr>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<tr><th><a href="module-dict.html#Compatibility">Compatibility:</a></th><td>Available in version 2.0.41 and later</td></tr></table>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin <p>This module was created to improve the performance of
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin websites relying on backend connections to LDAP servers. In
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin addition to the functions provided by the standard LDAP
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin libraries, this module adds an LDAP connection pool and an LDAP
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin shared memory cache.</p>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin <p>To enable this module, LDAP support must be compiled into
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin apr-util. This is achieved by adding the <code>--with-ldap</code>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin flag to the <code class="program"><a href="/programs/configure.html">configure</a></code> script when building
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin Apache.</p>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin <p>SSL/TLS support is dependant on which LDAP toolkit has been
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin linked to <a class="glossarylink" href="/glossary.html#apr" title="see glossary">APR</a>. As of this writing, APR-util supports:
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin <a href="http://www.openldap.org/">OpenLDAP SDK</a> (2.x or later),
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin <a href="http://developer.novell.com/ndk/cldap.htm">Novell LDAP
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin SDK</a>, <a href="http://www.mozilla.org/directory/csdk.html">
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin Mozilla LDAP SDK</a>, native Solaris LDAP SDK (Mozilla based),
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin native Microsoft LDAP SDK, or the
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin <a href="http://www.iplanet.com/downloads/developer/">iPlanet
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin (Netscape)</a> SDK. See the <a href="http://apr.apache.org">APR</a>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin website for details.</p>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<div id="quickview"><h3 class="directives">Directives</h3>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapcacheentries">LDAPCacheEntries</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapcachettl">LDAPCacheTTL</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapconnectiontimeout">LDAPConnectionTimeout</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapopcacheentries">LDAPOpCacheEntries</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapopcachettl">LDAPOpCacheTTL</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapreferralhoplimit">LDAPReferralHopLimit</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapreferrals">LDAPReferrals</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapsharedcachefile">LDAPSharedCacheFile</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapsharedcachesize">LDAPSharedCacheSize</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldaptrustedclientcert">LDAPTrustedClientCert</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldaptrustedglobalcert">LDAPTrustedGlobalCert</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldaptrustedmode">LDAPTrustedMode</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#ldapverifyservercert">LDAPVerifyServerCert</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#exampleconfig">Example Configuration</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#pool">LDAP Connection Pool</a></li>
b45c2b86612fd10c2b08965bb99e66a3c0e43480minfrin<li><img alt="" src="/images/down.gif" /> <a href="#cache">LDAP Cache</a></li>
<code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> to increase the performance of HTTP Basic
authentication provided by <code class="module"><a href="/mod/mod_authnz_ldap.html">mod_authnz_ldap</a></code>.</p>
<p>For improved performance, <code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> uses an aggressive
<p><code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> supports two types of LDAP caching during
<p><code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> stores the username, the DN
same username, <code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> compares the password
<code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> bypasses the search/bind phase.</p>
<p>The search and bind cache is controlled with the <code class="directive"><a href="#ldapcacheentries">LDAPCacheEntries</a></code> and <code class="directive"><a href="#ldapcachettl">LDAPCacheTTL</a></code> directives.</p>
functions, <code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> uses two operation caches
<p><code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> has a content handler that allows
by <code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code> cache. Note that if Apache does not
support shared memory, then each <code class="program"><a href="/programs/httpd.html">httpd</a></code> instance has its
information each time, depending on which <code class="program"><a href="/programs/httpd.html">httpd</a></code>
<h3><a name="settingcerts-netscape" id="settingcerts-netscape">Netscape/Mozilla/iPlanet SDK</a></h3>
client certificates are required, an optional key3.db file may
<div class="directive-section"><h2><a name="LDAPCacheEntries" id="LDAPCacheEntries">LDAPCacheEntries</a> <a name="ldapcacheentries" id="ldapcacheentries">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Maximum number of entries in the primary LDAP cache</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPCacheEntries <var>number</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPCacheEntries 1024</code></td></tr>
<div class="directive-section"><h2><a name="LDAPCacheTTL" id="LDAPCacheTTL">LDAPCacheTTL</a> <a name="ldapcachettl" id="ldapcachettl">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Time that cached items remain valid</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPCacheTTL <var>seconds</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPCacheTTL 600</code></td></tr>
<div class="directive-section"><h2><a name="LDAPConnectionTimeout" id="LDAPConnectionTimeout">LDAPConnectionTimeout</a> <a name="ldapconnectiontimeout" id="ldapconnectiontimeout">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Specifies the socket connection timeout in seconds</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPConnectionTimeout <var>seconds</var></code></td></tr>
<div class="directive-section"><h2><a name="LDAPOpCacheEntries" id="LDAPOpCacheEntries">LDAPOpCacheEntries</a> <a name="ldapopcacheentries" id="ldapopcacheentries">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Number of entries used to cache LDAP compare
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPOpCacheEntries <var>number</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPOpCacheEntries 1024</code></td></tr>
<p>This specifies the number of entries <code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code>
<div class="directive-section"><h2><a name="LDAPOpCacheTTL" id="LDAPOpCacheTTL">LDAPOpCacheTTL</a> <a name="ldapopcachettl" id="ldapopcachettl">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Time that entries in the operation cache remain
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPOpCacheTTL <var>seconds</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPOpCacheTTL 600</code></td></tr>
<div class="directive-section"><h2><a name="LDAPReferralHopLimit" id="LDAPReferralHopLimit">LDAPReferralHopLimit</a> <a name="ldapreferralhoplimit" id="ldapreferralhoplimit">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>The maximum number of referral hops to chase before terminating an LDAP query.</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPReferralHopLimit <var>number</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPReferralHopLimit 5</code></td></tr>
<div class="directive-section"><h2><a name="LDAPReferrals" id="LDAPReferrals">LDAPReferrals</a> <a name="ldapreferrals" id="ldapreferrals">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Enable referral chasing during queries to the LDAP server.</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPReferrals <var>On|Off</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPReferrals On</code></td></tr>
<div class="directive-section"><h2><a name="LDAPSharedCacheFile" id="LDAPSharedCacheFile">LDAPSharedCacheFile</a> <a name="ldapsharedcachefile" id="ldapsharedcachefile">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets the shared memory cache file</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPSharedCacheFile <var>directory-path/filename</var></code></td></tr>
<div class="directive-section"><h2><a name="LDAPSharedCacheSize" id="LDAPSharedCacheSize">LDAPSharedCacheSize</a> <a name="ldapsharedcachesize" id="ldapsharedcachesize">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Size in bytes of the shared-memory cache</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPSharedCacheSize <var>bytes</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPSharedCacheSize 102400</code></td></tr>
<div class="directive-section"><h2><a name="LDAPTrustedClientCert" id="LDAPTrustedClientCert">LDAPTrustedClientCert</a> <a name="ldaptrustedclientcert" id="ldaptrustedclientcert">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets the file containing or nickname referring to a per
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPTrustedClientCert <var>type</var> <var>directory-path/filename/nickname</var> <var>[password]</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
<div class="directive-section"><h2><a name="LDAPTrustedGlobalCert" id="LDAPTrustedGlobalCert">LDAPTrustedGlobalCert</a> <a name="ldaptrustedglobalcert" id="ldaptrustedglobalcert">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets the file or database containing global trusted
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPTrustedGlobalCert <var>type</var> <var>directory-path/filename</var> <var>[password]</var></code></td></tr>
certificates and/or system wide client certificates <code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code>
<div class="directive-section"><h2><a name="LDAPTrustedMode" id="LDAPTrustedMode">LDAPTrustedMode</a> <a name="ldaptrustedmode" id="ldaptrustedmode">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Specifies the SSL/TLS mode to be used when connecting to an LDAP server.</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPTrustedMode <var>type</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host</td></tr>
<div class="directive-section"><h2><a name="LDAPVerifyServerCert" id="LDAPVerifyServerCert">LDAPVerifyServerCert</a> <a name="ldapverifyservercert" id="ldapverifyservercert">Directive</a></h2>
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Force server certificate verification</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>LDAPVerifyServerCert <var>On|Off</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>LDAPVerifyServerCert On</code></td></tr>
<p><span>Available Languages: </span><a href="/en/mod/mod_ldap.html" title="English"> en </a> |
<a href="/fr/mod/mod_ldap.html" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a></p>
<p class="apache">Copyright 2009 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div>