Delete Entry from LDAP
Let’s see how we can delete an entry from LDAP using LDAP connector in MuleSoft
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.
Below operation is present
LDAP Delete entry: Deletes the LDAP entry represented by the provided distinguished name. The entry should not have child entries, in which case a CONTEXT_NOT_EMPTY error is thrown.
Create sample project in anypoint studio and add listener to trigger the flow
Drag and drop LDAP Delete entry operation from mule palette if you can not find LDAP operation in mule palette please add LDAP module using Exchange or visit this url for more information
Provide the Connection Details as given below and pass the DN value to delete from LDAP
LDAP connection details
Deploy the project and trigger from soapui
As we can see entry is present in LDAP
Trigger the project from soapui, we can see entry gets deleted from LDAP
Sample application: ldap sample application