01 Jun 2016 16:56 - 01 Jun 2016 16:57#2by Thomas BLETON
Thomas BLETON replied the topic: How to use Generic Ldap Server Metadata ?
the idea is to use the "TOOL Ldap Extractor", available in the Generic templates distribution.
Then create a metadata, for example with a provider URL which specifies the "request" parameters: ldap://ldapserver:554/ou=COMPANY01,ou=customer,ou=people,dc=stambia,dc=org
Also create a File metadata, where the field names will match your LDAP attribute names.
Drag and drop this ldap metadata + the file metadata on the TOOL. => the LDAP data will be unloaded to the file.
Cyril Dussud replied the topic: How to use Generic Ldap Server Metadata ?
Here is a little more details and screenshots for the explanation provided by Thomas.
The TOOL Ldap Extractor can be found in the generic templates and is used to extract information from an LDAP server to a file.
To use it:
1. First create a LDAP Metadata:
Make sure to specify the LDAP request in the URL.
For example we want here all ldap objects from ou=test,dc=example,dc=com
2. Create a File Metadata
This Metadata will contain a field for each LDAP attribute returned by the request.
In our example it will return two attributes:
This screenshot is from Apache Directory Studio that can be used to manage and view the structure of an LDAP server.
So our file will be like this:
3. Create a process
a. Drag and drop the TOOL Ldap Extractor on it.
b. Drag and drop your LDAP and File Metadata on the tool.
c. Execute the Process.
The file will be filled by the information retrieved from the LDAP server.
Note that for debug purposes, the extracted information are printed too on the Runtime Console.