From: cajus Date: Tue, 15 Jan 2008 13:00:57 +0000 (+0000) Subject: Fixed references with strange dn's X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a4176aae66241f7017890cfae8079dda0bfbf87;p=gosa.git Fixed references with strange dn's git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/references/class_reference.inc b/gosa-core/plugins/generic/references/class_reference.inc index 472e42e11..ed33bec45 100644 --- a/gosa-core/plugins/generic/references/class_reference.inc +++ b/gosa-core/plugins/generic/references/class_reference.inc @@ -82,7 +82,8 @@ class reference extends plugin { $ldap= $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); - $ldap->search("(|(member=".$this->dn.")(memberUid=".$this->uid."))",array("memberUid","member","cn","description","objectClass")); + + $ldap->search("(|(member=".normalizeLdap(preg_replace('/\\\\/', '\\\\\\', LDAP::fix($this->dn))).")(memberUid=".$this->uid."))",array("memberUid","member","cn","description","objectClass")); $cycle= array("F5F5F5", "ECECEC"); $id= 0;