httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r831549 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Sat, 31 Oct 2009 15:09:10 GMT
Author: covener
Date: Sat Oct 31 15:09:09 2009
New Revision: 831549

URL: http://svn.apache.org/viewvc?rev=831549&view=rev
Log:
require LDAPReferralHopLimit > 0

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=831549&r1=831548&r2=831549&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Sat Oct 31 15:09:09 2009
@@ -2401,6 +2401,10 @@
 
     dc->ReferralHopLimit = atol(hop_limit);
 
+    if (dc->ReferralHopLimit <= 0) { 
+        return "LDAPReferralHopLimit must be greater than zero (Use 'LDAPReferrals Off' to
disable referral chasing)";
+    }
+
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, cmd->server,
                  "LDAP: Limit chased referrals to maximum of %d hops.",
                  dc->ReferralHopLimit);



Mime
View raw message