|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
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) );