Add Entry in LDAP using MuleSoft LDAP Connector

 

This Tutorial explains steps to add entry in LDAP using MuleSoft LDAP Connector.

Prerequisite:

To use the LDAP Connector, you must have the following:

  • Access to either an OpenLDAP, Apache Directory, or MicroSoft Active Directory Instance.
  • Anypoint Studio version 7.0 (or higher) or Anypoint Design Center.

To use the LDAP Connector in a production environment, you must have either:

  • An Enterprise license to use Mule.
  • A CloudHub Starter, Professional, or Enterprise account.

 

Add Entry

Here are the steps.

Drag and drop LDAP Add Entry operation from mule palette if you can not find LDAP operation in mule palette please add LDAP module using Exchange visit this url for more information

add entry in LDAP using MuleSoft LDAP Connector.

 

Provide the Connection Details as given below:

add entry in LDAP using MuleSoft LDAP Connector.

 

Create the payload to Add User In LDAP

add entry in LDAP using MuleSoft LDAP Connector.

 

%dw 2.0
output application/java
---
{
    dn : "cn=David Mortier,ou=Users," ++ "dc=example,dc=com",
    uid : "David",
    cn : "TestUser",
    sn : "User",
    userPassword : "test@1234",
    description:"Test User Created",
    mail:"[email protected]",
    objectclass : ["top", "person", "organizationalPerson", "inetOrgPerson"]
}

 

Send the Success Message as “User Created Successfully In Ldap”

Deploy the project and test from soapui

add entry in LDAP using MuleSoft LDAP Connector.

 

You can see below user has created in LDAP

 

Sample application:addentryinldap sample application

Soapui project: AddEntryInLdap-soapui-project

 

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments