]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
make LDAPSharedCacheFile relative to DefaultRuntimeDir
authorJeff Trawick <trawick@apache.org>
Fri, 10 Aug 2012 12:23:41 +0000 (12:23 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 10 Aug 2012 12:23:41 +0000 (12:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1371684 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/manual/mod/mod_ldap.xml
modules/ldap/util_ldap.c

diff --git a/CHANGES b/CHANGES
index bdc2194e3e94985b7bf14875442e7bfb1f64f593..883b801fe446b5f71fabc4cb57a39a587ddefe30 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -29,6 +29,7 @@ Changes with Apache 2.5.0
        mutexes (Mutex)
      - mod_auth_digest: shared memory file
      - mod_lbmethod_heartbeat, mod_heartmonitor: heartbeat storage file
+     - mod_ldap: shared memory cache
      - mod_socache_shmcb, mod_socache_dbm: shared memory or dbm for cache
      [Jeff Trawick]
 
index bce703e884a5d85bc8aedf9ddf3f57b050c9638c..6afb1779bee23785858a1817691c7edd0ca5f2bc 100644 (file)
@@ -418,13 +418,16 @@ LDAPTrustedGlobalCert CA_BASE64 /certs/cacert2.pem
 <directivesynopsis>
 <name>LDAPSharedCacheFile</name>
 <description>Sets the shared memory cache file</description>
-<syntax>LDAPSharedCacheFile <var>directory-path/filename</var></syntax>
+<syntax>LDAPSharedCacheFile <var>file-path</var></syntax>
 <contextlist><context>server config</context></contextlist>
 
 <usage>
-    <p>Specifies the directory path and file name of the shared memory
-    cache file. If not set, anonymous shared memory will be used if the
-    platform supports it.</p>
+    <p>Specifies the path of the shared memory cache file. If not set, 
+    anonymous shared memory will be used if the platform supports it.</p>
+
+    <p>If <var>file-path</var> is not an absolute path, the location specified
+    will be relative to the value of 
+    <directive module="core">DefaultRuntimeDir</directive>.</p>
 </usage>
 </directivesynopsis>
 
index c7f7b93df1f811254b4dd332766d0a55ea7a1c32..ad2c395948807ab833c1a5c88f7a224c98214716 100644 (file)
@@ -2103,7 +2103,7 @@ static const char *util_ldap_set_cache_file(cmd_parms *cmd, void *dummy,
     }
 
     if (file) {
-        st->cache_file = ap_server_root_relative(st->pool, file);
+        st->cache_file = ap_runtime_dir_relative(st->pool, file);
     }
     else {
         st->cache_file = NULL;