Skip to Content

Use LDAP sources and targets in a script in Jitterbit Design Studio

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.