Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:02:02+00:00 2026-06-07T05:02:02+00:00

I am using OpenLDAP as LDAP server and UnboundID to interact with it through

  • 0

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:

https://www.unboundid.com/products/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/extensions/StartTransactionExtendedRequest.html

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:02:03+00:00Added an answer on June 7, 2026 at 5:02 am

    I’m not really up to date with the latest on OpenLDAP, but the last I heard was that OpenLDAP had not yet added support for LDAP transactions as described in RFC 5805. However, you should be able to check this by looking at the OpenLDAP root DSE. In the UnboundID LDAP SDK for Java, you can do that with code like:

     RootDSE rootDSE = ldapConnection.getRootDSE();
     boolean supportsTransactions = rootDSE.supportsExtendedOperation(
          StartTransactionExtendedRequest.START_TRANSACTION_REQUEST_OID);
    

    If the OpenLDAP server doesn’t yet support transactions, then there may not be anything you can do to make it really atomic and able to roll back if a problem is encountered. If OpenLDAP supports the experimental LDAP no-operation control (and I think that it does), then you could use the com.unboundid.ldap.sdk.experimental.DraftZeilengaLDAPNoOp12RequestControl class to include that in delete requests to see if the server would accept deleting all of the entries, and then only go ahead with the delete if it looks like they will all be successful. Otherwise, you could keep a log in your application so that in the event of a failure you could report what was deleted and what wasn’t.

    Neil

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to pull an LDAP jpegPhoto attribute from an openLDAP server using
I'm using openldap on Mac OS X Server 10.6 and need to generate a
We are using OpenLDAP client library to conect to an LDAP server. The problem
I'm using Net::LDAP to perform some operations on an openldap server. I'm interested in
We are using OpenLDAP 2.3 to store contacts. We have built a java project
I am trying to use LDAP for authentication. I am using the OpenLDAP library
I'm using Ubuntu 10.4 server and I'm trying to configure OpenLDAP as a protocol
I have a custom LDAP schema installed on my OpenLDAP server which is as
I'm writing an addressbook editor with OpenLDAP backend in PHP. Now, I'm using LDAP-class
I'm using phpBB 3.0.9 with LDAP authentication setup. Currently, I need to manually create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.