[Tickets #1825] NEW: Patch for LDAP: DN does not allow special german
characters
bugs at bugs.horde.org
bugs at bugs.horde.org
Tue Apr 19 14:10:18 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1825
-----------------------------------------------------------------------
Ticket | 1825
Created By | stefan+lists at luethje.ch
Summary | Patch for LDAP: DN does not allow special german characters
Queue | Turba
Version | 2.0
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
stefan+lists at luethje.ch (2005-04-19 14:10) wrote:
This patch converts also the DN string into character set:
--- ./turba/lib/Driver/ldap.php.save 2005-04-13 21:23:36.000000000 +0200
+++ ./turba/lib/Driver/ldap.php 2005-04-13 21:26:59.000000000 +0200
@@ -296,11 +296,11 @@
String::lower($this->_makeKey($attributes)) !=
String::lower($object_id)) {
if (isset($this->_params['dn']) &&
is_array($this->_params['dn']) && count($this->_params['dn'])) {
$pairs = array();
foreach ($this->_params['dn'] as $param) {
if (isset($attributes[$param])) {
- $pairs[] = array($param, $attributes[$param]);
+
$pairs[] = array($param,
String::convertCharset($attributes[$param], NLS::getCharset(),
$this->_params['charset']));
}
}
$newrdn = $this->_quoteDN($pairs);
} else {
return PEAR::raiseError(_("Missing DN in LDAP source
configuration."));
@@ -368,11 +368,11 @@
{
$dn = '';
if (is_array($this->_params['dn'])) {
foreach ($this->_params['dn'] as $param) {
if (isset($attributes[$param])) {
- $dn .= $param . '=' . $attributes[$param] . ',';
+ $dn .= $param . '=' .
String::convertCharset($attributes[$param], NLS::getCharset(),
$this->_params['charset']) . ',';
}
}
}
$dn .= $this->_params['root'];
More information about the bugs
mailing list