Req #31209 [Opn->Csd]: LDAP modify interface implementation deficiency
Edit report at https://bugs.php.net/bug.php?id=31209&edit=1
ID: 31209
Updated by: mcmic@php.net
Reported by: tomas dot drbohlav at mff dot cuni dot cz
Summary: LDAP modify interface implementation deficiency
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: LDAP related
Operating System: *
PHP Version: *
-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:
------------------------------------------------------------------------
[2015-05-05 19:59:11] andreas at heigl dot org
Can we close this issue? After 11 years the syntax has changed in a way that this is obsolete AFAIK.
ldap_modify(
$ldap_res,
$dnToModify,
array('userPassword'=>array($newPassword)
);
------------------------------------------------------------------------
[2004-12-20 19:28:18] tomas dot drbohlav at mff dot cuni dot cz
Description:
------------
It is not possible to run more then one type of modify operation in a single request.
E.g. it is impossible to change password on LDAP (Novell NDS) because you have to request delete
(incl. old pass) and add new pass, both in one call of ldap_modify_s() (LDAP API).
In Perl NET::Ldap I would do:
$ldap->modify($user,
changes => [
delete => [userPassword => $oldPwd],
add =>[userPassword => $newPwd] ]);
In PHP I can send only separate requests what fails because the attribute (eg. userPassword) must
stay non-empty.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=31209&edit=1
Thread (3 messages)