Bug #51239 [Opn->Fbk]: ldap_modify fails to delete attribute and change other attribute
| From: | mike@php.net | Date: | Mon, 17 May 2010 09:16:07 +0000 |
| Subject: | Bug #51239 [Opn->Fbk]: ldap_modify fails to delete attribute and change other attribute | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150503@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51239&edit=1
ID: 51239
Updated by: mike@php.net
Reported by: alien999999999 at users dot sourceforge dot net
Summary: ldap_modify fails to delete attribute and change other
attribute
-Status: Open
+Status: Feedback
Type: Bug
Package: LDAP related
Operating System: Solaris
PHP Version: 5.2.13
New Comment:
So, is there an issue now, or not?
Previous Comments:
------------------------------------------------------------------------
[2010-03-19 11:37:51] alien999999999 at users dot sourceforge dot net
Ok, i need to rectify the problem. I may have found the exact bug:
appearantly, the problem went away, when i reindexed the array in
question, EVEN IF IT IS EMPTY!
$modifs['mailforwardingaddress']
originally, it has something in it, it was deleted by unset and not
reindexed. EVEN THOUGH IT IS EMPTY!!!
------------------------------------------------------------------------
[2010-03-08 18:14:58] alien999999999 at users dot sourceforge dot net
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: foo@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 this bug report at http://bugs.php.net/bug.php?id=51239&edit=1