I am using OpenLDAP as LDAP server and UnboundID to interact with it through Java code. I need to handle the removal of a certain instance X of a Entity A on which several other instances Y1, .. Yn of an Entity B are logically linked. This means that I first need to remove all the instances of B (Y1, ... Yn) and after this I want to also remove X. I want to be able to use a transaction to do that, in order to abort the transaction if something goes wrong while removing one of Y1,..Yn and have the possibility to rollback. I tried following the following example:
What I got though, is an LDAPException saying that the extended operation is unsopported. How can I handle transactions? I think that OpenLDAP does support transactions...