Code

Renanmed opsi class
[gosa.git] / gosa-plugins / systems / admin / systems / class_componentGeneric.inc
index 002b38b2eb4c3fe12d580b6c3e15e2b56c079d73..294e9a0ede38867d304d63b9f602128ded60f153 100644 (file)
@@ -232,7 +232,7 @@ class componentGeneric extends plugin
           if(preg_match("/cn=dhcp,/",$attrs['dn'])){
             continue;
           }
-          if ($attrs['dn'] != $this->orig_dn){
+          if ($attrs['dn'] != $this->orig_dn && preg_match("/".normalizePreg(get_ou("componentou"))."/",$attrs['dn'])){
             $message[]= msgPool::duplicated(_("Component name"));
             break;
           }