Skip to Content

Use LDAP Sources and Targets in a Script

LDAP (Lightweight Directory Access Protocol) is a protocol that allows you to search and update a directory. It is supported by several directory servers (e.g., Microsoft Active Directory, Netscape Directory Server). A directory usually contains information about users and network resources, but can contain any kind of data.

Use LDAP with Jitterbit

To use LDAP with Jitterbit, create a transformation and open the Formula Builder:

To Search a Directory

LdapConnect()
LdapSearch()

Example

LdapConnect("directory.finland.company.com","ghvwright","1LikesPe@ches",0)
Set( "mySearchResults",  LdapSearch("CN=Users,DC=finland,DC=company,DC=com", "(&(objectCategory=person)(objectClass=user))", 1, "name", "whenCreated", "description", "telephoneNumber") )

To Modify a Directory

LdapConnect()

One or more of:

LdapAdd()
LdapRemove()
LdapReplace()

Followed by:

LdapExecute()

Example

LdapConnect("directory.finland.company.com","ghvwright","1LikesPe@ches",0)
LdapAdd("description","Thinks a lot."); LdapReplace("telephoneNumber","(510) 555 1000");
LdapExecute("CN=wright,CN=Users,DC=finland,DC=company,DC=com");

Use Data From Source Tree in Calls

As with all other functions, you can use data from the source tree in the calls. To do so, put the cursor where you want the source data to appear and double click on a node of the source tree in the lower right pane of the Formula Builder. A path that Jitterbit understands will be inserted at the cursor location.