Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to write a simple Joblet that does an lDAP search. The input (userids) and output (DN's). Seems like it would be best to create an LDAP connection before processing the INPUT but how?
jji
Hi , maybe you can use in the joblet after tFlowtoIterate -->iterate link --> LDAPconn -->on component ok --> LDAP Search-->row1 link etc
in the main job you put an LDAP connection in the prejob and you fill all the values and you check use the shared connection option and set the value with the name you want.
in the joblet you fill nothing on the LDAPconn just the shared connection option field with the same value as the one on the main job
so the joblet will reuse the connection of the main job.
Send me love and kudos
also maybe you can use this article :
https://community.talend.com/s/article/How-to-share-a-database-connection-between-a-Job-and-a-Joblet-ppQSJ
and do a similar thing with the ldap_conn name of the main job in the TLDAPInput component
I found a solution. First component is to save the flow to a file, then I can establish an LDAP connection and do anything else before processing the input.
jji