]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/experimental/util_ldap.c (util_ldap_connection_open): Set
authorJoe Orton <jorton@apache.org>
Wed, 3 Aug 2005 20:01:32 +0000 (20:01 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 3 Aug 2005 20:01:32 +0000 (20:01 +0000)
connection timeout on the connection, not globally, avoiding segfaults
in older version of OpenLDAP (ITS #3487).

Submitted by: Brad Nicholes
Reviewed by: jorton, wrowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@227253 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/experimental/util_ldap.c

diff --git a/CHANGES b/CHANGES
index 90e52306469422f78b8f6ee1b86d7f596035f41e..ae443f01997a4789dea540d167e7de61190bc35a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.0.55
 
+  *) mod_ldap: Avoid segfaults when opening connections if using a version
+     of OpenLDAP older than 2.2.21.  [Brad Nicholes]
+
   *) mod_ssl: Fix build with OpenSSL 0.9.8.  PR 35757.  [William Rowe]
 
   *) SECURITY: CAN-2005-2088
diff --git a/STATUS b/STATUS
index fb0e1054d14f4fe1b9a4f4ebace114ffd0de8c35..e9ce97ef46d6a1c33342f3ba9d7a3dee13936f5f 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -388,11 +388,6 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
         http://svn.apache.org/viewcvs.cgi?rev=209539&view=rev
         +1: pquerna
 
-     *) mod_ldap: Fix for use of OpenLDAP < 2.2.21
-        (regression since 2.0.54)
-        http://people.apache.org/~jorton/ap_ldapver2.diff
-        +1: jorton
-
      *) mod_ldap: Fix cache corruption case.
         http://svn.apache.org/viewcvs?rev=225746&view=rev
         PR: 34209
index 3af630bca462d1750f01c4aa7ebd3cdd6eb3baef..075bbb5b4ea0fd5558fdfeb058a801332b0669bc 100644 (file)
@@ -325,7 +325,7 @@ LDAP_DECLARE(int) util_ldap_connection_open(request_rec *r,
         }
 
         if (st->connectionTimeout >= 0) {
-            rc = ldap_set_option(NULL, LDAP_OPT_NETWORK_TIMEOUT, (void *)&timeOut);
+            rc = ldap_set_option(ldc->ldap, LDAP_OPT_NETWORK_TIMEOUT, (void *)&timeOut);
             if (APR_SUCCESS != rc) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
                                  "LDAP: Could not set the connection timeout" );