You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2013/09/14 17:07:44 UTC
svn commit: r1523264 - in /httpd/httpd/branches/2.4.x: ./ CHANGES STATUS
modules/ldap/util_ldap.c
Author: minfrin
Date: Sat Sep 14 15:07:43 2013
New Revision: 1523264
URL: http://svn.apache.org/r1523264
Log:
mod_ldap: retry on an LDAP timeout during authn.
trunk patch: http://svn.apache.org/r1510084
Submitted by: covener
Reviewed by: jim, humbedooh
Modified:
httpd/httpd/branches/2.4.x/ (props changed)
httpd/httpd/branches/2.4.x/CHANGES
httpd/httpd/branches/2.4.x/STATUS
httpd/httpd/branches/2.4.x/modules/ldap/util_ldap.c
Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
Merged /httpd/httpd/trunk:r1510084
Modified: httpd/httpd/branches/2.4.x/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/CHANGES?rev=1523264&r1=1523263&r2=1523264&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/CHANGES [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/CHANGES [utf-8] Sat Sep 14 15:07:43 2013
@@ -2,6 +2,8 @@
Changes with Apache 2.4.7
+ *) mod_ldap: retry on an LDAP timeout during authn. [Eric Covener]
+
*) mod_ldap: Change "LDAPReferrals off" to actually set the underlying LDAP
SDK option to OFF, and introduce "LDAPReferrals default" to take the SDK
default, sans rebind authentication callback.
Modified: httpd/httpd/branches/2.4.x/STATUS
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/STATUS?rev=1523264&r1=1523263&r2=1523264&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/STATUS (original)
+++ httpd/httpd/branches/2.4.x/STATUS Sat Sep 14 15:07:43 2013
@@ -133,12 +133,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
+1: covener, jim, humbedooh
- * mod_ldap: retry on an LDAP timeout during authn.
- trunk patch: http://svn.apache.org/r1510084
- 2.4.x patch: trunk works
- +1: covener, jim, humbedooh
-
-
* mod_ldap: add TRACE5 for LDAP retries
trunk patch: http://svn.apache.org/r1510085
2.4.x patch: trunk works
Modified: httpd/httpd/branches/2.4.x/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/ldap/util_ldap.c?rev=1523264&r1=1523263&r2=1523264&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/branches/2.4.x/modules/ldap/util_ldap.c Sat Sep 14 15:07:43 2013
@@ -1697,6 +1697,14 @@ start_over:
goto start_over;
}
+ if (result == LDAP_TIMEOUT) {
+ ldc->reason = "ldap_search_ext_s() for user failed with timeout";
+ uldap_connection_unbind(ldc);
+ failures++;
+ goto start_over;
+ }
+
+
/* if there is an error (including LDAP_NO_SUCH_OBJECT) return now */
if (result != LDAP_SUCCESS) {
ldc->reason = "ldap_search_ext_s() for user failed";