Return-Path: X-Original-To: apmail-directory-api-archive@minotaur.apache.org Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74ABDC461 for ; Tue, 23 Jul 2013 07:40:18 +0000 (UTC) Received: (qmail 91785 invoked by uid 500); 23 Jul 2013 07:40:18 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 91768 invoked by uid 500); 23 Jul 2013 07:40:18 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 91760 invoked by uid 99); 23 Jul 2013 07:40:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 07:40:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of a.broekhuis@gmail.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-lb0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 07:40:11 +0000 Received: by mail-lb0-f170.google.com with SMTP id u10so4538456lbi.1 for ; Tue, 23 Jul 2013 00:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=l+lLcKXFz/V+q+XVZiWELT7Zov/UvjyaMh69S5YAfj0=; b=CIPIBOeHGdIsHlmCLqgaVA6Hwua7NXslstn8NRazdyijv/uNe1bCK+u0UX/tauNRmH kvTNeI+W79kOD8+Muaw4Hyr6+lN7daBEEAIPQa7N/TrDPlNe+IXYmUUw99K+n8QAJt3U qUMIvRxjJ8YIgOQBO178GO7pTPieM1hu1mq762Va0QyAW0pBIEZUBv44umdClYmHPpO8 EKJ0iqeBq0vCwcGEymeruS1XvOAuJUGHOz7W9y9Hu+z6MdS25j8Q+6cRs7pbA61Y/BRp Nr706q/lxsVwnFp9opUNP7bNZPFssCdLU9X/n0E1dInNHq8nUkFbdBA6f6IBUCUAPRXu Bglg== MIME-Version: 1.0 X-Received: by 10.152.44.170 with SMTP id f10mr13939451lam.68.1374565191415; Tue, 23 Jul 2013 00:39:51 -0700 (PDT) Received: by 10.112.33.239 with HTTP; Tue, 23 Jul 2013 00:39:51 -0700 (PDT) In-Reply-To: References: <51EE261D.5070200@gmail.com> Date: Tue, 23 Jul 2013 09:39:51 +0200 Message-ID: Subject: Re: Persistent Search From: Alexander Broekhuis To: api@directory.apache.org Content-Type: multipart/alternative; boundary=089e0158caf2f47c9704e228e51a X-Virus-Checked: Checked by ClamAV on apache.org --089e0158caf2f47c9704e228e51a Content-Type: text/plain; charset=ISO-8859-1 > > what is the scope you set in the search request? is your baseDN > "cn=testadd,ou=system"? > The entry has been added using: AddRequestImpl requestImpl = new AddRequestImpl(); requestImpl.setEntry(new DefaultEntry( "cn=testadd,ou=system", // The Dn "ObjectClass: top", "ObjectClass: person", "cn: testadd_cn", "sn: testadd_sn" ) ); AddResponse add = con.add( requestImpl); Does that mean the basedn is "cn=testadd,ou=system"? The search is done using: new Dn("cn=testadd,ou=system"), "(objectclass=*)", SearchScope.ONELEVEL The search scope is onelevel, changing this to object I do see the existing entry and the delete event, but not the add. Perhaps I am using the wrong scope, but I didn't expect to see A(Scope.OBJECT) the existing entry and the delete but not the add, or B (Scope.ONELEVEL): not the existing entry but the delete and add. > > > > > -- > > Met vriendelijke groet, > > > > Alexander Broekhuis > > > > > > -- > Kiran Ayyagari > http://keydap.com > -- Met vriendelijke groet, Alexander Broekhuis --089e0158caf2f47c9704e228e51a--