Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.5

Bug #13216 Net_LDAP->copy() looses attribute values
Submitted: 2008-02-26 14:35 UTC
From: beni Assigned: beni
Status: Closed Package: Net_LDAP (version 1.0.0)
PHP Version: Irrelevant OS:
Roadmaps: 1.1.0, 1.0.0    
Subscription  


 [2008-02-26 14:35 UTC] beni (Benedikt Hallinger)
Description: ------------ Using Net_LDAP->copy() or Net_LDAP->move() jsut with DNs instead of Net_LDAP_Entry objects results in loss of attribute values in the copied/moved entry. At moving, the Problem only occurs if doing a cross directory move. The problem is, that inside copy() or move(), Net_LDAP cannot know what attributes are set for this particular entry-DN. Resolution: - copy(): Only allow Net_LDAP_Entry objects, since copy has a hard dependancy on attributes - move(): Only allow Net_LDAP_Entry objects when doing cross directory move. At local move, move() can use LDAP-Server side functions to preserve attributes like move() does already.

Comments

 [2008-02-26 14:35 UTC] beni (Benedikt Hallinger)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.