Code

Fixed device usage check.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Sep 2010 06:26:01 +0000 (06:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Sep 2010 06:26:01 +0000 (06:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19762 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/devices/class_deviceGeneric.inc

index 381465fef6ccf28df2890845945ef39a3d900c77..09ab15d534c97b98af688f3abbf4a103ab3e04c2 100644 (file)
@@ -122,7 +122,7 @@ class deviceGeneric extends plugin
         /* Check if entry already exists */ 
         if($this->cn != $this->orig_cn || $this->dn == "new"){
             $ldap = $this->config->get_ldap_link();
-            $ldap->search("(&(objectClass=gotoDevice)(cn=".$this->cn."*))",array("cn"));
+            $ldap->search("(&(objectClass=gotoDevice)(cn=".$this->cn."))",array("cn"));
             if($ldap->count()){
                 $message[]= msgPool::duplicated(_("Name"));
             }