From c51002ac50c1e652fbfa3d9b6e22d1600ecf85e1 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 15 Jan 2008 12:40:35 +0000 Subject: [PATCH] Made detection of ogroup membership work for strange DN's git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8349 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/systems/class_workstationGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/plugins/admin/systems/class_workstationGeneric.inc b/gosa-core/plugins/admin/systems/class_workstationGeneric.inc index 826582189..505397535 100644 --- a/gosa-core/plugins/admin/systems/class_workstationGeneric.inc +++ b/gosa-core/plugins/admin/systems/class_workstationGeneric.inc @@ -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; } -- 2.30.2