Code

Made detection of ogroup membership work for strange DN's
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 12:40:35 +0000 (12:40 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 12:40:35 +0000 (12:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8349 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/systems/class_workstationGeneric.inc

index 82658218925f1b38932d74d35cfcc3fe484cb148..505397535399a159a24db014905eff4196065ce5 100644 (file)
@@ -78,7 +78,7 @@ class workgeneric extends plugin
     if(!isset($this->parent->by_object['ogroup'])){
       $ldap = $this->config->get_ldap_link();
       $ldap->cd ($this->config->current['BASE']);
-      $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".$this->dn."))",array("cn"));
+      $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".normalizeLdap(preg_replace('/\\\\/', '\\\\\\', LDAP::fix($this->dn)))."))",array("cn"));
       $this->member_of_ogroup = $ldap->count() >= 1;
     }