Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 39250 invoked from network); 7 Sep 2010 17:02:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 17:02:38 -0000 Received: (qmail 73735 invoked by uid 500); 7 Sep 2010 17:02:38 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 73692 invoked by uid 500); 7 Sep 2010 17:02:37 -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 73684 invoked by uid 99); 7 Sep 2010 17:02:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 17:02:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dparker@utica.edu designates 72.237.4.94 as permitted sender) Received: from [72.237.4.94] (HELO maea.utica.edu) (72.237.4.94) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 17:02:30 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [10.3.1.40] (ip-3-1-40.utica.edu [10.3.1.40]) by maea.utica.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0L8D00IMMZBL4400@maea.utica.edu> for users@directory.apache.org; Tue, 07 Sep 2010 13:02:09 -0400 (EDT) Message-id: <4C86700A.8020409@utica.edu> Date: Tue, 07 Sep 2010 13:02:02 -0400 From: "David A. Parker" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 To: users@directory.apache.org Subject: Re: Version string in exported LDIF files References: <4C753EB6.4060801@utica.edu> <4C8200F5.1050804@gmail.com> In-reply-to: <4C8200F5.1050804@gmail.com> On 09/04/2010 04:19 AM, Emmanuel Lecharny wrote: > On 8/25/10 8:21 PM, Stefan Seelmann wrote: >>> I have used Apache Directory Studio for a while now, and it seems >>> that in >>> one of the more recent releases, a version line has been added to the >>> LDIF >>> output file if you export a record. The file used to just start with >>> the DN >>> line of the first record. Is there a way to suppress the version line? >> Yes, that was added with version 1.5.0, see >> https://issues.apache.org/jira/browse/DIRSTUDIO-486. >> >> There is now way to supress the version line during export, please >> file a new issue. > > s/now/no/ > > The 'version: 1' line is mandatory per RFC 2849 : > > ldif-file = ldif-content / ldif-changes > > ldif-content = version-spec 1*(1*SEP ldif-attrval-record) > > version-spec = "version:" FILL version-number > Hello, Thanks for the information, I did not realize that it was actually specified in the RFC. It makes sense that this was be added to Directory Studio to make it's LDIF output standards compliant. However, it would still be nice to have the option to suppress this line, similar to how the ldapsearch command gives you the -LLL option, for example. The main reason I asked the question originally was because I had some Perl scripts which parsed LDIF files exported from Directory Studio, and the addition of the version line and the blank line that follows it broke those scripts. I was able to update the scripts and fix the problem without any trouble, but I was surprised that this change in Directory Studio was not accompanied by an option to use the old behavior. I did file a new issue in JIRA, per Stefan's recommendation. Thanks, Dave -- Dave Parker Systems Administrator Utica College Integrated Information Technology Services (315) 792-3229 Registered Linux User #408177