From: cajus Date: Tue, 15 Jan 2008 12:41:32 +0000 (+0000) Subject: Fixed ogroup detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7f5b46d0a74640129b62c5add4f916ce9502c3c;p=gosa.git Fixed ogroup detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8350 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index ca1333fbd..7bac83ba5 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -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; }