Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 99006 invoked from network); 12 Mar 2007 22:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 22:04:20 -0000 Received: (qmail 80452 invoked by uid 500); 12 Mar 2007 22:04:24 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 80391 invoked by uid 500); 12 Mar 2007 22:04:24 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 80380 invoked by uid 99); 12 Mar 2007 22:04:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 15:04:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [12.11.148.122] (HELO relay2.ptc.com) (12.11.148.122) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 15:04:12 -0700 Received: from hq-ex3fe3.ptcnet.ptc.com ([132.253.201.67]) by relay2.ptc.com with ESMTP; 12 Mar 2007 18:03:51 -0400 X-IronPort-AV: i="4.14,275,1170651600"; d="scan'208"; a="206579921:sNHT16256372" Received: from [132.253.11.202] ([132.253.11.202]) by hq-ex3fe3.ptcnet.ptc.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Mar 2007 18:03:51 -0400 Message-ID: <45F5CE42.6060001@ptc.com> Date: Mon, 12 Mar 2007 17:03:46 -0500 From: Andy Wang User-Agent: Thunderbird 1.5.0.10 (X11/20070305) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: util_ldap.c use of hardcoded sizelimit on ldap_search_ext_s causing error References: <3ce0569d0702151202l7d7d8252m2d14ccdaf45bb489@mail.gmail.com> <45DABCBE.6720.00AC.0@novell.com> <3ce0569d0702220612n3750e50blf7a7d570a7a4c883@mail.gmail.com> <45DD5F4B.6720.00AC.0@novell.com> In-Reply-To: <45DD5F4B.6720.00AC.0@novell.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Mar 2007 22:03:51.0765 (UTC) FILETIME=[519FF850:01C764F2] X-Virus-Checked: Checked by ClamAV on apache.org Brad Nicholes wrote: > Maybe I missed this before, but what platform or LDAP SDK does this fail on? The Novell LDAP SDK obviously supports LDAP_DEFAULT_SIZELIMIT (-1) and according to the OpenLDAP source code, it also supports the same functionality if the value of sizelimit is -1 even though it does not specifically define LDAP_DEFAULT_SIZELIMIT. I don't know what the Netscape or Microsoft SDKs support other than the fact that we have been passing those SDKs the same -1 value without a problem. I believe that the only reason why we see the hardcoded -1 rather than a #define is simply because not all of the SDKs provide a #define yet they all seems to support the functionality. We just need to validate that theory. > > Brad > > http://issues.apache.org/bugzilla/show_bug.cgi?id=37814 Microsoft's LDAP SDK has problems with -1. The MS SDK uses an unsigned int, so we get 2^32-1 for the size limit which is out of spec per the RFC and openldap 2.2.x doesn't like it. I've never checked to see if the MS LDAP SDK has a LDAP_NO_LIMIT or LDAP_DEFAULT_LIMIT define, so if it doesn't, perhaps someone wants to merge my patch in to this one. Andy