Code

* Convert vendorId and productId to lower case. Udev-rules only match if vendorId...
[gosa.git] / 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();