|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-24 15:51 UTC] jani@php.net
[2008-10-27 00:47 UTC] ninglis at nextdigital dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
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"