]> granicus.if.org Git - apache/commitdiff
when we actually get a per-server config in a vhost, the shared memory
authorEric Covener <covener@apache.org>
Fri, 4 Jun 2010 01:58:46 +0000 (01:58 +0000)
committerEric Covener <covener@apache.org>
Fri, 4 Jun 2010 01:58:46 +0000 (01:58 +0000)
cache was not in the merged config.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951235 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ldap/util_ldap.c

diff --git a/CHANGES b/CHANGES
index 4e58c804d62dd9b550b01d97f4fcdd2ba29a8031..62805fffb911c600a4822849c00316657a05dd0e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -28,6 +28,10 @@ Changes with Apache 2.3.6
      processing is completed, avoiding orphaned callback pointers.
      [Brett Gervasoni <brettg senseofsecurity.com>, Jeff Trawick]
 
+  *) mod_ldap: LDAP caching is suppressed (and ldap-status handler returns 
+     title page only) when any mod_ldap directives are used in VirtualHost 
+     context.  [Eric Covener]
+
   *) mod_disk_cache: Decline the opportunity to cache if the response is
      a 206 Partial Content. This stops a reverse proxied partial response
      from becoming cached, and then being served in subsequent responses.
index 9643cf7d18dc68cd51f1dfc5be0096e359531110..b3c22a2f4f0bec55d88497756566fbb72e7bb8ff 100644 (file)
@@ -2609,6 +2609,9 @@ static void *util_ldap_create_config(apr_pool_t *p, server_rec *s)
     return st;
 }
 
+/* cache-related settings are not merged here, but in the post_config hook,
+ * since the cache has not yet sprung to life
+ */
 static void *util_ldap_merge_config(apr_pool_t *p, void *basev,
                                     void *overridesv)
 {
@@ -2751,6 +2754,7 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog,
             st_vhost->cache_shm = st->cache_shm;
             st_vhost->cache_rmm = st->cache_rmm;
             st_vhost->cache_file = st->cache_file;
+            st_vhost->util_ldap_cache      = st->util_ldap_cache;
             ap_log_error(APLOG_MARK, APLOG_DEBUG, result, s,
                          "LDAP merging Shared Cache conf: shm=0x%pp rmm=0x%pp "
                          "for VHOST: %s", st->cache_shm, st->cache_rmm,