Code

Updated acl arrays
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Jul 2006 05:12:17 +0000 (05:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Jul 2006 05:12:17 +0000 (05:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4165 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/faxaccount/class_gofaxAccount.inc
plugins/gofon/phoneaccount/class_phoneAccount.inc
plugins/personal/nagios/class_nagiosAccount.inc
plugins/personal/samba/class_sambaAccount.inc

index 1510c0d5079ab190adcc7c76f53774528c3c23c4..5c4c8749afcde77e29273a8ca1f211c585732a85 100644 (file)
@@ -810,18 +810,24 @@ class gofaxAccount extends plugin
   function plInfo()
   {
     return (array(  
-          "plDescription"     => _("Fax account"),
-          "plSelfModify"      => TRUE,
-          "plDepends"         => array("objectClass" => "gosaAccount"),
-
-          "goFaxIsEnabled"                    => "!!! FIXME "._("Enable/Disable fax"),
-          "goFaxRBlocklist"                   => _("Receive blocklist"),
-          "goFaxSBlocklist"                   => _("Send blocklist"),
-          "facsimileTelephoneNumber"          => _("Fax number"), // goFaxDeliveryMode
-          "goFaxPrinter"                      => _("Deliver fax to printer"),
-//          "goFaxDivertNumber"                 => _(""),
-          "goFaxFormat"                       => _("Delivery format"),
-          "goFaxLanguage"                     => _("Language")));
+          "plShortName"     => _("Fax"),
+          "plDescription"   => _("Fax account settings"),
+          "plSelfModify"    => TRUE,
+          "plDepends"       => array("user"),
+          "plPriority"      => 6,             
+          "plSection"       => "personal",  
+          "plCategory"      => array("users"),
+          "plOptions"       => array(),
+
+          "plProvidedAcls"  => array(
+            "goFaxIsEnabled"                    => "!!! FIXME "._("Enable/Disable fax"),
+            "goFaxRBlocklist"                   => _("Receive blocklist"),
+            "goFaxSBlocklist"                   => _("Send blocklist"),
+            "facsimileTelephoneNumber"          => _("Fax number"), // goFaxDeliveryMode
+            "goFaxPrinter"                      => _("Deliver fax to printer"),
+            "goFaxFormat"                       => _("Delivery format"),
+            "goFaxLanguage"                     => _("Language"))
+          ));
   }
 }
 
index 6f8bc75440f1eaeac210beee75fc73ba307d2916..4337d7fcbb57dedafc39a174d89aef6a589f594a 100644 (file)
@@ -1199,16 +1199,23 @@ class phoneAccount extends plugin
   function plInfo()
   {
     return (array(
-          "plDescription"     => _("Phone extension"),
-          "plSelfModify"      => TRUE,
-          "plDepends"         => array("objectClass" => "gosaAccount"),
-
-          "goFonDeliveryMode"   => _("Delivery mode"),
-          "goFonHardware"       => _("Phone hardware"),
-          "goFonPIN"            => _("Telephone pin"),
-          "goFonVoicemailPIN"   => _("Voivemail pin"),
-          "telephoneNumber"     => _("Telephone number"),
-          "goFonMacro"          => _("Macro settings")));
+          "plShortName"     => _("Phone"),
+          "plDescription"   => _("Phone account settings"),
+          "plSelfModify"    => TRUE,
+          "plDepends"       => array("user"),
+          "plPriority"      => 7,                                 // Position in tabs
+          "plSection"       => "personal",                        // This belongs to personal
+          "plCategory"      => array("users"),
+          "plOptions"       => array(),
+
+          "plProvidedAcls"  => array(
+            "goFonDeliveryMode"   => _("Delivery mode"),
+            "goFonHardware"       => _("Phone hardware"),
+            "goFonPIN"            => _("Telephone pin"),
+            "goFonVoicemailPIN"   => _("Voivemail pin"),
+            "telephoneNumber"     => _("Telephone number"),
+            "goFonMacro"          => _("Macro settings"))
+            ));
   }
 }
 
