19
Apache Directory Studio LDIF Editor User's Guide

Apache Directory Studio LDIF Editor

Embed Size (px)

Citation preview

Page 1: Apache Directory Studio LDIF Editor

Apache Directory Studio LDIF Editor

User's Guide

Page 2: Apache Directory Studio LDIF Editor

Apache Directory Studio LDIF Editor: User's GuideVersion 1.5.2.v20091211Copyright © 2006 - 2009 Apache Software Foundation

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Page 3: Apache Directory Studio LDIF Editor
Page 4: Apache Directory Studio LDIF Editor

iv

Table of ContentsI. Getting started ................................................................................................................ 1

1. Download and installation ........................................................................................ 12. Overview ............................................................................................................... 43. Working with the LDIF editor ................................................................................... 54. Outline .................................................................................................................. 75. LDIF Editor preferences ........................................................................................... 7

II. Tasks .......................................................................................................................... 11III. Reference ................................................................................................................... 12IV. Tips and tricks ............................................................................................................ 13V. Release notes ............................................................................................................... 14

Page 5: Apache Directory Studio LDIF Editor

1

Chapter I. Getting startedThis getting started guide provides a brief introduction to the Apache Directory Studio LDIF Editor.

1. Download and installationBeside the integration in Apache Directory Studio the Apache Directory Studio LDIF Editor could alsobe installed as a plug-in into a regular Eclipse installation. This section describes this alternative.

Using the Eclipse Install/Update Manager is the easiest way to install the Apache Directory Studio LDIFEditor plug-in. From workbench menu choose Help # Software Updates # Find and Install... .

In the opened wizard choose Search for new features to install and click Next.

Next please specify the Apache Directory Studio update site. Click the New Remote Site... button. In thedialog input the following and press OK:

• Name: Apache Directory Studio Update Site

• URL: http://directory.apache.org/studio/update/1.x

Make sure the new update site is checked an press Finish.

Page 6: Apache Directory Studio LDIF Editor

Getting started

2

Now the install manager checks the update site and presents the search results. Select the feature you wantto install - of course the Apache Directory Studio LDIF Editor - and click Next.

Accept the license agreement, the Apache Directory Studio LDIF Editor is distributed under the ApacheLicense, Version 2.0.

Page 7: Apache Directory Studio LDIF Editor

Getting started

3

In the next dialog ensure that the Apache Directory Studio LDIF Editor feature is selected and click toFinish.

Now the install manager loads the necessary files. When download is finished you have to verify theinstallation, please click to Install.

After installation it is recommended to restart the Eclipse workbench.

Page 8: Apache Directory Studio LDIF Editor

Getting started

4

2. OverviewThe LDIF editor could be used to edit LDIF files. It could handle LDIF content files as well as LDIFchangetype files. Files with appendix *.ldif are automatically handled by the LDIF editor.

LimitationsThe LDIF editor is still in development. The handling of big LDIF files is a problem because the completefile is loaded into memory which may cause an OutOfMemoryException. The syntax check doesn't workcorrectly. The error annotations and displayed messages are not very helpful at the moment. Currentlythere is no URL support (jpegImage:<file://)

Example screenshot

Syntax coloringSyntax coloring helps you to distinguish the different elements of a LDIF file. By default the followingcolors and fonts are used:

Element Color Example

distinguished name black and bold

attributes violett and bold

values blue

changetype add green and bold

changetype modify yellow and bold

changetype delete red and bold

changetype moddn/modrdn blue and bold

keywords gray

comments dark green

These colors and fonts could be changed in the LDIF Editor Syntax Coloring preferences .

Page 9: Apache Directory Studio LDIF Editor

Getting started

5

3. Working with the LDIF editor

Using LDIF editor

To create a new LDIF file choose File -> New , expand LDAP Browser, select LDIF File and pressthe Finish button.

To open an existing LDIF file choose File -> Open File, that opens a file dialog where you could selectthe LDIF file. Within Eclipse you could also open a LDIF file from Navigator view.

