Code

* Convert vendorId and productId to lower case. Udev-rules only match if vendorId...
authorlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Oct 2009 08:11:32 +0000 (08:11 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Oct 2009 08:11:32 +0000 (08:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14625 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 00d63d0be6b084e48148f3002aed6cd8ff95dc57..b8b91e2ccc2f94b2d0f734980dd1bcd9addaaf8b 100644 (file)
@@ -105,7 +105,10 @@ class deviceGeneric extends plugin
     if(empty($this->vendor) || !$this->is_2byteHex($this->vendor)){
       $message[]= msgPool::invalid(_("Vendor ID"),"","","0x1234");
     }
-  
+    /* Convert vendorId and productId to lower case */
+    $this->serial = strtolower($this->serial);
+    $this->vendor = strtolower($this->vendor);
+
     /* Check if entry already exists */ 
     if($this->cn != $this->orig_cn || $this->dn == "new"){
       $ldap = $this->config->get_ldap_link();