[bugs] [Bug 1280] New - Mixed case fields do not show up with LDAP
backend
bugs at bugs.horde.org
bugs at bugs.horde.org
Fri Jun 13 06:05:47 PDT 2003
http://bugs.horde.org/show_bug.cgi?id=1280
*** shadow/1280 Fri Jun 13 10:05:47 2003
--- shadow/1280.tmp.5347 Fri Jun 13 10:05:47 2003
***************
*** 0 ****
--- 1,35 ----
+ Bug#: 1280
+ Product: Horde
+ Version: 2.2 Stable
+ Platform: PHP Code
+ OS/Version: Linux
+ Status: NEW
+ Resolution:
+ Severity: normal
+ Priority: P2
+ Component: Turba
+ Area: BUILD
+ AssignedTo: chuck at horde.org
+ ReportedBy: halls at debian.org
+ URL:
+ Summary: Mixed case fields do not show up with LDAP backend
+
+ Hi, in trying to get Turba to work with our existing LDAP schema, we discovered
+ that only certain fields were displayed. It turned out that fields whose name
+ was all lowercase, such as 'mobile', would display, and those with mixed case,
+ such as 'facsimileTelephoneNumber', did not. We had a mapping like this (from
+ sources.php):
+
+ 'fax' => 'facsimileTelephoneNumber',
+ 'cellPhone' => 'mobile'
+
+ We traced this to turba/lib/Driver/ldap.php, getResults function: This recieves
+ a list of attributes from the LDAP server, obtained using
+ ldap_get_entries. The documentation for ldap_get_entries says:
+
+ 'The attribute index is converted to lowercase. (Attributes are case-insensitive
+ for directory servers, but not when used as array indices.) '
+
+ But getResults does not take that fact into account and tries to compare with
+ the user-entered value from sources.php without converting it to lowercase.
+ Judging by the mailing list archives, we are not the first to see this problem.
More information about the bugs
mailing list