php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51239 ldap_modify fails to delete attribute and change other attribute
Submitted: 2010-03-08 18:14 UTC Modified: 2013-02-18 00:34 UTC
From: alien999999999 at users dot sourceforge dot net Assigned:
Status: No Feedback Package: LDAP related
PHP Version: 5.2.13 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
8 + 50 = ?
Subscribe to this entry?

 
 [2010-03-08 18:14 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-19 11:37 UTC] 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-05-17 11:16 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2010-05-17 11:16 UTC] mike@php.net
So, is there an issue now, or not?
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC