Code

Fixed win workstation acls.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Aug 2006 05:14:13 +0000 (05:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Aug 2006 05:14:13 +0000 (05:14 +0000)
Fixed samba acl handling

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4420 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_winGeneric.inc
plugins/personal/samba/class_sambaAccount.inc
plugins/personal/samba/main.inc

index fb557fdf58f184d99fa4383f75b0f03ffd040a35..01fbbef1a136f6034b291ba8d4e77496b3dbbb4a 100644 (file)
@@ -227,6 +227,26 @@ class wingeneric extends plugin
     $this->postcreate();
   }
 
+  /* Return plugin informations for acl handling
+  #FIXME FAIscript seams to ununsed within this class... */
+  function plInfo()
+  {
+    return (array(
+          "plShortName"   => _("Win generic"),
+          "plDescription" => _("Windows workstation generic"),
+          "plSelfModify"  => FALSE,
+          "plDepends"     => array(),
+          "plPriority"    => 0,
+          "plSection"     => array("administration"),
+          "plCategory"    => array("winworkstation" => array("description"  => _("Win workstation"),
+                                                          "objectClass"  => "gotoWorkstation")),
+          "plProvidedAcls"=> array(
+            "cn"                  => _("Workstation name"),
+            "description"         => _("Description"))
+          ));
+  }
+
+
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index edc286e0ea0fd5666f6987f75cf596110d8a9963..c9c48a1ee812dac2ab9a85ecc7d6d33ecd0db264 100644 (file)
@@ -328,7 +328,8 @@ class sambaAccount extends plugin
       }
       $regex= $sambafilter['regex'];
       $filter= "(&(objectClass=sambaSAMAccount)$exclude(uid=*$)(|(uid=$regex)(cn=$regex)))";
-      $res= get_list($filter, "workstation", $sambafilter['depselect'], array("uid"), GL_SUBSEARCH | GL_SIZELIMIT);
+      $res= get_list($filter, "winworkstation", $sambafilter['depselect'], array("uid"), GL_SUBSEARCH | GL_SIZELIMIT);
+        
       $wslist= array();
       foreach ($res as $attrs){
         $wslist[]= preg_replace('/\$/', '', $attrs['uid'][0]);
index a9ede299b9fc635806cd04763526216bb41dccfc..6d5a630f950789512da731976cc6af0a6fbd3ec3 100644 (file)
@@ -87,7 +87,7 @@ if (!$remove_lock){
   }
 
   $info= "";
-  if ($sambaAccount->is_account){
+  if (($sambaAccount->is_account) && (!$sambaAccount->show_ws_dialog)){
     $display.= "<p class=\"plugbottom\">";
 
     /* Are we in edit mode? */