]> granicus.if.org Git - apache/commitdiff
Don't use a hardcoded cn=* in case the subgroup has no CN.
authorEric Covener <covener@apache.org>
Tue, 1 Oct 2013 16:41:37 +0000 (16:41 +0000)
committerEric Covener <covener@apache.org>
Tue, 1 Oct 2013 16:41:37 +0000 (16:41 +0000)
Submitted By: David Hawes <dhawes vt.edu>
Committed By: Eric Covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528143 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ldap/util_ldap.c

diff --git a/CHANGES b/CHANGES
index 4977bcd0d9d7d8e36815f958c88519da1bfae220..30ae64b00214a8de768d78f8f8c12eaebcb657fc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_ldap: When looking up sub-groups, use an implicit objectClass=*
+     instead of an explicit cn=* filter. [David Hawes <dhawes vt.edu>]
+
   *) mod_ssl: Improve handling of ephemeral DH and ECDH keys by
      allowing custom parameters to be configured via SSLCertificateFile,
      and by adding standardized DH parameters for 1024/2048/3072/4096 bits.
index 0ae19cbdbeeff352500e7604f24b34df162e8cde..750e6a7259dffc84e1ba304e77d0154ef36d8808 100644 (file)
@@ -1243,7 +1243,7 @@ start_over:
 
     /* try to do the search */
     result = ldap_search_ext_s(ldc->ldap, (char *)dn, LDAP_SCOPE_BASE,
-                               (char *)"cn=*", subgroupAttrs, 0,
+                               NULL, subgroupAttrs, 0,
                                NULL, NULL, NULL, APR_LDAP_SIZELIMIT, &sga_res);
     if (AP_LDAP_IS_SERVER_DOWN(result)) {
         ldc->reason = "ldap_search_ext_s() for subgroups failed with server"