You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/01/16 18:57:52 UTC
svn commit: r735068 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Author: trawick
Date: Fri Jan 16 09:57:52 2009
New Revision: 735068
URL: http://svn.apache.org/viewvc?rev=735068&view=rev
Log:
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]
Modified:
httpd/httpd/trunk/modules/ldap/util_ldap.c
Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=735068&r1=735067&r2=735068&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Fri Jan 16 09:57:52 2009
@@ -371,6 +371,7 @@
((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 @@
ldc->ReferralHopLimit,
result->rc);
result->reason = "Unable to set LDAP_OPT_REFHOPLIMIT.";
+ ldc->reason = result->reason;
uldap_connection_unbind(ldc);
return(result->rc);
}