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
Provide the Connection Details as given below:
Create the payload to Add User In LDAP
%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
You can see below user has created in LDAP
Sample application:addentryinldap sample application
Soapui project: AddEntryInLdap-soapui-project