From: Operating system: Solaris PHP version: 5.2.13 Package: LDAP related Bug Type: Bug Bug description:ldap_modify fails to delete attribute and change other attribute
Description: ------------ ldap_modify fails when deleting attribute AND changing another attribute at the same time. The error returned is "Success", and the modification is not done. appropriate LDAP values: dn: uid=something,o=jes.com mailForwardingAddress: f...@bar.com mailDeliveryOption: autoreply mailDeliveryOption: forward ... ldap_modify is called with: $modifs = array('mailforwardingaddress' => array(), 'maildeliveryoption' => array('autoreply', 'mailbox')); IMPORTANT NOTE: doing these 2 separately works, but doing them at the same time does not work. when it fails, ldap_modify returns FALSE, ldap_error() will return "Success". Modifications are not done. Server is a SUN Solaris, LDAP server is a JES. trying this with ldapmodify command works. -- Edit bug report at http://bugs.php.net/bug.php?id=51239&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51239&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51239&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51239&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51239&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51239&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51239&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51239&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51239&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51239&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51239&r=support Expected behavior: http://bugs.php.net/fix.php?id=51239&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51239&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51239&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51239&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51239&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51239&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51239&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51239&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51239&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51239&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51239&r=mysqlcfg