]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Set the LDAP protocol before setting extended LDAP options. [PR38146]
authorBradley Nicholes <bnicholes@apache.org>
Mon, 23 Jan 2006 16:35:25 +0000 (16:35 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Mon, 23 Jan 2006 16:35:25 +0000 (16:35 +0000)
Submitted by: Aaron Richton <richton nbcs.rutgers.edu>
Reviewed by: bnicholes, wrowe, rpluem

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

STATUS
modules/ldap/util_ldap.c

diff --git a/STATUS b/STATUS
index 8a7c5774a67586e16daf163e2bc8318ac1febb79..7d0ba3a930f8b839fb3387102448a25d4d63668d 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -95,11 +95,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
       Message-ID: <4395A056.2070000@web.turner.com>
       +1: jerenkrantz, jim, wrowe
 
-    * mod_ldap: Set the LDAP protocol before setting extended LDAP options
-       Fix PR38146
-         http://svn.apache.org/viewcvs.cgi?rev=370856&view=rev
-      +1: bnicholes, wrowe, rpluem
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
 
     * mod_dbd: When threaded, create a private pool in child_init
index c0f4652de96fc558ae3c2e411a2f10bc9b2b0ba6..82ae6b4ba0103dbc9b640f70981490d920782f71 100644 (file)
@@ -263,6 +263,9 @@ static int uldap_connection_open(request_rec *r,
             return(result->rc);
         }
 
+        /* always default to LDAP V3 */
+        ldap_set_option(ldc->ldap, LDAP_OPT_PROTOCOL_VERSION, &version);
+
         /* set client certificates */
         if (!apr_is_empty_array(ldc->client_certs)) {
             apr_ldap_set_option(ldc->pool, ldc->ldap, APR_LDAP_OPT_TLS_CERT,
@@ -292,9 +295,6 @@ static int uldap_connection_open(request_rec *r,
         /* Set the alias dereferencing option */
         ldap_set_option(ldc->ldap, LDAP_OPT_DEREF, &(ldc->deref));
 
-        /* always default to LDAP V3 */
-        ldap_set_option(ldc->ldap, LDAP_OPT_PROTOCOL_VERSION, &version);
-
 /*XXX All of the #ifdef's need to be removed once apr-util 1.2 is released */
 #ifdef APR_LDAP_OPT_VERIFY_CERT
         apr_ldap_set_option(ldc->pool, ldc->ldap,