Req #31209 [Com]: LDAP modify interface implementation deficiency
| From: | andreas at heigl dot org | Date: | Tue, 05 May 2015 19:59:11 +0000 |
| Subject: | Req #31209 [Com]: LDAP modify interface implementation deficiency | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192499@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=31209&edit=1
ID: 31209
Comment by: andreas at heigl dot org
Reported by: tomas dot drbohlav at mff dot cuni dot cz
Summary: LDAP modify interface implementation deficiency
Status: Open
Type: Feature/Change Request
Package: LDAP related
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
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)
);
Previous Comments:
------------------------------------------------------------------------
[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