From dev-return-28139-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Nov 27 14:42:55 2008 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 47733 invoked from network); 27 Nov 2008 14:42:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2008 14:42:55 -0000 Received: (qmail 58226 invoked by uid 500); 27 Nov 2008 14:43:05 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 58181 invoked by uid 500); 27 Nov 2008 14:43:05 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 58170 invoked by uid 99); 27 Nov 2008 14:43:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2008 06:43:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 72.14.220.157 as permitted sender) Received: from [72.14.220.157] (HELO fg-out-1718.google.com) (72.14.220.157) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2008 14:41:36 +0000 Received: by fg-out-1718.google.com with SMTP id 13so733808fge.3 for ; Thu, 27 Nov 2008 06:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding:from; bh=96pl87ENn2ppjCNxYtoR3pisTObAPoVUy74NHx15Je8=; b=rZfBRbQeys9vvLR16tN9cM0Uui1Eq6I4FiJ/6QPT3wncAe0w3rMehyCpQuHACOwke1 fb9d4Pbu0w8OzSilDkkdZDVfWTGgZVBDsQjNNaEjF2LCQ/CtVe6dYvE92LxooApDeH/+ av46xtsCEyW/jb3Geox3unaSCL5t5MRyG3oLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding:from; b=ZlgiwvfVJZ3Gw99d78cY23E3SDVgP247zAguDMw40YtT601UCPJv834/8wHG6mgtlY uiDZ4fo2BLXKIwcWwg9zcujg/Bx6WaVda9cFpbGsLpNLNfr1p3ZPVFBvoNBefvKKK552 U3kcATMsZgWjwDibpliTEpQFNYtigp+eaberk= Received: by 10.181.48.13 with SMTP id a13mr2367916bkk.43.1227796941127; Thu, 27 Nov 2008 06:42:21 -0800 (PST) Received: from ?192.168.0.12? ([78.226.4.211]) by mx.google.com with ESMTPS id 35sm2065457fkt.14.2008.11.27.06.42.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Nov 2008 06:42:17 -0800 (PST) Message-ID: <492EB1BE.4000005@nextury.com> Date: Thu, 27 Nov 2008 15:42:06 +0100 User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: stability of AD trunk References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Emmanuel Lecharny X-Virus-Checked: Checked by ClamAV on apache.org Norval Hope wrote: > Hi Emmanuel, > > > At any rate the problem(s) I had were all caused to trying to submit a > fairly simple search: > "(&(objectClass=nisNetgroup)(|(nisNetGroupTriple=a*a)(nisNetGroupTriple=\28*,acc1,*\29)))". > I'm not able to verify which of these problems apply to the current > trunk but will list them for the moment anyway: > 1. The ldap codec had a serious bug parsing seach filters, so that > the search above was mangled into > "(&(objectClass=nisNetgroup)(|(nisNetGroupTriple=a*a))(nisNetGroupTriple=\28*,acc1,*\29))" > I have added a test with a PDU for this filter, and it decodes correctly. I have also added a test in the filter parser to see if it parse correctly this filter, and it does. I would like to see the sent PDU, I suspect there might be a JNDI problem at this point. Here is the PDU I have created : /** * Test the decoding of a SearchRequest with a complex filter : * (&(objectClass=person)(|(cn=Tori*)(sn=Jagger))) */ @Test public void testDecodeSearchRequestComplexFilter() { Asn1Decoder ldapDecoder = new LdapDecoder(); ByteBuffer stream = ByteBuffer.allocate( 0x77 ); stream.put( new byte[] { 0x30, 0x75, // LdapMessage 0x02, 0x01, 0x06, // message Id = 6 0x63, 0x53, // SearchRequest 0x04, 0x09, // BasDN 'ou=system' 0x6F, 0x75, 0x3D, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x0A, 0x01, 0x02, // scope = SUBTREE 0x0A, 0x01, 0x03, // derefAlias = 3 0x02, 0x01, 0x00, // sizeLimit = none 0x02, 0x01, 0x00, // timeLimit = none 0x01, 0x01, 0x00, // types only = false (byte)0xA0, 0x35, // AND (byte)0xA3, 0x15, // equals 0x04, 0x0B, // 'objectclass' 0x6F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x43, 0x6C, 0x61, 0x73, 0x73, 0x04, 0x06, // 'person' 0x70, 0x65, 0x72, 0x73, 0x6F, 0x6E, (byte)0xA1, 0x1C, // OR (byte)0xA4, 0x0C, // substrings : 'cn=Tori*' 0x04, 0x02, // 'cn' 0x63, 0x6E, 0x30, 0x06, // initial = 'Tori' (byte)0x80, 0x04, 0x54, 0x6F, 0x72, 0x69, (byte)0xA3, 0x0C, // equals 0x04, 0x02, // 'sn' 0x73, 0x6E, 0x04, 0x06, // 'Jagger' 0x4A, 0x61, 0x67, 0x67, 0x65, 0x72, 0x30, 0x00, // Control (byte)0xA0, 0x1B, 0x30, 0x19, 0x04, 0x17, '2', '.', '1', '6', '.', '8', '4', '0', '.', '1', '.', '1', '1', '3', '7', '3', '0', '.', '3', '.', '4', '.', '2' } ); -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org