To save the modified LDIF choose File -> Save or File -> Save as and select a save location and enterthe file name.

The LDIF editor also supports default editor functionality like Copy/Paste, Undo/Redo and a Find/Replacedialog, see Edit menu.

Connect with directory and its schema

The LDIF editor could be connected to a directory server and its schema. You could select a connectionat the top of the LDIF editor by pushing the Browse... button and selecting a connection from the dialog.Doing this will provide you the following features:

• The Content Assistent will provide better attribute proposals.

• The best value provider is choosen as default value editor.

• The LDIF could be imported into the selected directory by invoking the execute button.

Content Assistent

The LDIF editor provides a context-sensitive content assistent. To start content assistence press Ctrl+Space, then a popup with proposals is shown. You could select one using the cursur keys or the mouse,press Enter to apply the selected proposal. To close the popup press the ESC key. The following listshows the supported proposals:

• When starting a new record a popup with record templates is shown.

• When writing an attribute in a content or add record a popup with a list with matching attributes is shown.

• In an modify record the popup lists possible modify item templates.

Page 10: Apache Directory Studio LDIF Editor

Getting started

6

Value EditorsIn LDIF values may only contain a subset of ASCII characters. Values with other characters (like accentmark) and even asiatic characters must be encoded using BASE-64. Also binary data like images orcertificates must be encoded.

To edit such values Value editors could be used.

To start a Value editor move the cursor to the attribute or value and select Edit Value from context menuor press F7. This opens the default value editor dialog. You could also open a custom value editor bychoosing one from Edit Value With in context menu.

To apply a modified value press the OK button in the value editor dialog, the previous value is replacedby the new value. Of course in LDIF they are displayed BASE-64 encoded.

LDIF record editorIt is possible to use the well-known Entry editor to edit content records and add records. Move the cursorto the record and choose Edit Record from context menu or press F8. This opens the LDIF record editor.You can add, modify and delete attributes. To apply the modification press OK, the previous record isreplaced by the new one.

Reading BASE-64 valuesThere are two ways to make BASE-64 values human readable:

• Move the mouse over the value, a tooltip with the value is displayed. This works only for text-basedvalues, not for binary values.

• Open the value editor.

Error annotations

Syntax errors are displayed using error annotations. In the ruler the error icon is displayed. Additionalthe erroneous content is red squiggled.

Note: The support for error annotations is still in development and has to be improved. The displayedmessages are not very useful at the moment.

Page 11: Apache Directory Studio LDIF Editor

Getting started

7

FormattingTo format the document or the selected record according the LDIF Editor preferences choose Formatfrom context menu.

FoldingMulti-lined comments, records and multi-lined values could be folded. There is a (+) and (-) in the leftruler to collapse and expand these. By default multi-lined comments and multi-lined values are folded.This behaviour could be changed in LDIF Editor preferences .

Line numbersTo show/hide line numbers toggle the Show Line Number in the context menu of the left ruler.

4. OutlineThe Outline view shows the distinguished names of all the records in the LDIF file, the icon indicates therecord type. The following icons are used:

Icon Description

Content record

Add record

Modify record

Delete record

Moddn/Modrdn record

When expanding the DNs the detail of a record are shown:

Icon Description

Attribute

Value

Changetype add

Changetype modify

Changetype delete

When selecting an element in the Outline view the corresponding element is selected in LDIF editor.

5. LDIF Editor preferencesOn the LDIF Editor preference pages you can configure the LDIF editor.

LDIF EditorOn the LDIF Editor main preference page you can configure common settings.

Page 12: Apache Directory Studio LDIF Editor

Getting started

8

Option Description Default

Text Editors Opens the general text editor preferences. -

Text Formats Opens the LDIF text format preferences. -

Enable Folding Enables folding for multi-lined comments, mulit-lined values and records.

on

Initially fold: Comments Folds multi-lined comments when opening theLDIF editor.

on

