From: Rainer Jung Date: Tue, 12 Feb 2013 12:07:32 +0000 (+0000) Subject: mod_ldap: Fix regression in handling "server unavailable" errors on X-Git-Tag: 2.2.24~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b71070b4be73485345a776b00ce788f4b6a2e74;p=thirdparty%2Fapache%2Fhttpd.git mod_ldap: Fix regression in handling "server unavailable" errors on Windows. Followup to r1375696. PR 54140. Backport of r1408402 from trunk resp. r1409773 from 2.4.x. Submitted by: covener Reviewed by: wrowe, rjung Backported by: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1445119 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 234cbed62c8..67d1cfbe939 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.2.24 + *) mod_ldap: Fix regression in handling "server unavailable" errors on + Windows. PR 54140. [Eric Covener] + *) mod_ssl: fix a regression with the string rendering of the "UID" RDN introduced in 2.2.15. PR 54510. [Kaspar Brand] diff --git a/STATUS b/STATUS index ac811503be9..bbff2ab8a76 100644 --- a/STATUS +++ b/STATUS @@ -101,13 +101,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: 2.2.x documentation patch : http://apache-doc-fr.gryzor.com/fallbackresource_disabled_2.2_doc.patch +1: gryzor, wrowe, rjung - * mod_ldap: restore LDAP_UNAVAILABLE for windows SDK (PR 54140) - trunk patch: http://svn.apache.org/viewvc?rev=1408402&view=rev - 2.4.x patch: http://svn.apache.org/viewvc?rev=1409773&view=rev - 2.2.x patch: http://people.apache.org/~covener/patches/httpd-2.2.x-ldap_unavailable.diff - (just context conflicts) - +1: covener, wrowe, rjung - PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/include/util_ldap.h b/include/util_ldap.h index fba0e59f1ed..49de93eee1b 100644 --- a/include/util_ldap.h +++ b/include/util_ldap.h @@ -30,7 +30,7 @@ #include "apr_time.h" #include "apr_ldap.h" -#ifdef LDAP_UNAVAILABLE +#if defined(LDAP_UNAVAILABLE) || APR_HAS_MICROSOFT_LDAPSDK #define AP_LDAP_IS_SERVER_DOWN(s) ((s) == LDAP_SERVER_DOWN \ ||(s) == LDAP_UNAVAILABLE) #else