Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3BD5DF7B for ; Tue, 12 Feb 2013 09:44:21 +0000 (UTC) Received: (qmail 68696 invoked by uid 500); 12 Feb 2013 09:44:21 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 68283 invoked by uid 500); 12 Feb 2013 09:44:15 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 68217 invoked by uid 99); 12 Feb 2013 09:44:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 09:44:13 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wmueller@scoop-gmbh.de designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 09:44:07 +0000 Received: by mail-wi0-f169.google.com with SMTP id l13so4312599wie.2 for ; Tue, 12 Feb 2013 01:43:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:reply-to:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding :x-gm-message-state; bh=JBQJ5AueoqF3fHC77soibei5Jo4q+7Xg0vZ3JNKOAiM=; b=T9Qz66HP2dD8JXpp5yG3GIu7R5V4OYpt+CNKHBMOinygVzucwW51P8XMCF27ksrUfA t3OxRdCU6UGu8iBvEsrlZ8lZJMgIbLGaKLR7wKg7VzwhB7P2un3nRP0grC2tpzFJlE6N O5Z89gzgznicH8WIOM59oTzv5rrvCKX8sdzOOCwnBlDCGcOrmZ8cUOGfcEjql8jeQBGU i7rloZBB/KoFxE+mKTJsrqmJt1BWnO5CgITcqC+mym/8SOxGWGWgGo8uzDWHDwXPKyPZ z2PwWcuwf4CibANfbQO1S3d86opOcTg6fFm9nlHTOmCUvyciuGLriP0cGAZ2NFsDTKsm 6h/g== X-Received: by 10.194.216.5 with SMTP id om5mr29602029wjc.27.1360662223179; Tue, 12 Feb 2013 01:43:43 -0800 (PST) Received: from [172.23.16.241] ([194.8.222.19]) by mx.google.com with ESMTPS id e12sm38494016wiw.5.2013.02.12.01.43.40 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 01:43:40 -0800 (PST) Message-ID: <511A0ECB.4050807@scoop-software.de> Date: Tue, 12 Feb 2013 10:43:39 +0100 From: "=?ISO-8859-1?Q?Wolfgang_M=FCller?=" Reply-To: wolfgang.mueller@scoop-software.de Organization: SCOOP GmbH User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Kiran Ayyagari CC: users@directory.apache.org Subject: Re: ApacheDS embedded Ldap server example? References: <511275B9.2030903@scoop-software.de> <5114E67A.6010405@scoop-software.de> In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQmIgWk5APD7xgwNxUiEZMTTnmwHqGT9eLm9sbhWhGpvH9FJzZfVV8kb6YB7ED3X0oTTnpKw X-Virus-Checked: Checked by ClamAV on apache.org Am 08.02.2013 17:07, schrieb Kiran Ayyagari: > > > On Fri, Feb 8, 2013 at 5:20 PM, Wolfgang M�ller > wrote: > > Thank you very much, that worked for me. > But there is one problem left - I have a custom partition that I create > and add to the directory service like this: > > DefaultDirectoryServiceFactory factory = new > DefaultDirectoryServiceFactory(); > factory.init("Test"); > service = factory.getDirectoryService(); > Partition partition = new MyPartition(); > partition.setId("My"); > partition.setSuffixDn(new Dn("dc=mycompany,dc=com")); > service.addPartition(partition); > > this looks fine > > The getSuffixDn() method of MyPartition just returns the Dn that was set > with setSuffixDn. > > But when I connect to my ldap server with ADS, I cannot see my > "dc=mycompany,dc=com" entries below the root DSE. And ldap searches > against "dc=mycompany,dc=com" are responded by my custom partition, but > they result in exceptions on the server side. > > do you see the value "dc=mycompany,dc=com" in "namingContexts" attribute > of RootDSE entry? Yes, I see three namingContexts attributes: "ou=system" and "ou=schema" and "dc=mycompany,dc=com". > if yes, then your partition is added. To see and use your partition the > context entry for "dc=mycompany,dc=com" needs to be added What do you mean with "context entry needs to be added"? How do I do that? Well, I am getting a little desperate - to get things working, I added a normal AvlPartition and tried to add a top level element to it. But all I get are exceptions - this is a very time consuming process of guessing and guessing. Do you really have no simple example for a 2.0.0 flavour partition? Or at least a code snippet that successfully adds entries to an AvlPartition? -- Viele Gr��e / Best regards, Wolfgang M�ller - - - - - - - SCOOP Software GmbH Development - Consulting - Evaluation wmueller@scoop-gmbh.de www.scoop-software.de Tel.: +49 221 801916-116 Fax: +49 221 801916-1716 Mobile: +49 175 5901011 Sitz der Gesellschaft: K�ln Handelsregister: K�ln Handelsregisternummer: HRB 36625 Gesch�ftsf�hrer: Dr. Oleg Balovnev Frank Heinen Roland Scheel Dr. Wolfgang Reddig