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

Re: How can I lock a record using php-ldap?



Yes but don't we have to retrieve 42 first before we can make changes to it? The race condition occurs in the script because we have more than one step involved in the retrieve and modify cycle in the script. Is there an atomic function of which I am unaware that will allow one to retrieve an attribute and alter it's value in the database simultaneously? If not then we are stuck.

changetype: modify
delete: uidnumber=42
add: uidnumber=43