mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
require LDAPReferralHopLimit > 0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@831549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2401,6 +2401,10 @@ static const char *util_ldap_set_referral_hop_limit(cmd_parms *cmd,
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user