mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
mod_ldap: Fix the search limit parameter to ldap_search_ext_s()
for SDKs that define LDAP_NO_LIMIT to something other than -1. Submitted by: David Jones <oscaremma gmail.com> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@509237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -2,6 +2,10 @@
|
|||||||
Changes with Apache 2.3.0
|
Changes with Apache 2.3.0
|
||||||
[Remove entries to the current 2.0 and 2.2 section below, when backported]
|
[Remove entries to the current 2.0 and 2.2 section below, when backported]
|
||||||
|
|
||||||
|
*) mod_ldap: Fix the search limit parameter to ldap_search_ext_s()
|
||||||
|
for SDKs that define LDAP_NO_LIMIT to something other than -1.
|
||||||
|
[David Jones <oscaremma gmail.com>]
|
||||||
|
|
||||||
*) mod_cache: Use the same cache key throughout the whole request processing
|
*) mod_cache: Use the same cache key throughout the whole request processing
|
||||||
to handle escaped URLs correctly. PR 41475. [Ruediger Pluem]
|
to handle escaped URLs correctly. PR 41475. [Ruediger Pluem]
|
||||||
|
|
||||||
|
@@ -52,6 +52,9 @@
|
|||||||
#define LDAP_CA_TYPE_BASE64 2
|
#define LDAP_CA_TYPE_BASE64 2
|
||||||
#define LDAP_CA_TYPE_CERT7_DB 3
|
#define LDAP_CA_TYPE_CERT7_DB 3
|
||||||
|
|
||||||
|
#ifndef LDAP_NO_LIMIT
|
||||||
|
#define LDAP_NO_LIMIT -1
|
||||||
|
#endif
|
||||||
|
|
||||||
module AP_MODULE_DECLARE_DATA ldap_module;
|
module AP_MODULE_DECLARE_DATA ldap_module;
|
||||||
|
|
||||||
@@ -657,7 +660,7 @@ start_over:
|
|||||||
/* search for reqdn */
|
/* search for reqdn */
|
||||||
if ((result = ldap_search_ext_s(ldc->ldap, (char *)reqdn, LDAP_SCOPE_BASE,
|
if ((result = ldap_search_ext_s(ldc->ldap, (char *)reqdn, LDAP_SCOPE_BASE,
|
||||||
"(objectclass=*)", NULL, 1,
|
"(objectclass=*)", NULL, 1,
|
||||||
NULL, NULL, NULL, -1, &res))
|
NULL, NULL, NULL, LDAP_NO_LIMIT, &res))
|
||||||
== LDAP_SERVER_DOWN)
|
== LDAP_SERVER_DOWN)
|
||||||
{
|
{
|
||||||
ldc->reason = "DN Comparison ldap_search_ext_s() "
|
ldc->reason = "DN Comparison ldap_search_ext_s() "
|
||||||
@@ -935,7 +938,7 @@ start_over:
|
|||||||
if ((result = ldap_search_ext_s(ldc->ldap,
|
if ((result = ldap_search_ext_s(ldc->ldap,
|
||||||
(char *)basedn, scope,
|
(char *)basedn, scope,
|
||||||
(char *)filter, attrs, 0,
|
(char *)filter, attrs, 0,
|
||||||
NULL, NULL, NULL, -1, &res))
|
NULL, NULL, NULL, LDAP_NO_LIMIT, &res))
|
||||||
== LDAP_SERVER_DOWN)
|
== LDAP_SERVER_DOWN)
|
||||||
{
|
{
|
||||||
ldc->reason = "ldap_search_ext_s() for user failed with server down";
|
ldc->reason = "ldap_search_ext_s() for user failed with server down";
|
||||||
@@ -1175,7 +1178,7 @@ start_over:
|
|||||||
if ((result = ldap_search_ext_s(ldc->ldap,
|
if ((result = ldap_search_ext_s(ldc->ldap,
|
||||||
(char *)basedn, scope,
|
(char *)basedn, scope,
|
||||||
(char *)filter, attrs, 0,
|
(char *)filter, attrs, 0,
|
||||||
NULL, NULL, NULL, -1, &res))
|
NULL, NULL, NULL, LDAP_NO_LIMIT, &res))
|
||||||
== LDAP_SERVER_DOWN)
|
== LDAP_SERVER_DOWN)
|
||||||
{
|
{
|
||||||
ldc->reason = "ldap_search_ext_s() for user failed with server down";
|
ldc->reason = "ldap_search_ext_s() for user failed with server down";
|
||||||
|
Reference in New Issue
Block a user