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

Delete Entry

 

LDAP connection details

Delete Entry

 

Deploy the project and trigger from soapui

As we can see entry is present in LDAP

Delete Entry

 

Trigger the project from soapui, we can see entry gets deleted from LDAP

 

Sample application: ldap sample application

 

  
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