Jäckel, Carsten wrote:
Hello,
during internal discussions, we came up with the question of how OpenLDAP deals with concurrent, competing write accesses to an LDAP object.
The background to the question is that we use two applications that want to write attributes on the same user object in the DIT and maybe this could happen at the same time.
Does anyone know how the OpenLDAP deals with such a situation?
The way the LDAP protocol specification says. LDAP operations are all atomic.
We would like to ask the following questions in detail:
- Does the OpenLDAP lock the entire object for write access or only the attributes that are currently being changed?
Irrelevant.
- Is there a kind of queue for write operations in which the competing write accesses are stored? If so, what criteria are used to determine which write
operation has priority?
Irrelevant.
- Are there scenarios caused by concurrent, simultaneous write access to objects / object attributes that lead to a crash of the openLDAP?
No.
- How can we best simulate simultaneous write access to an object in the DIT from different systems?
Irrelevant.
- Are there different behaviors dealing with concurrent write-access when using different openLDAP versions?
No.
Kind regards,
Carsten