From 4df27c7006a34f76e32e195d27d81a6c4b7fec0a Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 19 Apr 2006 08:14:23 +0000 Subject: [PATCH] Improved filter for duplicate workstation detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3060 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 6bdcbc96e..ee07d02f3 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -237,7 +237,7 @@ class workgeneric extends plugin if ($this->orig_dn != $this->dn){ $ldap= $this->config->get_ldap_link(); $ldap->cd ($this->base); - $ldap->search ("(cn=".$this->cn.")", array("cn")); + $ldap->search ("(&(cn=".$this->cn.")(objectClass=gotoWorkstation))", array("cn")); if ($ldap->count() != 0){ while ($attrs= $ldap->fetch()){ if (preg_match ("/,ou=incoming,/", $ldap->getDN())){ -- 2.30.2