ID:               45990
 User updated by:  ninglis at nextdigital dot com
 Reported By:      ninglis at nextdigital dot com
 Status:           Bogus
 Bug Type:         LDAP related
 Operating System: FreeBSD 7
 PHP Version:      5.2.6
 New Comment:

hymmm...

that "bug #19438" is listed as a feature request. it is also not in the
LDAP section. This is not a feature request. it is a bug. The function
is destroying information trapped in the camel case of the variable
names. There is no way of retrieving the information.

I think it is a mistake that the previously mentioned bug is listed as
a "feature request".


Previous Comments:
------------------------------------------------------------------------

[2008-10-24 15:51:49] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #19438


------------------------------------------------------------------------

[2008-09-04 02:42:43] ninglis at nextdigital dot com

Description:
------------
ldap_get_entries() does not preserve the correct case of teh attribute
names from ldap_search result. 

eg: "objectClass" becomes "objectclass"

if I use ldap_get_attributes() I do not get this problem.

the loss of case is very important as if you try to reinsert these
values, the attribute names no longer match the LDAP schema.

Expected result:
----------------
    ["objectClass"]=>
    array(5) {
      ["count"]=>
      int(4)
      [0]=>
      string(3) "top"
      [1]=>
      string(6) "person"
      [2]=>
      string(13) "inetOrgPerson"
      [3]=>
      string(9) "qmailUser"
    }
    [2]=>
    string(11) "objectClass"
  

Actual result:
--------------

this is a snipet of the vardump: As you can see the "objectclass"
attribute has lost its camel case


    ["objectclass"]=>
    array(5) {
      ["count"]=>
      int(4)
      [0]=>
      string(3) "top"
      [1]=>
      string(6) "person"
      [2]=>
      string(13) "inetOrgPerson"
      [3]=>
      string(9) "qmailUser"
    }
    [2]=>
    string(11) "objectclass"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45990&edit=1

Reply via email to