Code

Fixed references with strange dn's
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 13:00:48 +0000 (13:00 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 13:00:48 +0000 (13:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8352 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/generic/references/class_reference.inc

index 4b17529dbbbf318a30ffc91b5e3ebb99f40418d4..4edf6c07342b917eaea02318e6d56428aeb8fa61 100644 (file)
@@ -82,7 +82,7 @@ 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;