php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31209 LDAP modify interface implementation deficiency
Submitted: 2004-12-20 19:28 UTC Modified: 2015-06-10 10:33 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: tomas dot drbohlav at mff dot cuni dot cz Assigned: mcmic (profile)
Status: Closed Package: LDAP related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tomas dot drbohlav at mff dot cuni dot cz
New email:
PHP Version: OS:

 

 [2004-12-20 19:28 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-08 21:49 UTC] jani@php.net
-Package: Feature/Change Request +Package: LDAP related -Operating System: any +Operating System: * -PHP Version: Irrelevant +PHP Version: *
 [2015-05-05 19:59 UTC] 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)
);
 [2015-06-10 10:33 UTC] mcmic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: mcmic
 [2015-06-10 10:33 UTC] mcmic@php.net
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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC