If you often need to access an LDAP directory, you want to centralize your LDAP server connection in the Repository tree view for easy reuse.
You can create an LDAP connection either from an accessible LDAP directory, or by saving the LDAP settings defined in a Job.
To create an LDAP connection from an accessible LDAP directory, expand the Metadata node in the Repository tree view, right-click the LDAP tree node, and select Create LDAP schema from the contextual menu to open the [Create new LDAP schema] wizard.
To centralize an LDAP connection and its schema you have already defined in a Job, click the icon in the Basic settings view of the relevant component, with its Property Type set to Built-In, to open the [Create new LDAP schema] wizard.
Unlike the DB connection wizard, the LDAP wizard gathers both LDAP server connection and schema definition in a five-step procedure.
Defining the general properties
Fill in the general information in the relevant fields to identify the LDAP connection to be created, including Name, Purpose and Description.
The Name field is required, and the information you provide in the Description field will appear as a tooltip when you move your mouse pointer over the LDAP connection.
If needed, set the version and status in the Version and Status fields respectively. You can also manage the version and status of a Repository item in the [Project Settings] dialog box. For more information, see Version management and Status management respectively.
If needed, click the Select button next to the Path field to select a folder under the LDAP node to hold your newly created LDAP connection.
Click Next to define your LDAP server connection details.
Defining the server connection
Fill the connection details.
LDAP Server host name or IP address
Listening port to the LDAP directory
LDAP : no encryption is used
LDAPS: secured LDAP
TLS: certificate is used
Then check your connection using Check Network Parameter to verify the connection and activate the Next button.
Click Next to continue.
Configuring LDAP access parameters
In this view, set the authentication and data access mode.
Simple authentication: requires Authentication Parameters field to be filled in
Anonymous authentication: does not require authentication parameters
Bind DN or User: login as expected by the LDAP authentication method
Bind password: expected password
Save password: remembers the login details.
Get Base DN from Root DSE / Base DN
Path to user's authorized tree leaf
Fetch Base DNs button retrieves the DN automatically from Root.
Never allows to improve search performance if you are sure that no aliases is to be dereferenced. By default, Always is to be used. Always: Always dereference aliases
Never: Never dereferences aliases.
Searching:Dereferences aliases only after name resolution.
Finding: Dereferences aliases only during name resolution
Redirection of user request:
Ignore: does not handle request redirections
Follow:does handle request redirections
Limited number of records to be read
Click Check authentication to verify your access rights.
Click Fetch Base DNs to retrieve the DN and click the Next button to continue.
If any third-party libraries required for setting up an LDAP connection are found missing, an external module installation wizard appears. Install the required libraries as guided by the wizard. For more information on installing third-party modules, see the Talend Installation and Upgrade Guide.
Defining the schema
Select the attributes to be included in the schema structure.
Add a filter if you want selected data only.
Click Refresh Preview to display the selected column and a sample of the data.
Click Next to continue.
Finalizing the end schema
The last step shows the LDAP schema generated and allows you to further customize the end schema.
If needed, rename the metadata in the Name field (metadata, by default), add a Comment, and make further modifications, for example:
Redefine the columns by editing the relevant fields.
Add or delete a column using the and buttons.
Change the order of the columns using the and buttons.
If the LDAP directory which the schema is based on has changed, use the Guess button to generate again the schema. Note that if you customized the schema, your changes will not be retained after the Guess operation.
Click Finish. The new schema is displayed under the relevant LDAP connection node in the Repository tree view.
Now you can drag and drop the file connection or any schema of it from the Repository tree view onto the design workspace as a new component or onto an existing component to reuse the metadata.
To modify an existing file connection, right-click it from the Repository tree view, and select Edit LDAP schema to open the file metadata setup wizard.
To add a new schema to an existing file connection, right-click the connection from the Repository tree view and select Retrieve Schema from the contextual menu.
To edit an existing file schema, right-click the schema from the Repository tree view and select Edit Schema from the contextual menu.