From: Jeff Trawick Date: Fri, 16 Jan 2009 17:57:52 +0000 (+0000) Subject: tweak the referral/hoplimit ldap option logic to save the failure reason in the util_... X-Git-Tag: 2.3.2~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=932a6065b294387f3a4a5923c4f89c1ab4a5621f;p=thirdparty%2Fapache%2Fhttpd.git tweak the referral/hoplimit ldap option logic to save the failure reason in the util_ldap_connection_t for later logging old error log message: auth_ldap authenticate: user wbush authentication failed; URI /ldap-status [(null)][Can't contact LDAP server] new error log message: auth_ldap authenticate: user wbush authentication failed; URI /ldap-status [Unable to set LDAP_OPT_REFHOPLIMIT.][Can't contact LDAP server] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@735068 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 062bcfbe54e..736d7acd5b2 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -371,6 +371,7 @@ static int uldap_connection_init(request_rec *r, ((ldc->ChaseReferrals == AP_LDAP_CHASEREFERRALS_ON) ? "On" : "Off"), result->rc); result->reason = "Unable to set LDAP_OPT_REFERRALS."; + ldc->reason = result->reason; uldap_connection_unbind(ldc); return(result->rc); } @@ -390,6 +391,7 @@ static int uldap_connection_init(request_rec *r, ldc->ReferralHopLimit, result->rc); result->reason = "Unable to set LDAP_OPT_REFHOPLIMIT."; + ldc->reason = result->reason; uldap_connection_unbind(ldc); return(result->rc); }