Initially fold: Records Folds records when opening the LDIF editor. off

Initially fold: Wrappedlines

Folds multi-lined values when opening the LDIFeditor.

on

Select whole attribute orvalue on double click

If checked the whole attribute description or valueis selected on double click.

on

Update existing entries This options applies for LDIF content records andLDIF add records. If enabled and the entry to addalready exists it will be updated with the attributesdefined in the LDIF record. In detail a replaceoperation for each attribute is performed. Attributesof the existing entry that are not defined in the LDIFrecord remain without modification.

off

Continue on error If checked the import process continues if an erroroccurs while importing a record. If not checked theimport process interrupts.

on

Content Assistant

On the Content Assistant preference page you can configure content assistent settings.

Page 13: Apache Directory Studio LDIF Editor

Getting started

9

Option Description Default

Insert single proposalautomatically

If checked single proposals are insertedautomatically when invoking Strg+Space.

on

Enable auto activation If checked the content assistant is activated after youpause typing for the defined period.

on and 200ms

Smart insert attributename in modificationitems

If checked attribute names are inserted inmodification items when a new line is started.

on

Syntax Coloring

On the Syntax Coloring preference page you can configure fonts and colors.

Page 14: Apache Directory Studio LDIF Editor

Getting started

10

To modify color and font options select a element from the list. The color could be changed by invoking thecolor button. The font options could be changed by toggeling the Bold, Italic, Strikethrough and Underlinecheck boxes.

Changes are immediately displayed in the preview.

Page 15: Apache Directory Studio LDIF Editor

11

Chapter II. TasksTODO...

Page 16: Apache Directory Studio LDIF Editor

12

Chapter III. ReferenceRFCs

RFC 2849: The LDAP Data Interchange Format (LDIF) - Technical Specification [rfc/rfc2849.txt]

Page 17: Apache Directory Studio LDIF Editor

13

Chapter IV. Tips and tricksTODO...

Page 18: Apache Directory Studio LDIF Editor

14

Chapter V. Release notesApache Directory Studio 1.5.2 - (2009,December 11th)

Bug

• [DIRSTUDIO-603] - Error browsing/entering rfc2307 compliant host entry

Apache Directory Studio 1.5.1 - (2009,November 30th)

Bug

• [DIRSTUDIO-598] - Base64 encoded DN marked as invalid in LDIF editor

• [DIRSTUDIO-577] - LDIF editor doesn't notify Eclipse that the LDIF file has changed when saving

Apache Directory Studio 1.5.0 - (2009,November 2nd)

Bug

• [DIRSTUDIO-557] - Edit value and edit entry are not working if DN is invalid

• [DIRSTUDIO-514] - Unable to restore last opened ldif-editors on restart

Improvement

• [DIRSTUDIO-534] - Re-order the preference pages for better understanding

Sub-task

• [DIRSTUDIO-519] - Create a new LDIF Entry Editor

Apache Directory Studio 1.4.0 - (2009, April 7th)Bug

• [DIRSTUDIO-468] - The LDIF parser does not correctly parse changes

New Feature

• [DIRSTUDIO-397] - Request for multi-language GUI

Task

• [DIRSTUDIO-451] - [I18n] Templates not I18ned in LdifEditor

Page 19: Apache Directory Studio LDIF Editor

Release notes

15

Apache Directory Studio 1.3.0 - (2008,November 24th)

Bug

• [DIRSTUDIO-372] - NPE when using the LdifEntryEditorDialog w/o selecting a connection

Task

• [DIRSTUDIO-375] - Move each plugin IDs in a plugin.properties file

• [DIRSTUDIO-374] - Clean duplicated dependencies in plugins

Apache Directory Studio 1.2.0 - (2008, august18th)

Various small bug fixes and improvements.

Apache Directory Studio 1.1.0 - (2008, march31st)

Various small bug fixes and improvements.

Apache Directory Studio 1.0.0 - (2007,september 3rd)

Initial release.