From f7f5b46d0a74640129b62c5add4f916ce9502c3c Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 15 Jan 2008 12:41:32 +0000 Subject: [PATCH] Fixed ogroup detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8350 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2