index 216c0913521b9b7b929275b81da892ac17b4ef70..e2ea3aa0e4c20e292d3444735da1c5e0115c1806 100644 (file)
@@ -237,32 +237,39 @@ class nagiosAccount extends plugin
   function plInfo()
   {
     return (array(
-          "plDescription"   => _("Intranet account settings"),
+          "plShortName"     => _("Nagios"),
+          "plDescription"   => _("Nagios account settings"),
           "plSelfModify"    => TRUE,
-          "plDepends"       => array("objectClass" => "gosaAccount"),
+          "plDepends"       => array("user"),
+          "plPriority"      => 8,                                 // Position in tabs
+          "plSection"       => "personal",                        // This belongs to personal
+          "plCategory"      => array("users"),                   
+          "plOptions"       => array(),
 
-          "NagiosAlias"                       =>  _("Alias"),
-          "NagiosPager"                       =>  _("Pager number"),
-          "NagiosMail"                        =>  _("Mail address"),
+          "plProvidedAcls"  => array(
 
-          "HostNotificationCommands"          =>  _("Host notification commands"),
-          "HostNotificationOptions"           =>  _("Host notification options"),
-          "HostNotificationPeriod"            =>  _("Host notification period"),
+            "NagiosAlias"                       =>  _("Alias"),
+            "NagiosPager"                       =>  _("Pager number"),
+            "NagiosMail"                        =>  _("Mail address"),
 
-          "ServiceNotificationCommands"       =>  _("Service notification commands"),
-          "ServiceNotificationOptions"        =>  _("Service notification options"),
-          "ServiceNotificationPeriod"         =>  _("Service notification period"),
+            "HostNotificationCommands"          =>  _("Host notification commands"),
+            "HostNotificationOptions"           =>  _("Host notification options"),
+            "HostNotificationPeriod"            =>  _("Host notification period"),
 
-          "AuthorizedAllHosts"                =>  _("View all hosts"),
-          "AuthorizedAllServices"             =>  _("View all services"),
+            "ServiceNotificationCommands"       =>  _("Service notification commands"),
+            "ServiceNotificationOptions"        =>  _("Service notification options"),
+            "ServiceNotificationPeriod"         =>  _("Service notification period"),
 
-          "AuthorizedSystemCommands"          =>  _("Trigger system commands"),
-          "AuthorizedAllHostCommands"         =>  _("Trigger all host commands"),
-          "AuthorizedAllServiceCommands"      =>  _("Trigger all service commands"),
+            "AuthorizedAllHosts"                =>  _("View all hosts"),
+            "AuthorizedAllServices"             =>  _("View all services"),
 
-          "AuthorizedConfigurationInformation"=>  _("View configuration information"),
-          "AuthorizedSystemInformation"       =>  _("View system informations")));
+            "AuthorizedSystemCommands"          =>  _("Trigger system commands"),
+            "AuthorizedAllHostCommands"         =>  _("Trigger all host commands"),
+            "AuthorizedAllServiceCommands"      =>  _("Trigger all service commands"),
 
+            "AuthorizedConfigurationInformation"=>  _("View configuration information"),
+            "AuthorizedSystemInformation"       =>  _("View system informations"))
+      ));
   }
 }
 
index 56c739e59a8a25fc91d3e99d42b979be853e1e74..7f548f72ad144addb2a30e1a13394385c411aedf 100644 (file)
@@ -1034,26 +1034,34 @@ class sambaAccount extends plugin
   
   function plInfo()
   {
-    return (array("plDescription"   => _("Samba settings"),
+    return (array(
+          "plShortName"     => _("Samba"),
+          "plDescription"   => _("Samba settings"),
           "plSelfModify"    => TRUE,
-          "plDepends"       => array("objectClass" => "gosaAccount"),
-
-          "AllowLoginOnTerminalServer"  => _("Allow login on terminal server"),
-          "InheritClientConfig"         => _("Inherit client config"),
-          "sambaAcctFlags_N"            => _("Login from windows client requires no password"),
-          "sambaAcctFlags_L"            => _("Lock samba account"),
-
-          "sambaLogonTime"        => _("Limit Logon Time") ,
-          "sambaLogoffTime"       => _("Limit Logoff Time") ,
-          "sambaKickoffTime"      => _("Account expires") ,
-          "sambaPwdCanChange"     => _("Allow user to change password") ,
-          "sambaPwdMustChange"    => _("Password expires") ,
-          "sambaHomePath"         => _("Generic home directory") ,
-          "sambaHomeDrive"        => _("Generic samba home drive") ,
-          "sambaLogonScript"      => _("Generic script path") ,
-          "sambaProfilePath"      => _("Generic profile path") ,
-          "sambaDomainName"       => _("Domain") ,
-          "sambaUserWorkstations" => _("Allow connection from") ));
+          "plDepends"       => array("user"),
+          "plPriority"      => 5,                                 // Position in tabs
+          "plSection"       => "personal",                        // This belongs to personal
+          "plCategory"      => array("users"),                    // Add to following categories
+          "plOptions"       => array(),
+
+          "plProvidedAcls"  => array(
+            "AllowLoginOnTerminalServer"  => _("Allow login on terminal server"),
+            "InheritClientConfig"         => _("Inherit client config"),
+            "sambaAcctFlags_N"            => _("Login from windows client requires no password"),
+            "sambaAcctFlags_L"            => _("Lock samba account"),
+
+            "sambaLogonTime"        => _("Limit Logon Time") ,
+            "sambaLogoffTime"       => _("Limit Logoff Time") ,
+            "sambaKickoffTime"      => _("Account expires") ,
+            "sambaPwdCanChange"     => _("Allow user to change password") ,
+            "sambaPwdMustChange"    => _("Password expires") ,
+            "sambaHomePath"         => _("Generic home directory") ,
+            "sambaHomeDrive"        => _("Generic samba home drive") ,
+            "sambaLogonScript"      => _("Generic script path") ,
+            "sambaProfilePath"      => _("Generic profile path") ,
+            "sambaDomainName"       => _("Domain") ,
+            "sambaUserWorkstations" => _("Allow connection from")))
+              );
   }    
 }