Code

Improved filter for duplicate workstation detection
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Apr 2006 08:14:23 +0000 (08:14 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Apr 2006 08:14:23 +0000 (08:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3060 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationGeneric.inc

index 6bdcbc96e0841e1d82b63c032379bb996fc72f4e..ee07d02f34f01cdf3b0de011df882514199c2b79 100644 (file)
@@ -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())){