From users-return-4052-apmail-directory-users-archive=directory.apache.org@directory.apache.org Tue Sep 20 22:41:27 2011 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 646207E67 for ; Tue, 20 Sep 2011 22:41:27 +0000 (UTC) Received: (qmail 88738 invoked by uid 500); 20 Sep 2011 22:41:26 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 88708 invoked by uid 500); 20 Sep 2011 22:41:26 -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 88673 invoked by uid 99); 20 Sep 2011 22:41:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2011 22:41:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ayyagarikiran@gmail.com designates 209.85.210.178 as permitted sender) Received: from [209.85.210.178] (HELO mail-iy0-f178.google.com) (209.85.210.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2011 22:41:20 +0000 Received: by iabz21 with SMTP id z21so1574081iab.37 for ; Tue, 20 Sep 2011 15:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=mwpjVvE7HvubCQoV/Sg2y61JG+qI4AqHOY3N+LsBLEw=; b=KWIe7f9hQVi9KakD36LYeg+9SqvfDQq32dDZ7ZJxgTiyo4rgCvQ62slw/+hv1RMR2F p/UbMfxNMz8X0QlG+FE4NvYr3zpO3ZAfx+t55mzm00NTesR9/Oh23+BGPG3Zf8osvT4H W4mlNb8hxNcG8SJzBsLpl83gPlZG41wYMO0Vo= MIME-Version: 1.0 Received: by 10.231.69.69 with SMTP id y5mr2240732ibi.95.1316558459995; Tue, 20 Sep 2011 15:40:59 -0700 (PDT) Sender: ayyagarikiran@gmail.com Received: by 10.231.39.198 with HTTP; Tue, 20 Sep 2011 15:40:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Sep 2011 18:40:59 -0400 X-Google-Sender-Auth: K6KEgSJbWi2BmHzSeNEwr1kufEM Message-ID: Subject: Re: changing directory of ldif/data From: Kiran Ayyagari To: users@directory.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I guess you want to add some new schema to the directory, if that is correct you need to add them directly to the ou=3Dschema partition. This section [1] will help you in understanding the format of the schema en= tries [1] http://directory.apache.org/apacheds/1.5/31-add-your-first-elements-to-= the-schema.html#3.1.Addyourfirstelementstotheschema-UsingApacheDirectoryStu= dioSchemaEditortoloadthenewschemaelements On Tue, Sep 20, 2011 at 5:13 PM, david jones wrote: > i'm having trouble changing the directories of where the ldif is read fro= m > and/or where the ldap data is stored. > > 1) The below works if i set NEW_DIR to an absolute path: > > =A0LdifFileLoader ldifLoader =3D new LdifFileLoader(service.getAdminSessi= on(), > NEW_DIR + "/newSchema.ldif"); > =A0ldifLoader.execute(); > > 2) But this does not work, i.e. its looking in > System.getProperty("user.dir");, not DIFFERENT_DIR for the ldif file > > service.setWorkingDirectory(new File(DIFFERENT_DIR)); > LdifFileLoader ldifLoader =3D new LdifFileLoader(service.getAdminSession(= ), > "/newSchema.ldif"); > > 3) Is there away to change where the schema and system folders are stored= ? > They seem to always go in to "user.dir"/server-work > > 4) does being on 1.5.5 vs. being on 1.5.6,1.5.7 change this behavior? > > 5) does creating a new partition instead of adding my new schema elements= in > cn=3Dother,ou=3Dschema help/hinder this or anything else? > > thanks, > david > > On Tue, Sep 20, 2011 at 1:11 PM, Kiran Ayyagari wro= te: > >> On Tue, Sep 20, 2011 at 12:59 PM, david jones wrot= e: >> > For an embedded server, is it possible to read an ldif in from 1 >> directory >> > (i.e packaged with the product) , and store LDAP data >> (server-work/system) >> > in a different one (i.e. outside of the product directory)? >> > >> no, it is not possible in the way you are doing, >> >> > I'm using apacheds 1.5, i tried the below code, but it seems to be >> ignored >> > when reading in my ldif: >> > service.setWorkingDirectory(new File("\newdir")); >> > >> > Currently i'm adding my schema changes to ou=3Dschema,cn=3Dother, does= that >> > affect ldif input vs. creating a new partition? >> > >> sorry didn't understand, can you elaborate a bit about the above two >> questions >> > >> > Thanks, >> > David >> > >> >> >> >> -- >> Kiran Ayyagari >> > > > > -- > David Jones > jonesda24@gmail.com > c) 302-5648 > --=20 Kiran Ayyagari