From 5c3de95079130c3f9127625f6a3b434bc06587a3 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 17 Jul 2006 05:12:17 +0000 Subject: [PATCH] Updated acl arrays git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4165 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/faxaccount/class_gofaxAccount.inc | 30 +++++++----- .../gofon/phoneaccount/class_phoneAccount.inc | 27 +++++++---- .../personal/nagios/class_nagiosAccount.inc | 43 +++++++++-------- plugins/personal/samba/class_sambaAccount.inc | 46 +++++++++++-------- 4 files changed, 87 insertions(+), 59 deletions(-) diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 1510c0d50..5c4c8749a 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -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")) + )); } } diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 6f8bc7544..4337d7fcb 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -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")) + )); } } diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc index 216c09135..e2ea3aa0e 100644 --- a/plugins/personal/nagios/class_nagiosAccount.inc +++ b/plugins/personal/nagios/class_nagiosAccount.inc @@ -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")) + )); } } diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 56c739e59..7f548f72a 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -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"))) + ); } } -- 2.30.2