Apache Directory Studio LDAP Browser User Guide
Apache Directory Studio LDAP Browser User Guide
http://www.apache.org/licenses/LICENSE-2.0
iv
Apache Directory
Studio LDAP Browser
v
Chapter I. Getting started
This getting started guide provides a brief introduction to the Apache Directory Studio Browser.
Using the Eclipse Install/Update Manager is the easiest way to install the Apache Directory Studio Browser
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 the
dialog input the following and press OK:
• URL: http://directory.apache.org/studio/update/1.x
1
Getting started
Now the install manager checks the update site and presents the search results. Select the feature you want
to install - of course the Apache Directory Studio Browser - and click Next.
Accept the license agreement, the Apache Directory Studio Browser is distributed under the Apache
License, Version 2.0.
2
Getting started
In the next dialog ensure that the Apache Directory Studio Browser feature is selected and click to Finish.
Now the install manager loads the necessary files. When download is finished you have to verify the
installation, please click to Install.
3
Getting started
For more information about the LDAP perspective see LDAP perspective
3. Create connection
The bottom left corner shows all of the LDAP connections. As can be seen, the view is empty, meaning
a connection still needs to be specified.
In the wizard's first page enter a connection name as well as the hostname and the port of the LDAP server.
To check the connection parameter you entered you may click to Check Network Parameter. Click Next
when done.
4
Getting started
Here is a list of common directory servers and the ports they use by default:
In the wizard's second page select the authentication method. If you choose the simple bind method also
enter your bind DN or user and bind password. To check the authentication parameter you entered you
may click to Check Authentication. Click Finish when done.
Here is a list of common directory servers and the administrator's bind DN and password they use by
default:
5
Getting started
Observe that the Connections view now shows the created connection.
When selecting an entry its attributes and values will be displayed in an Entry editor.
For more information see LDAP Browser view and Entry editors.
For a more advanced serach you may use the search function.
6
Getting started
In the search dialog type in a search name. Select a connection to search on and the search base DN.
Specify a valid LDAP filter and the returning attributes as comma separated list, hit Ctrl-Space to get
content assistance. Additionally you may choose scope, limits, alias and referral options.
4. The category Searches in the LDAP Browser shows the searches. You may expand the search to
see all search result enties.
When selecting a search the search results and returning attributes will be displayed in the Search
Result editor.
When selecting a search result entry its attributes and values will be displayed in the Entry editor.
7
Getting started
For more information see LDAP Browser view and Search Result editor.
8
Chapter II. Tools
1. LDAP perspective
The Apache Directory Studio Browser plug-in provides a LDAP perspective. It is designed for working
with an LDAP directory (browse, edit, search) as well as for editing LDIF files. The views and edtiors
are arranged as follows:
The bottom left view shows all the Connections. It is used to create, edit, delete, open and close
connections. When selecting a single connection the LDAP Browser shows the content of the selected
connection.
The LDAP Browser view is on the top left. It shows the directory information tree (DIT), the persistent
searches and bookmarks of the selected connection. With the LDAP Browser you are able to navigate
and modify the DIT, perform searches and manage bookmarks. When selecting a single entry the Entry
editor shows its attributes and values. When selecting a single search the Search Result editor shows the
search results.
The editor area in the top middle. The following LDAP specific editors are available:
• The Entry editor displays the attributes and values of the currently selected entry. Further it is possilbe
to add, edit and delete attributes
• The Search Result editor shows the result of the currently selected search in a table. Further it is
possible to edit the search result in a spreadsheet-like manner.
• With the Schema Browser you could browse the schema with its object class and attribute definitions.
9
Tools
• The LDIF editor is a rich editor to create LDIF files. It provides well-known Eclipse features like syntax
highlighting and content assistance
The Outline view on the top right displays the structure of the entry currently opended in the entry editor
or the structured outline of the currently opened LDIF file.
The bottom centered view displays all Modifications made on the currently selected connection as LDIF
change records and all Searches performed on the on the currently selected connection as LDIF records.
The bottom right Progress view displays long-running operations like connecting to the directory or
import/export operations.
Organize Connections
It is possible to organize connections in folders and sub-folders. Use drag-and-drop to re-organize
connections and folders.
You could copy and paste the connection parameters as LDAP URL to/from the clipboard. This makes it
very easy to share connection parameters with other users.
Icons
The following icons can appear in the Connections view:
Icon Description
Connection is opened.
Connection is closed.
Secure Connection is opened.
Secure Connection is closed.
Connection folder
Toolbar
Icon Action Description
New Connection... Starts the New Connection wizard
10
Tools
Context Menu
Icon Action Description Shortcut
New Connection... Starts the New Connection wizard
New Connection Opens a dialog to create a new connection
Folder... folder.
Open Connection Opens the selected connection(s)
Close Connection Closes the selected connection(s)
Open Schema Opens the Schema Browser and shows the
Browser schema of the selected connection
Copy Connection Copies the selected connection(s) as LDAP Ctrl-C or Ctrl-Insert
URL(s) to the clipboard. To duplicate an
existing connection please combine copy and
paste.
Paste Connection Pastes the copied connection(s) or LDAP Ctrl-V or Shift-
URL(s) from clipboard. Only enabled if there Insert
are connections or LDAP URLs in clipboard.
Delete Connection Deletes the selected connections(s). Only Delete
enabled if the selected connections are closed.
Select All Selects all connections. Ctrl-A
Rename Connection... Opens a dialog to rename the selected F2
connection.
Rename Connection Opens a dialog to rename the selected F2
Folder... connection folder.
Import # LDIF Starts the LDIF Import wizard.
Import...
Import # DSML Starts the DSML Import wizard.
Import...
Import # Import Starts the Import Connection wizard.
Connections...
Export # LDIF Starts the LDIF Export wizard.
Export...
Export # DSML Starts the DSML Export wizard.
Export...
Export # CSV Starts the CSV Export wizard.
Export...
Starts the Excel Export wizard.
11
Tools
2.2.1. Overview
This section describes general aspects of the LDAP Browser view.
Example screenshot
Icons
The following icons can appear in the LDAP Browser view:
Icon Description
The top-level category containing the directory information tree.
Entry, the icon depends on its object classes.
Alias or referral entry.
The schema entry.
The root DSE entry.
A container for folded entries.
12
Tools
Icon Description
Toolbar
• Show Directory Metadata: Shows the directory metadata entries (e.g. the root DSE or the schema entry)
inside the DIT category.
Quick Search
The Quick Search allows searching the DIT with specifying only a single search attribute and value.
13
Tools
To use the quick search select an entry in the DIT first. It is used as search base.
In the left input field you could type in the search attribute. There is an auto-completion of known attributes.
You could also select a recently used attribute from the drop-down box.
In the next drop-down box you could select the search operations.
In the right input field you could type in the search value. You could use '*' as wildcard. You could also
select a recently used value from the drop-down box.
The icon toggles the search scope: To search only the direct descendants of the selected entry uncheck
the button. Check the button to search the whole subtree.
When pressing the button the search is executed. You could also press Enter in one of the input fields
to execute the search.
The search result is presented directly under the selected entry using a Quick Search icon.
Sort dialog
With the sort dialog you can set the sorting behaviour of the LDAP Browser view.
14
Tools
Navigation
In the DIT category the directory information tree of the LDAP directory is displayed in its natural
hierarchical structure. The first hierachy level contains the base entries, the Root DSE and the schema
entry. When expanding an entry its direct children are fetched from directory. To expand and collapse an
entry you could also double-click.
Children detection
While browsing the directory the LDAP Browser tries to find out if a fetched entry has children. Entries
without children couldn't be expanded. This behaviour could be changed in the LDAP Browser preferences
.
Labels
By default the RDN of the entries is used as label and the length of the label is limited to 50 characters.
This behaviour could be changed in the LDAP Browser preferences . For the Base entries always the
whole DN is used as label.
If an entry has child entries the number of children is appended in parentheses to the label. If the directory
server returned a partial result (e.g. because of count or time limits) a plus (+) character is appended to the
number of children to indicate that there are more child entries. Note: The limit parameters are inherited
from connection properties.
Icons
The following icons are used to distinguish entry types:
Icon Description
Entry with object class person, inetOrgPerson, posixAccount, user
Entry with object class groupOfNames, groupOfUniqueNames, posixGroup,
group
15
Tools
Icon Description
Entry with object class organization, organizationalUnit, container
Entry with object class domain, domainComponent, country, locality
Entry with object class alias
Entry with object class referral
The schema entry.
The root DSE entry.
All other entries
• Disable the options "Finding Base DN" and "Search" in the "Aliases Dereferencing" group of the
Connection properties . This setting will display alias entries in the tree.
• If you know that an entry contains alias child entriy you could select Fetch > Fetch Aliases from the
browser's context menu.
• Enable the option "Use ManageDsaIT control" in the "Controls" group of the Connection properties .
This setting will display referral entries in the tree.
• If you know that an entry contains referrals child entriy you could select Fetch > Fetch Referrals from
the browser's context menu.
Folding
By default the entries of large branches are folded into virtual folders each with 100 entries. This may
help to keep the displayed tree smaller. This behaviour could be changed in the LDAP Browser preferences
.
Filter Children
With the Filter Children action you can define a filter to select entries returned by the server for your
needs. You could recognise a filtered entry by its modified icon and label.
New Search
To perform a new search please choose one of the following methods:
16
Tools
• Select a search or entry and choose New Search... from the context menu. The selected search or
entry is used to preset search parameters.
Navigation
In the Searches category the searches and belonging search results are displayed. The first hierachy level
contains the Searches, the second hierarchie level shows the search result entries. To expand and collapse
a search the double-click could be used.
With the Open Search Result in DIT action the search result entry could be located in the DIT.
Unperfomed Searches
An unperfomed search could be identified by the gray search icon and the absent number in parentheses
at the end of the search name label. To perfom the search expand it or press the refresh button.
Perfomed Searches
A perfomed search could be identified by the yellow search icon If a search is performed the number of
search results is appended in parentheses to the search name label. If the directory server returned a partial
result (e.g. because of count or time limits) a plus (+) character is appended to the number of search results
to indicate that there are more results. To perfom the search again press the refresh button.
Search Results
By default the DN of the search results is used as label and the length of the label is limited to 50 characters.
This behaviour could be changed in the LDAP Browser preferences .
The icons of the search results depends on the RDN type, see DIT category . Additional the search results
have a small overlay image
Folding
By default large search results folded into virtual folders each with 100 entries. This may help to keep
the displayed tree smaller. This behaviour could be changed in the LDAP Browser preferences .
Batch Operation
With the New Batch Operation... action you can execute a modify operation to all search results.
17
Tools
New Bookmark
To create a new bookmark select an entry or search result and choose New Bookmark... from the
context menu.
Navigation
With the Open Bookmark in DIT action the bookmark entry could be located in the DIT.
• Description: Opens the New Entry wizard . The selected entry is used as template or to preset the
parent entry.
• Description: Opens the Search dialog . The selected search or entry is used to preset the search
parameters.
• Shortcut: Ctrl-H
• Description: Opens the bookmark dialog. The selected entry is used to preset the new bookmarks name
and DN.
18
Tools
• Description: Opens the Batch Operation wizard . If one or multiple entries are selected they are used
as operation objects. If a search is selected its search results are used as operation objects.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are selected.
Open Entry
• Description: Opens the selected entry in the default entry editor.
• Icon:
• Description: Displays attributes and values in a table grid. Single-tab means that only one instance of
the editor is used, all entries are opened in the same editor tab. This is the traditional Entry editor.
• Icon:
• Description: Displays attributes and values in a table grid. Multi-tab means that each entry is opened
in its own editor tab.
• Icon:
• Description: Displays attributes and values in LDIF format. Multi-tab means that each entry is opened
in its own editor tab.
• Icon:
• Description: Displays attributes and values in LDIF format. Single-tab means that only one instance
of the editor is used, all entries are opened in the same editor tab.
• Shortcut: F3
Up
• Icon:
19
Tools
• Shortcut: F4
• Description: Copies the selected entries and DNs to the system clipboard. The entries are copied in an
internal format and could be pasted inside the LDAP Browser view. The DNs are copied as text and
could be pasted even outside of Studio.
Paste Entries
• Icon:
• Description: Pastes the previously copied entries as children into the selected entry. If the copied entries
have children you are asked for the copy depth.
The new entries will receive the same RDNs and attributes as the copied entries. If there is already an
entry with the same RDN you are asked how to proceed.
• Enabled: If one entry is selected and the system clipboard contains entries.
Delete
• Icon:
• Description: Deletes the selected elements, the real action depends on the selected elements type:
• Entries or Search Results: The entries and its children are deleted physically from directory. It is not
possible to delete base entries or the root DSE.
• Searches: The selected searches are removed from the view. No entries from directory are deleted.
• Bookmarks: The selected bookmarks are removed from the view. No entries from directory are
deleted.
20
Tools
• Enabled: If one or multiple searches, entries, search results or bookmarks are selected.
• Shortcut: Delete
Move Entries...
• Description: Moves the selected entries to another parent. The Move Entries dialog is opened to select
the new parent DN.
Rename...
• Description: Renames the selected element, the real action depends on the selected element type:
• Entry or Search Result: Renames the selected entry in directory. The Rename Entry dialog is opened
to specify a new RDN.
• Shortcut: F2
• Description: Copies the distinguished name of the selected entry (e.g. cn=John
Fowler,ou=People,o=JNDITutorial)
• DN only
• Icon:
• Description: Copies the distinguished names of the selected entries in LDIF format. If a search is
selected the distinguished names of all search results are copied.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are
selected.
21
Tools
• Icon:
• Description: Copies all returning attributes of the selected search result entries in LDIF format. If a
search is selected the returning attributes of all search results are copied.
• Enabled: If one search is selected or if one or multiple search results are selected.
• Icon:
• Description: Copies all user attributes of the selected entries in LDIF format. If a search is selected
the user attributes of all search results are copied.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are
selected.
• Icon:
• Description: Copies all user attributes and operational attributes of the selected entries in LDIF format.
If a search is selected the attributes of all search results are copied.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are
selected.
• DN only
• Icon:
• Description: Copies the distinguished names of the selected entries in CSV format. If a search is
selected the distinguished names of all search results are copied.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are
selected.
• Icon:
• Description: Copies all returning attributes of the selected search result entries in CSV format. If a
search is selected the returning attributes of all search results are copied.
• Enabled: If one search is selected or if one or multiple search results are selected.
• Icon:
22
Tools
• Description: Copies all user attributes of the selected entries in CSV format. If a search is selected
the user attributes of all search results are copied.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are
selected.
• Icon:
• Description: Copies all user attributes and operational attributes of the selected entries in CSV format.
If a search is selected the attributes of all search results are copied.
• Enabled: If one search is selected or if one or multiple entries, search results or bookmarks are
selected.
Filter Children...
• Icon:
• Description: Opens the Filter Children dialog to specify a children filter for the selected entry.
• Enabled: If one entry in DIT category is selected and a children filter is set.
23
Tools
Refresh
• Icon:
• Description: Refreshes the selected elements. If entries, search results or bookmarks are selected their
attributes and children are refreshed. If searches are selected this searches are performed
• Enabled: If one or multiple searches, entries, search results or bookmarks are selected.
• Shortcut: F5
• Note: This menu item is not available if "Fetch operational attributes while browsing" in the connection
properties is enabled because in that case operational attributes are always loaded.
• Note: This menu item is not available if no alias dereferencing is enabled in the connection properties
because in that case alias entries are always visible.
24
Tools
• Note: This menu item is not available if "Use ManageDsaIT control while browsing" is enabled in the
connection properties because in that case referral entries are always visible.
• Note: This menu item is not available if "Fetch subentries while browsing" is enabled in the connection
properties because in that case subentries are always fetched.
Properties
• Description: Opens the entry properties , search properties or bookmark properties dialog.
• Shortcut: Alt-Enter
Editor Types
There are two editor types available.
• Table Entry editor: Displays the entry's attributes and values in a table grid.
• LDIF Entry editor: Displays the entry's attributes and values in LDIF format.
By default the single-tab Table Entry editor is used, you could change that setting in the Entry Editor
preferences.
• Single-tab means that only one instance of the editor is used, all entries are opened in the same editor tab.
• Multi-tab means that each entry is opened in its own editor tab.
Open Mode
With the open mode you could define how an entry should be opened while navigating through the DIT
in the LDAP Browser view.
• Traditional: Editors open on single-click, using arrow keys triggers the opening of a new editor.
• Application-wide open mode + double-click: Editors open on double-click, using arrow keys requires
an explicit enter to open the entry in an editor.
• Application-wide open mode + single-click: Editors open on single-click, arrow key and hover
behaviour could be configured.
25
Tools
By default the traditional open mode is used, you could change that setting in the Entry Editor preferences.
Example screenshot
Layout
The Entry editor has a two-column layout. The left column contains the attribute descriptions (names), the
right column contains the attribute values. Each line represents a name-value pair.
The Entry editor has its own toolbar. The left part displays the distinguished name of the current entry.
The right part contains the toolbar icons and menu.
26
Tools
These colors and fonts could be changed in the Colors and Fonts preferences .
Toolbar
The toolbar contains the following items:
• Show Operational Attributes: If checked the operational attributes (e.g. createTimestamp and
modifyTimestamp) are displayed.
• Show Decorated Values: If checked decorated values are displayed, this means some additional
information is displayed:
• Save Automatically: If checked, each modifcation (add attribute, edit value, delete attribute) is saved
automatically and a modify request is sent to the server. If unchecked the editor becomes dirty (an
asterisk '*' appears in the editor tab) if the entry is modified. Multiple modifications could be applied to
the entry. The editor must be saved explicitely using Ctrl+S.
27
Tools
Sorting
You could sort the displayed attributes by attribute description or value by clicking to the column header.
The current sort criteria and direction is indicated by an arrow. The default sorting behaviour could be
changed in the Sort Dialog ( Toolbar menu -> Sorting ):
Sort dialog
The default sorting behaviour of the entry editor could be changed in this dialog.
Quick Filter
If an entry has many attributes and values it is difficult to find a specific attribute. The Quick Filter provides
a client-side filter. To show/hide the Quick Filter toggle the button or press Ctrl-F . Enter (even parts
of) attribute descriptions or values into the input fields, only matching attributes keep displayed. When
hiding the filter is removed.
Visible attributes
By default all user attributes of an entry are fetched and displayed in the Entry editor. In the Entry editor
preferences it is possible to define which classes of attributes (must, may, operational) are displayed.
28
Tools
Note: Operational attributes must be requested from the directory. You could define to request operational
attributes for each entry for the whole connection, see Connection properties for details. Another way is
to request operational attributes for the selected entry only, choose Fetch Operational Attributes from
the context menu.
Folding
By default attributes with more than 10 values are folded. The attribute is displayed as single line containing
the number of values
Expand the attribute to make the values visible (double-click works also). To expand/collapse all folded
attributes use the Collapse All and Expand All and buttons from toolbar.
Locate DN in DIT
If a value contains a distinguished name the Locate DN in DIT action can be used to locate and open
the entry in the DIT.
Query by example
When selecting attributes these attribute-value-pairs are used to build a search filter, this feature could be
used for "query by example".
• Select example attributes and choose New Search... from context menu. Watch the search filter in the
search dialog.
• Select example attributes and choose Advanced -> Copy [NOT|AND|OR] Search Filter from context
menu. This copies the search filter to system clipboard.
When building a filter necessary value encoding is supported (*->\2a, (->\28, )->29, \->\5c, NUL->\00).
To enter the edit mode using the default value editor select a value and press Enter or F7 or double-click
the value. If the attribute is a simple string (like givenName or telephoneNumber) the value could be edited
in-place, otherwise a specific value editor dialog is opened. To use a specific value editor choose one from
Context Menu -> Edit Value With .
To finish editing press Enter or click to another value or click the OK button in a value editor dialog. To
cancel editing press ESC or click the Cancel button in a value editor dialog.
29
Tools
One way is to toggle the "save modifications automatically" setting. This could be done from the editor's
drop-down menu or in the Table Entry Editor preferences. This mode could be set independently for the
single-tab and the multi-tab editor. For the single-tab editor it is enabled by default, for the multi-tab editor
it is disabled by default. If disabled the editor becomes dirty (an asterisk '*' appears in the editor tab) if the
entry is modified. The editor must be saved explicitely using Ctrl+S.
Another way is to use the Editor Entry Wizard. To start the wizard press F8 or choose Edit Entry... from
the context menu.
New Attribute...
• Opens the New Attribute wizard . When finishing the wizard a new attribute is created and the edit
mode is started to enter a value.
• Icon:
• Shortcut: Shift-Ctrl-+
New Value
• Adds a new value to the selected attribute and starts the edit mode.
• Icon:
• Shortcut: Ctrl-+
New Search...
• Opens the Search dialog . The selected attributes and values are used to build the search filter (Query
by example).
• Icon:
• Shortcut: Ctrl-H
• Icon:
Locate DN in DIT
• Locates the entry of the selected DN in DIT.
• Icon:
30
Tools
• Shortcut: F3
• Icon:
• Enabled: If one objectClass value is selected and the schema contains this object class.
• Icon:
• Enabled: If one attribute or value is selected and the schema contains this attribute type.
• Icon:
• Enabled: If one attribute or value is selected, the attribute provides an equality matching rule and the
schema contains this matching rule.
• Icon:
• Enabled: If one attribute or value is selected, the attribute provides a substring matching rule and the
schema contains this matching rule.
• Icon:
• Enabled: If one attribute or value is selected, the attribute provides an ordering matching rule and the
schema contains this matching rule.
• Icon:
31
Tools
• Enabled: If one attribute or value is selected, the attribute provides an syntax and the schema contains
this syntax.
Copy Values
• Copies the selected values. The values are copied to clipboard in an internal format so they could be
pasted to another entry even in the search result editor. Additional the displayed values are copied to
the system clipboard as string so they could be pasted in other applications. New-line is used as value
separator.
• Icon:
Paste Values
• Pasted the previously copied values to the current entry. Each value is copied separately, when an error
occurs while adding the value the paste operation will continue with the next value.
• Icon:
Delete
• Deletes the selected attributes and values.
• Icon:
• Shortcut: Delete
Select All
• Selects all attributes and values.
• Shortcut: Ctrl-A
• Icon:
• Icon:
32
Tools
• Icon:
• Icon:
• Icon:
• Icon:
• Icon:
• Icon:
• Default
• Copies the selected attribute and value as LDAP search filter (attribute=value).
• Icon:
• NOT
• Copies the selected attribute and value as LDAP NOT search filter (!(attribute=value)).
• Icon:
• AND
• Copies the selected attributes and values as LDAP AND search filter (&(attribute1=value1)...
(attributeN=valueN)).
• Icon:
33
Tools
• OR
• Copies the selected attributes and values as LDAP OR search filter (|(attribute1=value1)...
(attributeN=valueN)).
• Icon:
• Icon:
• Shortcut: F6
Edit Value
• Edits the selected value using the default value editor. To change the default value editor see Value
Editors preferences .
• Shortcut: F7 or Enter
Edit Entry...
• Opens the Editor Entry Wizard, used to edit the entry offline.
• Shortcut: F8
Reload Attributes
• Reloads the attributes of the current entry.
• Icon:
• Shortcut: F5
34
Tools
Properties
• Opens the Properties dialog with the Attribute properties page or Value properties page .
• Shortcut: Alt-Enter
You could add, modify and delete attributes. To save the modifications to the directory server you must
explicitly save the editor.
It is not possible to modify the distinguished name. It is also not possible to add change the record type
or to add additional records.
Example screenshot
Undo Typing
• Undo the last typing.
• Shortcut: Ctrl-Z
Revert File
• Reverts all unsaved modifications.
Save
• Saves the modified entry to the directory server.
35
Tools
• Shortcut: Ctrl-S
Cuts
• Cuts the selected text to the clipboard.
• Shortcut: Ctrl-X
Copy
• Copies the selected text to the clipboard.
• Icon:
Paste
• Pastes the content of the clipboard.
• Icon:
• Shortcut: F6
Edit Value
• Edits the selected value using the default value editor. To change the default value editor see Value
Editors preferences .
• Shortcut: F7
Edit Record
• Opens the LDIF Record Editor dialog.
• Shortcut: F8
Reload Attributes
• Reloads the attributes of the current entry.
36
Tools
• Icon:
• Shortcut: F5
Preferences
• Opens the LDIF Editor preferences.
2.4.1. Overview
This section describes general aspects of the Search Result editor.
Example screenshot
Layout
The Search Result editor has a multi-column layout, one column for each returning attribute defined in
search parameters. Each line represents a search result with its values.
• A value indicates that the entry has such an attribute with exacly one value.
• X values: ... indicates that the entry has multiple values for that attribute.
You can choose whether the DN of each search result is displayed as first column. Toggle Toolbar menu
-> Show DN .
Toolbar
The toolbar contains the following items:
37
Tools
• Show DN: If checked the distinguished name of each search result is displayed as first column.
• DN as link: If checked the distinguished name of each search result is a link. Clicking to this link will
open the search result entry.
• Show Decorated Values: If checked decorated values are displayed, this means some additional
information is displayed:
2.4.2. Features
This section describes the features of the Search Result editor.
Sorting
To sort the search results by attributes click the column header. The current sort attribute and direction
is indicated by an arrow.
Quick Filter
If there are many search results it is difficult to find a specific one. The Quick Filter provides a client-side
filter. To show/hide the Quick Filter toggle the button or press Ctrl-F . Enter (even parts of) a value
into the input field, only matching search results keep displayed. When hiding the filter is removed.
38
Tools
Navigation
The Locate DN in DIT action locates and opens the entry of a selected DN in the DIT.
The Open Search Result action locates and opens the selected search result.
Copy Table
The Copy Table action copies attributes as displayed in the table to the system clipboard.
By default the tabulator is used as attribute delimiter, a pipe is used as value delimiter and each attribute is
wrapped by double-quotes. These settings are suitable to paste the copied data into Excel or OpenOffice,
the settings could be changed in Text Formats preferences .
Editing
It is possible to add, edit or delete the displayed attributes of the search results in the Search Result editor.
To enter the edit mode using the default value editor select a cell and press Enter or F7 or double-click
the cell. If the attribute is a simple string (like givenName or telephoneNumber) the value could be edited
in-place, otherwise a specific value editor dialog is opened. To use a specific value editor choose one from
Context Menu -> Edit Value With .
To finish editing press Enter or click to another cell or click the OK button in a value editor dialog. To
cancel editing press ESC or click the Cancel button in a value editor dialog.
Multivalued Editor
In LDAP it is possible (and even normal) that an entry has multivalued attributes. To handle this in a
spreadsheet-like editor a special editor is necessary:
• In the cell a multivalued attribute is displayed as "X values: ..." to show the number of values and a
preview
The Mulivalued Editor is similar to the Entry editor: you could add, edit and delete values. Of course it is
limited to edit only the current attribute, not the whole entry.
When editing a multivalued attribute the Multivalued Editor is used as default value editor. When editing
a singlevalued attribute you could select Context Menu -> Edit Value With -> Multivalued Editor .
New Value
• Icon:
39
Tools
• Description: Adds a new value to the selected attribute and starts the edit mode. If the attribute already
contains one or multiple values the Multivalued Editor is opened.
• Shortcut: Ctrl-+
New Search...
• Icon:
• Description: Opens the Search dialog . The selected attribute is used to build the search filter (Query
by example).
• Shortcut: Ctrl-H
• Description: Opens the Batch Operation wizard . If an attribute with one or multiple DNs values are
selected these DNs are used as operation objects. Otherwise the selected attribute is used to build the
search filter (Query by example).
Locate DN in DIT
• Icon:
• Shortcut: F3
• Shortcut: F4
• Description: Opens the Object Class page in Schema Browser and selects the object class definition
of the currently selected objectClass attribute.
• Enabled: If the objectClass attribute is selected and the schema contains this object class.
• Description: Opens the Attribute Type page in Schema Browser and selects the attribute type definiton
of the currently selected attribute.
40
Tools
• Enabled: If an attribute is selected and the schema contains this attribute type.
• Description: Opens the Matching Rule page in Schema Browser and selects the equality matching
rule definiton of the currently selected attribute.
• Enabled: If an attribute is selected, the attribute provides an equality matching rule and the schema
contains this matching rule.
• Description: Opens the Matching Rule page in Schema Browser and selects the substring matching
rule definiton of the currently selected attribute.
• Enabled:If an attribute is selected, the attribute provides a substring matching rule and the schema
contains this matching rule.
• Description: Opens the Matching Rule page in Schema Browser and selects the ordering matching
rule definiton of the currently selected attribute.
• Enabled: If an attribute is selected, the attribute provides an ordering matching rule and the schema
contains this matching rule.
• Description: Opens the Syntax page in Schema Browser and selects the syntax definiton of the
currently selected attribute.
• Enabled: If an attribute is selected, the attribute provides an syntax and the schema contains this syntax.
Copy Values
• Icon:
• Description: Copies the values of the selected attribute. The values are copied to clipboard in an internal
format so they could be pasted to another entry even in the entry editor. Additional they are copied to
the system clipboard as string so they could be pasted in other applications. New-line is used as value
separator. Binary values are copied BASE-64 encoded.
Paste Values
• Icon:
41
Tools
Delete
• Icon:
• Shortcut: Delete
• Description: Copies the distinguished name of the current search result (e.g. cn=John
Fowler,ou=People,o=JNDITutorial)
• Description: Copies the URL of the current search result (e.g. ldap://localhost:389/cn=John
Fowler,ou=People,o=JNDITutorial)
• Copies the attribute description of the selected attribute as string to the system clipboard.
42
Tools
• Default
• Icon:
• NOT
• Icon:
• Description: Copies the selected attribute as LDAP NOT search filter (!(attribute=value)).
• AND
• Icon:
• Description: Copies the selected attribute as LDAP AND search filter (&(attribute1=value1)...
(attributeN=valueN)).
• OR
• Icon:
Edit Value
• Edits the selected attribute using the default value editor. To change the default value editor see Value
Editor preferences .
• Shortcut: F7 or Enter
Search Again
• Icon:
• Shortcut: F5
43
Tools
Properties
• Description: Opens the Properties dialog with the attribute properties page or entry properties page .
• Shortcut: Alt-Enter
2.5.1. Overview
This section describes general aspects of the Schema Browser.
Example screenshot
Layout
The header of the Schema Browser contains the title and the toolbar. The toolbar shows the connection of
the currently displayed schema and a Browse... button to select another connection.
Each page has a master-detail layout. The left part of a page shows a list of all schema elements (like
object class names or attribute types). To search a schema element you can filter the list by typing the
44
Tools
name of the schema element into the filter input field. When selecting one schema element the right part
of the page shows the details.
Navigation
In the detail section references to other schema elements are displayed as hyperlinks. Click to the hyperlink
to jump to the target schema element.
Toolbar
The toolbar contains the following items:
45
Tools
The left part of the page lists the available object classes.
The right part of the page shows the details of the selected object class:
• Details: Shows the OID, names, description and kind of the object class.
• MUST Attributes: Shows all MUST attributes, even those inherited from superclasses.
• MAY Attributes: Shows all MAY attributes, even those inherited from superclasses.
• Superclasses: Shows the object classes this object class is directly derived from (in other words the
parents).
• Subclasses: Shows the object classes derived from this object class (in other words the children).
• Raw Schema Definition: Shows the raw value of the object class definition as returned from server.
46
Tools
The left part of the page lists the available attribute types.
The right part of the page shows the details of the selected attribute type:
• Details: Shows the OID, names, description and usage of the attribute type.
• Flags: Shows if the attribute type is single-valued, read-only and/or collective. Non-matching flags are
greyed-out.
• Syntax: Shows the syntax OID and description and optional a length of the attribute type.
• Matching Rules: Shows the equality, substring and ordering matching rules of the attribute type.
• Other Matching Rules: Shows additional matching rules applicable to the attribute type.
• Used as MUST: Shows object classed where this attribute type is used as MUST.
• Used as MAY: Shows object classed where this attribute type is used as MAY.
• Supertype: Shows the attribute type where this attribute is derived from (in other words the parent).
• Subtypes: Shows attribute types derived from this attribute types (in other words the children).
• Raw Schema Definition: Shows the raw value of the attribute type definition as returned from server.
2.5.4. Syntaxes
The Syntaxes page shows the syntaxes defined in schema.
The right part of the page shows the details of the selected syntax:
47
Tools
• Raw Schema Definition: Shows the raw value of the syntax definition as returned from server.
The left part of the page lists the available matching rules.
The right part of the page shows the details of the selected matching rule:
• Details: Shows the OID, name and description of the matching rule.
• Syntax: Shows the syntax OID and description of the matching rule.
• Raw Schema Definition: Shows the raw value of the matching rule definition as returned from server.
48
Tools
The left part of the page lists the available matching rule use descriptions.
The right part of the page shows the details of the selected matching rule use:
• Details: Shows the OID, namees and description of the matching rules.
• Raw Schema Definition: Shows the raw value of the matching rule use definition as returned from server.
Concept
All modify operations are logged to a logfile in LDIF format. Additionally the result (OK or ERROR) is
prepended as LDIF comment to every log record.
49
Tools
The modification logging mechanism works with logfile rotation. By default 10 logfiles each with 100KB
per connection are used, you may change these settings in the Modification Logs preferences .
Example screenshot
Toolbar
Icon Action Description
Clear Clears the current modification logfile.
Refresh Reloads the current modification logfile.
Older Loads an older modification logfile.
Newer Loads a newer modification logfile.
Export Modification Logs... Exports the modification logs to a file.
50
Tools
Concept
All search requests are logged in LDIF to a logfile, it consists of three parts:
• The initial SEARCH REQUEST record. It contains all search request parameters like search filter, scope
and requested attributes. It also contains the command line argument that could be used to send the same
request using the ldapsearch command line tool.
• Optional multiple SEARCH RESULT ENTRY records, one for each received entry.
• The final SEARCH RESULT DONE record. It contains the number of received entries.
Each part contains a unique number that helps to put together all parts for a specific request in case that
there are multiple requests in parallel.
51
Tools
The search logging mechanism works with logfile rotation. By default 10 logfiles each with 100KB per
connection are used, you may change these settings in the Search Logs preferences
Example screenshot
Toolbar
Icon Action Description
Clear Clears the current search logfile.
Refresh Reloads the current search logfile.
Older Loads an older search logfile.
Newer Loads a newer search logfile.
Export Search Logs... Exports the search logs to a file.
• Enable Search Request Logs: Enables/Disables the search request and search result done logs.
• Enable Search Result Entry Logs: Enables/Disables the search result entry logs. Note: You should only
activate this options for debug reasons, otherwise your logfile will overfill very fast.
52
Tools
• In the Connections view select the New Connection... button or select New Connection... from the
context menu.
• In the Workbench window's toolbar, activate the drop-down menu on the New Wizard button and select
LDAP Connection
• In the Workbench menu bar select File > New > LDAP Connection .
Page 1
The first page allows you to enter a connnection name and the network parameters.
53
Tools
Page 2
On the second page you could specify the authentication parameters.
54
Tools
55
Tools
Page 3
On the third page you could enter additional browser options .
56
Tools
57
Tools
Page 4
On the fourth page you could enter additional edit options.
58
Tools
• OpenLDAP: REPLACE
59
Tools
• In the LDAP Browser view select an entry or search result or bookmark. Then choose New > New
Entry... from context menu.
• In the Workbench window's toolbar, activate the drop-down menu on the New Wizard button and select
LDAP Entry
• In the Workbench menu bar select File > New > LDAP Entry .
Page 1
First you have to select the entry creation method.
With the option Create entry from scratch you could create a the new entry from scratch. All object
classes and attributes have to be specified in the wizard.
The option Use existing entry as template allows you to use an existing entry with its object classes and
attributes as template. The entry used as template could be specified in the input field:
• By default the DN of entry that was selected when the wizard has been started is used as template entry.
• By clicking Browse.... you could open a dialog to select the DN of the template entry.
Page 2
On the second page you have to choose the object classes of the new entry.
60
Tools
The list Available object classes on the left side lists the object classes provided from schema of the
current connection. The list Selected object classes lists the object classes of the new entry. To add object
classed to the "selected" list select some in the "available" list and click the Add button. You could also
double-click an object class in the "available" list. To remove object classed from the "selected" list select
some in the "selected" list and click the Remove button. You could also double-click an object class in
the "selected" list.
Page 3
On the third page you have to define the distinguished name of the new entry.
The parent of the new entry could be specified in the input field:
• If you choosed the "from scratch" method the DN of entry that was selected when the wizard has been
started is used by default. If you choosed the "template" method the parent of the template entry is used
by default.
61
Tools
• By clicking Browse.... you could open a dialog to select the parent DN.
To specify the RDN select an attribute from the drop-down list and enter the value. If you choosed
the "template" method the RDN is preset with the RDN of the template entry. The wizard also support
multivalued RDNs. With the + and - buttons you can add and remove name-value pairs.
When clicking to Next the wizard checks if an entry with the specified DN already exists. In that case you
have to change the DN of the new entry.
Page 4
On the fourth page you have to define the attributes of the new entry.
The layout and features are similar to the Entry editor. You could add, edit or delete attributes and values.
If you have choosed the "template" method all attributes of the template entry are already filled in the new
entry. Otherwise only the selected object classes and the RDN attribute are filled.
As soon as all MUST attributes are filled the Finish button is activated. When clicking the button the new
entry will be created in directory.
62
Tools
• In the LDAP Browser view select an entry or search result or bookmark. Then choose New -> New
Context Entry... from context menu.
• In the Workbench window's toolbar, activate the drop-down menu on the New Wizard button and select
LDAP Context Entry
• In the Workbench menu bar select File > New > LDAP Context Entry .
Page 1
This page is identical to the New Entry wizard.
Page 2
This page is identical to the New Entry wizard.
Page 3
On the third page you have to define the distinguished name of the new entry.
The distinguished name the new context entry could be specified in the input field. The drop-down list
provides all available values from the Root DSE namingContexts attribute.
Page 4
This page is identical to the New Entry wizard.
63
Tools
To start the wizard choose Edit Entry... from the Entry editor's context menu or use the F8 shortcut.
The wizard is also the default value editor for the objectClass attribute, so you could also start the wizard
by editing the objectClass attribute.
Page 1
On the first page you could change the object classes of the entry.
The list Available object classes on the left side lists the object classes provided from schema of the
current connection. The list Selected object classes lists the object classes of the entry. To add object
classed to the "selected" list select some in the "available" list and click the Add button. You could also
double-click an object class in the "available" list. To remove object classed from the "selected" list select
some in the "selected" list and click the Remove button. You could also double-click an object class in
the "selected" list.
Page 2
On the second page you could change the attributes of the entry.
64
Tools
The layout and features are similar to the Entry editor. You could add, edit or delete attributes and values.
As soon as all MUST attributes are filled the Finish button is activated. When clicking the button all
modifications will be sent to to the direcrory.
To create a new attribute select the New Attribute... button in the Entry editor's tool bar or select New
Attribute... from the Entry editor's context menu or hit Shift-Strg-+.
To edit the attribute description select an attribute in the Entry editor and select Edit Attribute Description
from context menu or use the F6 shortcut.
Page 1
On the first page you have to enter the attribute type.
65
Tools
Page 2
On the second page you could specify options.
Option Description
Language tags To provide language-specifc attributes you could use language tags if
supported by the directory. Enter a language code and optionally a country
code into the input fields or select values from drop-down lists. With the + and
- buttons you could add and remove tags.
Other options If needed you may enter specific options. With the + and - buttons you could
add and remove options.
Binary option If checked the binary option is added to attribute description.
Preview Shows a preview of the attribute description.
1. Select a entry, search, attribute or value in the LDAP Browser view, in the Entry editor or in the Search
Result editor.
66
Tools
2. Then choose New Search... from context menu or use the shortcut Ctrl-H or press the Search
button in the Workbench toolbar.
67
Tools
*
) The default values depends on the element that was selected when the wizard has been started:
• Search: All search parameters are taken from the selected search
68
Tools
• Filter: (objectClass=*)
• Returning Attributes: -
• Limits, aliases and referral handling are taken from the entry's connection
• Filter: The filter is build from the selected attributes and values (Query by example)
• Returning Attributes: -
• Limits, aliases and referral handling are taken from connection behind attribute's entry
• In the LDAP Browser view select an entry or search. Then choose New Batch Operation... from
context menu.
• In the Workbench window's toolbar, activate the drop-down menu on the New Wizard button and select
LDAP Batch Operation
• In the Workbench menu bar select File > New > LDAP Batch Operation .
Page 1
TODO..
Page 2
TODO..
69
Tools
Page 3
TODO..
Page 4
TODO..
• In the Connections view select a connection and choose Import > LDIF Import... from context
menu.
• In the LDAP Browser view select an entry and choose Import > LDIF Import... from context menu.
• In the Workbench menu bar select File > Import... and choose LDIF into LDAP .
Logging
When importing LDIF files the import operations could be logged. Every imported record is completely
written into logfile and the result (OK or ERROR) is prepended to every log record as LDIF comment.
70
Tools
The wizard
71
Tools
• In the Connections view select a connection and choose Import > DSML Import... from context
menu.
• In the LDAP Browser view select an entry and choose Import > DSML Import... from context
menu.
• In the Workbench menu bar select File > Import... and choose DSML into LDAP .
The wizard
To start the wizard select Import > Import Connections... from the context menu of the Connections
view.
72
Tools
• In the LDAP Browser view select an entry or a search and choose Export > LDIF Export... from
context menu.
• In the Connections view select a connection and choose Export > LDIF Export... from context
menu.
• In the Workbench menu bar select File > Export... and choose LDAP to LDIF .
Data to Export
On the Data to Export page you have to specify which entries and attributes to export.
The layout of the page is similar to the LDAP Search page . In the Returning Attributes section you
can also choose the following options:
LDIF File
On the LDIF File page you have to select the target LDIF file.
73
Tools
• In the LDAP Browser view select an entry or a search and choose Export > DSML Export... from
context menu.
• In the Connections view select a connection and choose Export > DSML Export... from context
menu.
• In the Workbench menu bar select File > Export... and choose LDAP to DSML .
Data to Export
On the Data to Export page you have to specify which entries and attributes to export.
The layout of the page is similar to the LDAP Search page . In the Returning Attributes section you
can also choose the following options:
DSML File
On the DSML File page you have to select the target DSML file.
74
Tools
• In the LDAP Browser view select an entry or a search and choose Export > CSV Export... from
context menu.
• In the Connections view select a connection and choose Export > CSV Export... from context menu.
• In the Workbench menu bar select File > Export... and choose LDAP to CSV .
Data to Export
On the Data to Export page you have to specify which entries and attributes to export.
The layout of the page is similar to the LDAP Search page . In the Returning Attributes section you
can also choose the following option:
CSV File
On the CSV File page you have to select the target CSV file.
75
Tools
• In the LDAP Browser view select an entry or a search and choose Export > Excel Export... from
context menu.
• In the Connections view select a connection and choose Export > Excel Export... from context
menu.
• In the Workbench menu bar select File > Export... and choose LDAP to Excel .
Data to Export
On the Data to Export page you have to specify which entries and attributes to export.
The layout of the page is similar to the LDAP Search page . In the Returning Attributes section you
can also choose the following option:
Excel File
On the Excel File page you have to select the target Excel file.
76
Tools
• In the LDAP Browser view select an entry or a search and choose Export > ODF Export... from
context menu.
• In the Connections view select a connection and choose Export > ODF Export... from context menu.
• In the Workbench menu bar select File > Export... and choose LDAP to ODF .
Data to Export
On the Data to Export page you have to specify which entries and attributes to export.
The layout of the page is similar to the LDAP Search page . In the Returning Attributes section you
can also choose the following option:
ODF File
On the ODF File page you have to select the target ODF file.
77
Tools
To start the wizard select Export > Export Connections... from the context menu of the Connections
view.
78
Tools
Syntax coloring
Syntax coloring helps you to distinguish the different elements of an LDAP filter. The following colors
and fonts are used:
Element Color
opening and closing parenthesis black and bold
filter operator (& | !) green and bold
attribute violett
filter type red and bold
assertion value blue
• Automatically adds and removes opening and closing parenthesis: just start typing the attribute or filter
operator.
• Hit Strg-Space to open a list of available code completions, press Esc to close the list.
• Attribute completion: when typing an attribute, e.g. "tel" a list with attributes that start with the "tel"
is opened.
79
Tools
• Object class completion: if the attribute is objectClass a list with available object classes is opened.
• Matching rule completion: for filters with extensible matching a list with available matching rules is
provided.
Formatting
In the filter editor it is possible to format complex and nested filters. The formatter is invoked by pressing
the Format button and formats the filter the following way:
When opening the editor the filter is formatted automatically. When pressing OK the line breaks and
white-spaces are removed.
To start the Rename Entry dialog select the entry you want to rename, then choose Rename... from context
menu or press F2.
Note 1: Some directories don't support renaming whole trees but only renaming of leaf entries. In that
case you are ask if you want to simulate the rename operation, this is done by copying the whole tree and
deleting the old tree afterwards.
80
Tools
To start the Move Entries dialog select the entries you want to move, then choose Move... from context
menu.
Note 1: Some directories don't support moving whole trees but only moving of leaf entries. In that case
you are ask if you want to simulate the move operation, this is done by copying the whole tree and deleting
the old tree afterwards.
3.21. Go to DN dialog
The Goto DN dialog is used find an entry in the DIT by its distinguished name.
Enter the DN of the entry into the input field and press OK.
81
Tools
Option Description
Dont't trust this certificate. If you don't trust the certificate choose this option, the connection
won't be established
Trust this certificate for this The certificate is only valid within this session and added to
session. the temporary certificate store. After a restart of Studio you are
asked again You could see all temporary trusted certificates in the
Certificate Validation preferences.
Always trust this certificate. The certificate is permanently valid and added to the permanent
certificate store. You could see all permanent trusted certificates in
the Certificate Validation preferences
View Certificate... Opens the Certificate Viewer dialog, where you could examine the
certificate.
82
Tools
4. Value Editors
4.1. Concept
An LDAP entry contains different attribute types with different syntaxes: objectClasses, names, passwords,
images, etc. To handle the different data types Value Editors are used. Value Editors know how to edit
a value .
The default Value Editor for an attibute is determined using the following procedure:
1. If a Value Editor for the attribute type is specified, this one is used.
2. If a Value Editor for the attribute's syntax is specified, this one is used.
3. If the attribute is binary according to its syntax, the Binary Editor is used.
4. If the attribute is string according to its syntax, the Text Editor is used.
The default Value Editor could be specified by attribute type or syntax in the Value Editors preferences
Another task of a Value Editor is to provide the displayed value for the Entry editor and Search Result
editor. Especially binary data can't be displayed "as-is".
Display value
Values are displayed as stored in directory:
83
Tools
Edit value
Values are edited directly within the entry editor or search result editor. To save the new value press Enter
or click somewhere outside the edit field. To cancel the modification press Esc.
Display value
Values are displayed as stored in directory:
Edit value
Values are edited in a dialog which provides a simple text area. To finish editing press OK to save the
new value or Cancel to discard your modification.
Display value
The displayed value "Binary Data" indicates that the value contains binary data, additional the size in
bytes is shown.
Edit value
The Hex Editor dialog displays the binary data as hex. To create or modify a value load the binary data
from a file using the Load data... button.
84
Tools
Save value
You could also save the current binary data to a file with the Save data... button.
Display value
The real password isn't displayed but only the encryption method.
Details
In the Current Passord tab you see some details about the password.
The current password could also be verified. Enter the compare password into the Verify Password field.
The Verify function compares the current password with the hashed value of the entered password. The
Bind function binds to the directory using the DN of the current entry and the entered password.
85
Tools
Edit value
In the New Passord tab you can enter a new passord. Type in the password in the input field and select a
hash (encryption) method. The preview field shows the resulting password.
Display value
The image type, width, height and size in bytes is used as display value.
Details
In the Current Image tab you see the image and some details about it.
You could also save the current image to a file with the Save... button.
Edit value
In the New Image tab you can load a new image from a file using the Browse... button.
86
Tools
Display value
The objectClass name and the type of object class (structural, auxiliary, abstract) is used as display value.
Edit value
In the Object Class Editor dialog you can select the available object classes from a drop-down list.
Display value
Values are displayed as stored in directory, dollar characters are replaced by commas.
87
Tools
Edit value
Values are edited in a dialog which provides a simple text area. Dollar characters are replaced by line
breaks.
4.9. DN Editor
The DN Editor is the default editor for attributes with distinguished name syntax.
Display value
Values are displayed as stored in directory.
Edit value
The edit dialog looks as follows:
• By clicking Parent the parent DN of the current DN appears in the input field.
• Browse.. opens a DN Selector, similar to the LDAP Browser. You can browse and filter to find an entry.
When selecting an entry its DN appears int the input field.
88
Tools
Display value
The values are converted to local time.
Edit value
The edit dialog looks as follows:
• You could set the time, pick a date from the calendar and choose a time zone.
• You could manually edit the raw value in the input field.
89
Tools
Display value
The values are suffixed with the textual description of the OID.
Edit value
The In-Place Text Editor is used to edit values.
Display value
The certificate type, version and owner are displayed.
You could also save the current certificate to a file with the Save Certificate... button.
90
Tools
To modify the certificate in the directory server load the new certificate from a file using the Load
Certificate... button and press the OK. button.
5. Properties
5.1. Connection properties
The following properties can be modified on the Connection properties pages:
Network Parameter
Field Description
Connection name The name of the connection. In the Connections view the connection
is listed with this name. The name must be unique.
Hostname The hostname or IP address of the LDAP server. A history of recently
used hostnames is available through the drop-down list.
Port The port of the LDAP server. The default port for non-encyrpted
connections is 389. The default port for ldaps:// connections is 636. A
history of recently used ports is available through the drop-down list.
Encryption method The encryption to use. Possible values are 'No encrypton', 'ldaps://'
and 'StartTLS extension'.
Check Network Parameter Use this function if you want validate that the entered information is
correct and the server is reachable.
91
Tools
Authentication
Field Description
Authentication Method Select your authentication method between:
92
Tools
Field Description
Check Authentication Use this function if you want to attempt a connection plus a bind to
the host upon completion of the wizard to validate that the entered
information is correct.
Option Description
SASL Realm The SASL Relam used to bind, only applicaple if DIGEST-MD5 is
choosen.
Quality of Protection The QoP to use: authentication only, with integrity protection, and
with privacy protection
Protection Strength The protection strength to use
Mutual Authentication If checked mutual authentication is used, that means the server
has to authenticate itself to the client. If unchecked only the client
authenticates itself to the server.
Use native TGT If checked the native credential cache is used, thus no additional
authentication is necessary. Note that on Windows systems that
requires a modification of the registry.
Object TGT from KDC If checked a new TGT is obtained from the KDC. Username and
password must be provided.
Use native system configuration If checked the native Kerberos configuration is used (e.g. /etc/
krb5.conf).
Use configuration file If checked a custom configuration file could be used.
Use following configuration If checked the Kerberos configuration parameters (realm, host, port)
could be set in the dialog.
93
Tools
Browser Options
Field Description
Get base DNs from Root DSE If checked the base DNs are fetched from namingContexts attribute
of the Root DSE.
Fetch Base DNs Use this function to get the namingContext values from the Root DSE.
The returned values will appear in the 'Base DN' drop-down list.
Base DN The base DN to use. You may enter a DN manually or you may select
one from the drop-down list. This field is only enabled if the option
'Get base DNs from root DSE' is off.
Count Limit Maximum number of entries returned from server when browsing the
directory, it is also used as default value when searching the directory.
A value of 0 means no count limit. Note that this value is a client-side
value, its possible that also a server-side limit is used.
Time Limit The maximum time in seconds the server searches for results. This
is used as default value when browsing or searching the directory. A
value of 0 means no limit. Note that this value is a client-side value,
its possible that also a server-side limit is used.
Alias Dereferencing Specifies whether aliases should be dereferenced while finding the
search base entry or when performing the search or both. To manage
(create, modify, delete) alias objects you have to uncheck both
options.
Referrals Handling Specifies the referral handling.
94
Tools
Field Description
specific referral URL, this way you have full control regarding
encryption and authentication options when following referrals.
95
Tools
Edit Options
Field Description
Modify Mode Specify the modify mode for attributes with an equality matching rule.
Description of options:
96
Tools
Field Description
• ApacheDS: Optimized Modify Operations or REPLACE
• OpenLDAP: REPLACE
Root DSE
The Root DSE properties page provides information about the connected directory server like directory
type and version, controls, extensions and features.
97
Tools
Schema
The Schema properties page provides some information about the schema. The 'Schema Information' group
shows the schema DN an modification timestamp. With the 'Reload Schema' button a schema reload could
be forced, the schema is reloaded automatically if the directory's schema is newer than the cached one.
The 'Schema Cache' group shows information about the cached schema.
The first two lines shows the DN and LDAP-URL of the entry.
The 'Create and Modify Information' group shows the create and modify timestamp and DN. If no values
are shown use the 'Refresh' button to load the attributes.
98
Tools
The 'Sizing Information' group shows information about the entry size in bytes, the number of children,
attributes and values. To take operational attributes into account check 'Include operational attributes'. The
'Refresh' button reloads the attributes and counts children.
The first four lines shows the attribute description, the type (String or Binary), the values count and the
size in bytes.
The next four groups shows the attribute's schema definition, similar to the Attribute Type schema page.
99
Tools
Field Description
Attribute Description The attribute description of the attribute
Value Type String or Binary
Value Size If Binary the size in bytes. If String the number of characters and the
size in bytes. These two number could differ if the value contains
multibyte characters.
Data Nothing if Binary. If String the raw value as returned form server.
100
Tools
101
Tools
6. Preferences
6.1. Connections
In the Connections preferences page you can configure general settings for LDAP Connections.
102
Tools
If Validate certificates for secure LDAP connections is checked, Apache Directory Studio checks
certificates when a secure LDAP connection (ldaps or StartTLS) is established. The following checks are
performed: a valid certification path with a trusted root CA must exist, the certificate must not be expired,
the hostname must match the certificate subject common name, the certificate must not be self-signed.
If validation fails the Certificate Trust dialog pops up and the you could manually trust a certificate. Those
certificates are listed in the "Permanent Trusted" and "Temporary Trusted" lists. You could examine those
certificates using the View button. You can remove certificates if you don't trust them any more using
the Remove button.
103
Tools
By default non-text attributes are displayed in a user-friendly way within the Entry editor and the Search
Result editor. For example if an attribute contains a timestamp it is displayed in your local date format.
When unchecking the option Show decorated values the values are displayed as returned from directory.
In the Attribute Colors and Fonts group you can define the style how attributes and values are displayed
within the Entry editor and the Search Result editor.
104
Tools
With the open mode you could define how the entry editor should be opened while browsing through the
DIT.
In the entry editors section you could define your preferred order of available entry editors using the Up/
Down buttons. The topmost entry editor in the list is the default entry editor.
105
Tools
106
Tools
LDIF
In the LDIF tab you can configure the LDIF format.
107
Tools
CSV Copy
In the CSV Copy tab you can configure the format used when copying CSV to clipboard (Copy Entry as
CSV, Copy Table).
108
Tools
CSV Export
In the CSV Export tab you can configure the format used when exporting to CSV.
109
Tools
Excel Export
In the Excel Export tab you can configure the format used when exporting to Excel.
110
Tools
ODF Export
In the ODF Export tab you can configure the format used when exporting to Open Document Spreadsheet
format.
111
Tools
You can specify value editors by attribute type or by syntax. If a value editor is specified by syntax the
value editor is used for all attributes with this syntax. A value editor specified for an attribute overwrites
the syntax-setting.
112
Tools
113
Tools
114
Tools
115
Chapter III. Tasks
1. Managing connections
1.1. Creating a connection
Using the New Connection wizard
To create a new connection please use the New Connection wizard.
1. Select the connection you want to duplicate and select Copy Connection from context menu or use
the Strg-C shortcut.
2. Afterward select Paste Connection from context menu or use the Strg-V shortcut. Observe the new
connection, prefixed with "Copy of ".
In the opened dialog enter the new name and press OK.
116
Tasks
• In the Connections view select a connection and choose Open Connection from context menu or
from toolbar.
• Double-click a connection.
Import/Export connections
You could use the Export Connection wizard and Import Connection wizard to export and import
connections.
RFC 2255 specifies the LDAP URL format. Apache Directory Studio uses the host and port field and uses
X- extensions for all other connection paramter.
117
Tasks
When you copy a connection within the Connections view it is copied in the described format to your
clipboard. You could then paste this LDAP URL into a text editor or to an email.
The same way you could copy an LDAP URL from somewhere and paste it into the Connections view.
2. Browsing directory
2.1. Handling large number of entries
A directory may have entries with thousands of child entries. It is not recommended to fetch all these
children when browsing because this increases directory and network load and is very time consuming.
Filtering children
Another option is to use a filter to limit the fetched children. Choose Filter Children... from context
menu. In the opened dialog you could define a LDAP filter. Hit Strg-Space to get content assistance. The
drop-down list provides a history of recently used filters. A click to the Filter Editor button opens the
Filter Editor dialog.
118
Tasks
3. Managing entries
3.1. Creating an entry
To create a new entry please use the New Entry wizard.
2. After finishing the wizard a proper Value editor is invoked. Enter the value and press Enter.
2. Choose New Value from tool bar or context menu or hit Strg-+. This invokes a proper Value editor
119
Tasks
2. Invoke the default Value editor by pressing Enter or F7 or double-click the value.
or
Invoke a custom Value editor by choosing one from Edit Value With in the context menu.
120
Chapter IV. Reference
RFCs
RFC 4510: LDAP: Technical Specification Road Map [rfc/rfc4510.txt]
RFC 4511: LDAP: The Protocol [rfc/rfc4511.txt]
RFC 4512: LDAP: Directory Information Models [rfc/rfc4512.txt]
RFC 4513: LDAP: Authentication Methods and Security Mechanisms [rfc/rfc4513.txt]
RFC 4514: LDAP: String Representation of Distinguished Names [rfc/rfc4514.txt]
RFC 4515: LDAP: String Representation of Search Filters [rfc/rfc4515.txt]
RFC 4516: LDAP: Uniform Resource Locator [rfc/rfc4516.txt]
RFC 4517: LDAP: Syntaxes and Matching Rules [rfc/rfc4517.txt]
RFC 4518: LDAP: Internationalized String Preparation [rfc/rfc4518.txt]
RFC 4519: LDAP: Schema for User Applications [rfc/rfc4519.txt]
RFC 2849: The LDAP Data Interchange Format (LDIF) - Technical Specification [rfc/rfc2849.txt]
RFC 3866: Language Tags and Ranges in the LDAP [rfc/rfc3866.txt]
Obsolete RFCs
RFC 2251: Lightweight Directory Access Protocol (v3) [rfc/rfc2251.txt]
RFC 2252: Attribute Syntax Definitions [rfc/rfc2252.txt]
RFC 2253: UTF-8 String Representation of Distinguished Names [rfc/rfc2253.txt]
RFC 2254: The String Representation of LDAP Search Filters [rfc/rfc2254.txt]
RFC 2255: The LDAP URL Format [rfc/rfc2255.txt]
RFC 2256: A Summary of the X.500(96) User Schema for use with LDAPv3 [rfc/rfc2256.txt]
RFC 2829: Authentication Methods for LDAP [rfc/rfc2829.txt]
RFC 2830: Extension for Transport Layer Security [rfc/rfc2830.txt]
Tutorials
JNDI Tutorial [http://java.sun.com/products/jndi/tutorial/]
121
Chapter V. Tips and tricks
TODO...
122
Chapter VI. What's new
What's new in 1.5.0
Entry editors enhancements
The traditional table entry editor can now work in offline mode where modifications aren't saved
immediately.
A new LDIF etry editor is now available, it renders LDAP entries in LDIF format and allows editing of
those entries.
Both editors can operate in single-tab (opens each entry in the same editor tab) or in multi-tab (opens each
entry in its own editor tab) mode.
Modify operations (add, delete, replace) are configurable which allows specific adjustments for various
directory servers.
Server certificates of secure connections (ldaps and StartTLS) are now validated.
• Value editors for Microsoft Active Directory objectGUID and objectSid attributes
123
What's new
Besides these key new features, the LDAP Browser plugin has received a number of bug fixes and
improvements. A detailed report is provided in the Release Notes section.
Apache Directory Studio is now fully internationalized. Out of the box English, French and German
translations are provided.
Quick Search
The Quick Search could be used to search the DIT without opening a search dialog an filling all the input
fields. See Quick Search for details.
124
What's new
The new Date & Time Editor help you to view and edit attributes with generalized time syntax.
Besides these key new features, the LDAP Browser plugin has received a number of bug fixes and
improvements. A detailed report is provided in the Release Notes section.
Using this wizard it is possible to edit an entry offline and make multiple modifications and submit all
modification in one request to the server. For instance this is necessary when adding a new object class
which contains some mandatory attributes. Please see Edit Entry wizard for details.
125
What's new
The paged results control is supported. It could be used to fetch only a limited number of entries from the
server while browsing in the DIT.
Now it is possible to select whether existing entries should be overwritten during an LDIF import. This is
useful if you already imported LDIF data into your directory and you want to import some modified LDIF.
Go to DN Dialog
There's a new DN which could be used to find an entry in DIT by its distinguished name.
Besides these key new features, the LDAP Browser plugin has received a number of bug fixes and
improvements. A detailed report is provided in the Release Notes section.
A new Search Logs view has been added to the LDAP Browser plugin. This view lets the user review all
the searches he has been running on a server and makes it very handy and easy to copy/paste LDAP URLs
or command line from the searches run in the UI.
126
What's new
Connections Import/Export
It is now possible to import/export the connections from/to a single file. This is very interesting to share
connections between computers or people.
Besides these key new features, the LDAP Browser plugin has received a number of bug fixes. A detailed
report is provided in the Release Notes section.
The LDAP Browser plugin now supports reoganizing connections inside folders in the Connections View
. This is a great improvement for grouping related connections together and keep the view clean.
The Object Classes page of the New Entry Wizard has been quite improved with:
• an icon aside each object class indicating whether it is an 'Abstract', 'Auxiliary' or 'Structural' object class
• a new warning panel, showing up when the current selection does not contain any structural
• new key bindings for a better selection of object classes using the keyboard
127
What's new
The Password Editor has been updated to support lowercased Hash Methods (e.g. "{crypt}"). The
Password Editor now supports the following Hash Methods in both uppercase and lowercase:
• CRYPT
• SHA
• SSHA
• SSHA
• MD5
• SMD5
Besides these key new features, the LDAP Browser plugin has received a number of bug fixes. A detailed
report is provided in the Release Notes section.
128
Chapter VII. Release notes
Apache Directory Studio 1.5.2 - (2009,
December 11th)
Bug
• [DIRSTUDIO-601] - The 'Perform Search/Search Again' button in the Search Result Editor does not
work correctly
• [DIRSTUDIO-597] - Modification sent to the server while browsing through the DIT and refreshing
entries
• [DIRSTUDIO-595] - The icon of the entry in the 'Outline' view should be the same as the one in the
'LDAP Browser' view
• [DIRSTUDIO-594] - The 'Show new password details' checkbox does not display the 'Enter new
password' text field as clear text when checked in the Password Editor
• [DIRSTUDIO-593] - Missing string and typo in the french translation of the Password Editor
• [DIRSTUDIO-592] - LDAP Browser view is refreshed twice after the initialization of the children of
an entry
• [DIRSTUDIO-590] - The 'Quick Search' string has not been externalized in the LDAP Browser view
• [DIRSTUDIO-589] - InvalidNameException: unexpected token for user ids starting with hash sign
• [DIRSTUDIO-580] - Setting "Validate certificates for secure LDAP connections" is not saved
129
Release notes
• [DIRSTUDIO-553] - Add descriptions for server specific OIDs of IBM Tivoli Directory Server 6.1
and 6.2
• [DIRSTUDIO-550] - Root DSE properties: Directory types IBM Tivoli Directory Server 6.1 and 6.2
not detected correctly
• [DIRSTUDIO-531] - Unpretty 2-3 pixels height margin at the top of the Search Results editor
• [DIRSTUDIO-530] - Unpretty 2-3 pixels height margin at the top of the Entry editor
• [DIRSTUDIO-529] - Unpretty 2-3 pixels height margin at the top of the Browser view
• [DIRSTUDIO-524] - Operational attributes are not show, although enabled under preferences
• [DIRSTUDIO-507] - Attempt to rename the rdn results in message contain {0} and {1}
• [DIRSTUDIO-504] - Timestamp attribute with an invalid time in it is read only - editor ignores entry
• [DIRSTUDIO-503] - New Entry -> Available object classes list remains stale after new objectclasses
added
• [DIRSTUDIO-502] - Copy/Paste the context entry from one connection to another doesn't work
• [DIRSTUDIO-493] - Aliased attributes show only one attribute name in the RDN selection list instead
of the full aliases list
• [DIRSTUDIO-488] - New context entry creation is not shown just after connection
130
Release notes
• [DIRSTUDIO-403] - Cannot add refs when the ExtensibleObject OC has been added to a referral
• [DIRSTUDIO-402] - The ManageDsaIT control should be activable for a single request, not at the
connection level
• [DIRSTUDIO-334] - Built-in help doesn't show icons for "Icons" and "Toolbars" tables in "LDAP
Browser View"
Improvement
• [DIRSTUDIO-574] - Add 'Cancel' button to "Select copy strategy" (was Abort of copy/paste not
possible)
• [DIRSTUDIO-558] - Load special entries (aliases, referrals, subentries) per request, add menu items
to browser's context menu
• [DIRSTUDIO-535] - Use SWT.SEARCH and SWT.CANCEL style bits on search text field for a native
search field on Mac OS X
• [DIRSTUDIO-533] - Only show referral handling dialog when opening or expanding referral entry
• [DIRSTUDIO-371] - Entries with a ref attribute should be shown N times in the browser (N = number
of ref values)
New Feature
• [DIRSTUDIO-562] - Add 'Copy Display Value' action, default copy action should copy displayed value
• [DIRSTUDIO-434] - Add value editor for Active Directory objectGUID and objectSid attributes
Sub-task
131
Release notes
Task
Wish
• [DIRSTUDIO-167] - Show custom icons for various kinds of schema elements while browsing schema
data
• [DIRSTUDIO-470] - Schema Browser view is not bring to front when using the 'Open Schema Browser'
menu item while the view is already opened but not the frontmost view
• [DIRSTUDIO-465] - Context entry created from an LDIF import is not shown in the Browser view
• [DIRSTUDIO-460] - Pressing 'Enter' in New Entry wizard should edit the attribute
• [DIRSTUDIO-423] - Outline view does not respect the settings of the Entry Editor on displaying or
not the operational attributes
• [DIRSTUDIO-373] - Can't delete a tagged attribute if the non tagged attribute belong to the DN
Improvement
• [DIRSTUDIO-412] - Add expand all and collapse all actions to the connections view
132
Release notes
• [DIRSTUDIO-241] - The "New Value" action (in the Entry Editor) should be disabled if the AT is
defined as single valued
• [DIRSTUDIO-234] - Greyed out menu items should have a tool tip explaining *why* they're greyed out
New Feature
• [DIRSTUDIO-380] - Attribute and Entry property pages makes the dialog very tall
• [DIRSTUDIO-355] - DSML Import and Export fail with "Internal Error: null"
• [DIRSTUDIO-293] - Values of attributes of the syntax 'Generalized Time' must have the g-time-zone
'Z' and minutes and seconds set to be interpreted and shown as a date instead of the raw value
• [DIRSTUDIO-291] - Adding of an objectclass requiring attributes not present to an entry in the ldap
browser, modify operation fails
Improvement
• [DIRSTUDIO-407] - In the NewEntryWizard, the first selected object class on the left side should be
added if the Enter key is hit in the text field
• [DIRSTUDIO-383] - Make "Fetch subentries" setting configurable per connection, move from browser
preferences to connection properties
• [DIRSTUDIO-378] - An attribute name containing an underscore ("_") is split in two when used in
"Returning Attributes" field of the "Search" dialog
133
Release notes
• [DIRSTUDIO-363] - Browser View doesn't accept menu additions thru viewerContribution extension
point
• [DIRSTUDIO-291] - Using the 'new entry'/'use existing entry as template' feature from the context menu
of an entry, the parent dn is also copied from the template entry
• [DIRSTUDIO-244] - Add selection for copy strategy if an entry to copy already exists
New Feature
• [DIRSTUDIO-107] - Enable Select/Copy in Property page of RootDSE in order to copy and paste
detected OIDs
• [DIRSTUDIO-85] - Add support for search dialog to include * and + for returnable attributes
Task
• [DIRSTUDIO-365] - Can't delete entry with studio 1.1.0. works with 1.0.1
134
Release notes
• [DIRSTUDIO-326] - Non-Operational attributes are marked as operational when bind to Siemens DirX
7.0
• [DIRSTUDIO-319] - LDAP Browser creating new entry becomes empty and unusable in Windows
Vista after certain actions
• [DIRSTUDIO-318] - Rename of multi-values RDN does not work when changing the second RDN
• [DIRSTUDIO-315] - Choosing new value, in entry editor shows new entry when server error occures
Improvement
New Feature
Task
• [DIRSTUDIO-128] - Replace internal schema parser with the schema parser in shared-ldap.
• [DIRSTUDIO-286] - Update Site is not working, missing dependencies in ldifeditor, ldapbrower and
schemaeditor feature
• [DIRSTUDIO-281] - LDIF and Apache DS configuration files can't be saved in RCP mode
• [DIRSTUDIO-279] - Filter Editor doesn't remove spaces and line breaks after OK
135
Release notes
• [DIRSTUDIO-270] - Copy and paste does not work when value being edited
• [DIRSTUDIO-269] - Attributes not displayed when browsing BEA Weblogic embedded LDAP
• [DIRSTUDIO-261] - LDAP Browser shows same root objects two times under Root DSE
• [DIRSTUDIO-250] - Unable to load entries if RDN is quoted and contains unescaped comma
• [DIRSTUDIO-249] - Modification Logs view does not display request controls, if sent to the server
• [DIRSTUDIO-242] - Inconsistent state of the Entry Editor after using "New Value" (or "New
Attribute...") and pressing "Escape".
• [DIRSTUDIO-235] - Non ASCII characters are not rendered properly in the LDAP Browser View when
label is limited to a certain number of characters
• [DIRSTUDIO-223] - NullPointerException raised when adding values in the New Entry Wizard
• [DIRSTUDIO-152] - New entry creator does not know that 'dc' and 'domainComponent' is the same
thing
Improvement
• [DIRSTUDIO-156] - useability improvement: when exporting an OU use the applied filter by default
136
Release notes
New Feature
Task
• [DIRSTUDIO-186] - When copying an entry it isn't displayed correctly in the browser tree
Improvement
• [DIRSTUDIO-185] - Provide completion for all attribute types in the attribute wizard
137