Code

Fixed ogroup detection
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 12:41:32 +0000 (12:41 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 12:41:32 +0000 (12:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8350 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationGeneric.inc

index ca1333fbdd7e8625559f7a7a58c2bd2f178f0238..7bac83ba5d6ff3a5dec65ace758523646d7f632d 100644 (file)
@@ -75,7 +75,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;
     }