LEX comes with a feature for exportin the attribute lists LDAP data. This function lets you export the content of the current attribute list in the LEX main window or in an standalone attribute window.
You can export a summary of all attributes to a single file, or you can export one or more attributes to separate files.
To initiate the export operation, you have to use the menu option Tools - Directory Export-Attribute List. Or you use the Option Export Attributes from the context menu somewhere in the list:
After this, the Export Attributes window is shown:
Lets have a look at the different export options:
Export all attribute info to one single file
This creates kind of a summary for all attributes of the regarding object:
Export single attributes in separate files
You can select which attributes ar exported. The attributes which were selected when you opened this dialog are pre-selected in the list.
Append data if output file exists
If activated, LEX appends the data if the according export file already exists.
File extension for attribute files
You can set the file extension for the separate attribute files - according to the type of attribute(s) you want to export here.
Short filenames (only RDN)
If you activate this option, the attribute value files are named only with the short relative distinguished name of the regarding object, for example like this
PhilippFoeckeler[userCertificte].cer
Otherwise the full distinguished name is
used for the file names:
CN=PhilippFoeckeler,OU=DivisionD,DC=cerrotorre,DC=de[userCertificate].cer
HexString output for binary attributes
If you activate this option, the binary attributes are translated in a hex string (as described in the topic about Displaying Binary Attributes). Otherwise, LEX tries to export the raw data of these attributes into the according files.
Store multivalued attributes in one single file
If you activate this option, you can write all array members of the regarding attribute to one file. Otherwise, each value is written to it's own file, the files are numbered then. This only applies to multi valued attributes!
Dont extract DNs from attributes
There are attribute syntaxes which contains an object DN in the value, mixed together with other values which are sub-parts of the value. Especially in Novell eDirectory environments this is the case. LEX can extract such DNs from these attributes and can export only the DN to the value files. If you don't want this, deactivate this value.
Some examples:
Strip AOT header
This option applies only to Novell eDirectory environments. For a lot of attributes, Novell defined the values to be in the AOT file format. Sometimes such values are just simple strings, but they are preceded with an ugly AOT file header. LEX can strip of this header and export only the pure data to the export files.