Req #48226 [Opn->Csd]: Support for atomic ldap modify operations
Edit report at https://bugs.php.net/bug.php?id=48226&edit=1
ID: 48226
Updated by: mcmic@php.net
Reported by: bugs dot php at jensthebrain dot de
Summary: Support for atomic ldap modify operations
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: LDAP related
Operating System: any
PHP Version: 5.2.9
-Assigned To:
+Assigned To: mcmic
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Previous Comments:
------------------------------------------------------------------------
[2009-05-10 19:33:17] bugs dot php at jensthebrain dot de
Description:
------------
It's a common scenario that you need to increase a counter atomically. E.g. the
UidNumber-Counter for a sambaUnixIdPool.
With perl you need just a few lines:
my $umsg = $ld->modify($dn,
delete => { 'uidNumber' => $currentvalue },
add => { 'uidNumber' => $nextvalue});
But this seems not to be possible with PHP because you need two functions calls (ldap_delete,
ldap_add) or support for defining operations in ldap_modify.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=48226&edit=1
Thread (2 messages)