Code

Minimized error msg for still in use dns-zone.
[gosa.git] / plugins / admin / systems / tabs_winstation.inc
index 062eac6ee989d3675d89ac9e694c59a27054c46e..73cd77f4dca5c1745942a07b8b961c99ca8b5b04 100644 (file)
@@ -3,9 +3,12 @@
 class wintabs extends tabs
 {
 
-  function wintabs($config, $data, $dn)
+  function wintabs($config, $data, $dn,$category)
   {
-    tabs::tabs($config, $data, $dn);
+    tabs::tabs($config, $data, $dn,$category);
+
+    /* Add references/acls/snapshots */
+    $this->addSpecialTabs();
   }
 
   function save_object($save_current= FALSE)
@@ -19,13 +22,17 @@ class wintabs extends tabs
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
     $baseobject= $this->by_object['wingeneric'];
-    $this->dn= "cn=$baseobject->cn,ou=winstations,ou=systems,".$baseobject->base;
+    $this->dn= "uid=$baseobject->cn,ou=winstations,ou=systems,".$baseobject->base;
+    $baseobject->dn= $this->dn;
 
     foreach ($this->by_object as $key => $obj){
       $this->by_object[$key]->dn= $this->dn;
     }
 
     tabs::save(TRUE);
+
+    /* Fix tagging if needed */
+    $baseobject->handle_object_tagging();
   }
 
 }