Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question How to use Generic Ldap Server Metadata ?

  • Nicolas Verscheure
  • Nicolas Verscheure's Avatar Topic Author
  • Offline
More
01 Jun 2016 09:17 #1 by Nicolas Verscheure
How to use Generic Ldap Server Metadata ? was created by Nicolas Verscheure
Hello,

I need to retrieve informations from my LDAP / AD server.
Do you know how to do it with Stambia ?

Or is there another way to do it.

Nicolas
More
01 Jun 2016 16:56 - 01 Jun 2016 16:57 #2 by Thomas BLETON
Replied by Thomas BLETON on topic How to use Generic Ldap Server Metadata ?
Hi Nicolas,

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.

I hope this helps
Last edit: 01 Jun 2016 16:57 by Thomas BLETON.
More
27 Jul 2016 11:40 #3 by Virginie_Samson
Replied by Virginie_Samson on topic How to use Generic Ldap Server Metadata ?
Hello Thomas
We are also interested by the extraction of LDAP directory.
Could you create an article with screen capture about it ?

How to create the metadata LDAP Server (what goes where), how to test it ?
How to use the LDAP Tool ? What does it needs ? How to test it ?

Thanks for all
Virginie
More
28 Jul 2016 17:39 #4 by Cyril Dussud
Replied by Cyril Dussud on topic How to use Generic Ldap Server Metadata ?
Hi,

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.
Attachments:
More
29 Jul 2016 14:02 #5 by Virginie_Samson
Replied by Virginie_Samson on topic How to use Generic Ldap Server Metadata ?
Thanks !
In the file, does the physical name needs to be exactly like the ldap object name?
Or only the name is ok?

In our case, the object name has a '-' in, and the process refused to create the file
More
29 Jul 2016 18:02 #6 by Cyril Dussud
Replied by Cyril Dussud on topic How to use Generic Ldap Server Metadata ?
Hi,

Yes, both the physical name of the file fields and the ldap attributes should be the same.
For the '-' character, we are doing some tests and we we'll answer on the ticket you opened in the support.
More
24 Oct 2018 14:24 #7 by Thomas BLETON
Replied by Thomas BLETON on topic How to use Generic Ldap Server Metadata ?
Here is a screenshot showing the "uid" attribute for the Security authentication :

Attachments: