From: hickert Date: Mon, 20 Sep 2010 06:26:01 +0000 (+0000) Subject: Fixed device usage check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2877c88b0d0e6709618e79ce21719546da47aca4;p=gosa.git Fixed device usage check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19762 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc index 381465fef..09ab15d53 100644 --- a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc +++ b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc @@ -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")); }