From:             tomas dot drbohlav at mff dot cuni dot cz
Operating system: any
PHP version:      Irrelevant
PHP Bug Type:     LDAP related
Bug description:  LDAP modify interface implementation deficiency

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 bug report at http://bugs.php.net/?id=31209&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31209&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31209&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31209&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31209&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31209&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31209&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31209&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31209&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31209&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31209&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31209&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31209&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31209&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31209&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31209&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31209&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31209&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31209&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31209&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31209&r=mysqlcfg

Reply via email to