Package: turba2
Version: 2.0.3-1
Severity: important

When trying to add or modify entries in an LDAP addressbook, I get an
error if the Common Name (CN) contains non-ascii characters. The reason
seems to be that the LDAP driver does not handle character encoding
properly when building the Distinguished Name (DN).

This error will occur if the LDAP directory uses a characterset that is
different from the locale. In my case, my LDAP directory uses utf-8
while the locale on the server is 'C'.

For instance if you look at the '_save' method in
/usr/share/horde3/turba/lib/Driver/ldap.php :

  /* Check if we need to rename the object. */
  if ($this->_params['version'] == 3 &&
      String::lower($this->_makeKey($attributes))
      != String::lower($object_id)) {

This check is incorrect, $object_id will be in the LDAP server's locale
while the result of _makeKey is not. 

Cheers,
Jeremy

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.26-bytemark-uml-20040706-1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages turba2 depends on:
ii  horde3                        3.0.7-1    horde web application framework

Versions of packages turba2 recommends:
ii  php4-ldap                     4:4.4.0-4  LDAP module for php4
ii  php4-mysql                    4:4.4.0-4  MySQL module for php4

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to