[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP & bdb transactions



Lia Tarta wrote:

Hello
As I understand, OpenLDAP does not support
transactions in its current version. However, the bdb
backend is said to be transactional. My question is,
how do I use these transactions for bdb? Is there any
way of performing a transactional operation that makes
2 calls (e.g.: to ADD calls) to OpenLDAP?
Thanks

Not directly. back-bdb uses transactions within a single operation, to maintain the consistency of all the indices associated with a single entry. You still need a higher level control layer to enforce transactions across multiple operations. You could write an overlay to provide some form of transactional LDAP features, it doesn't need to be implemented in the backend itself. Of course, it would require a fair amount of effort to provide all of the recoverability features that one expects from a transactional system.

--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support