From: cajus Date: Wed, 19 Apr 2006 08:14:23 +0000 (+0000) Subject: Improved filter for duplicate workstation detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4df27c7006a34f76e32e195d27d81a6c4b7fec0a;p=gosa.git Improved filter for duplicate workstation detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3060 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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())){