Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transactions support in unboundid ldap #158

Open
sherry442 opened this issue Dec 7, 2023 · 3 comments
Open

transactions support in unboundid ldap #158

sherry442 opened this issue Dec 7, 2023 · 3 comments

Comments

@sherry442
Copy link

Hi,

Is unboundid ldap sdk has support for transaction handling? If yes, can you please explain from which version this is available.

Thanks & Regards, Sheriff

@dirmgr
Copy link
Collaborator

dirmgr commented Dec 7, 2023

The LDAP SDK has support for standard LDAP transactions as described in RFC 5805, and this has been supported since 2010 when the RFC was made official. The Javadoc for the StartTransactionExtendedRequest class has an example that shows how to use it, but it consists of three main parts:

  1. Use the StartTransactionExtendedRequest to start a transaction in the server and get a transaction ID.
  2. Submit all of the write operations that are part of the transaction. Each of those requests should include a TransactionSpecificationRequestControl with the transaction ID obtained from the start transaction result.
  3. When you're ready, you can commit (or abort) the transaction with an EndTransactionExtendedRequest.

Note that this requires an LDAP server that provide support for standard LDAP transactions. The Ping Identity Directory Server definitely supports them. I believe that the most recent versions of OpenLDAP support them as well. I'm not sure about any other types of servers.

The Ping Identity Directory Server also supports a proprietary MultiUpdateExtendedRequest that allows you to submit all of the operations to process atomically in a single request so that you can avoid the multiple round trips required when using standard LDAP transactions.

@gredwhite
Copy link

The Ping Identity Directory Server also supports a proprietary [MultiUpdateExtendedRequest](https://docs.ldap.com/ldap-sdk/docs/javadoc/index.html?com/unboundid/ldap/sdk/unboundidds/extensions/MultiUpdateExtendedRequest.html) that allows you to submit all of the operations to process atomically in a single request so that you can avoid the multiple round trips required when using standard LDAP transactions.

Will it work with AD/Samba ?

@dirmgr
Copy link
Collaborator

dirmgr commented Dec 11, 2023

As far as I'm aware, Active Directory does not have any support whatsoever for processing multiple operations as a single atomic unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants