Req #31209 [Opn->Csd]: LDAP modify interface implementation deficiency

From: Date: Wed, 10 Jun 2015 10:33:48 +0000
Subject: Req #31209 [Opn->Csd]: LDAP modify interface implementation deficiency
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193292@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
 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)

« previous php.bugs (#193292) next »