From 58d6e44f72edec202688de242f4b38e384b6a35e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Jul 2006 06:21:20 +0000 Subject: [PATCH] Added server service acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4186 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_goCupsServer.inc | 18 ++++++++++ plugins/admin/systems/class_goFaxServer.inc | 19 +++++++++++ plugins/admin/systems/class_goFonServer.inc | 21 ++++++++++++ plugins/admin/systems/class_goGlpiServer.inc | 21 ++++++++++++ plugins/admin/systems/class_goImapServer.inc | 27 +++++++++++++++ plugins/admin/systems/class_goKrbServer.inc | 19 +++++++++++ plugins/admin/systems/class_goLdapServer.inc | 18 ++++++++++ plugins/admin/systems/class_goLogDBServer.inc | 18 ++++++++++ plugins/admin/systems/class_goMailServer.inc | 28 ++++++++++++++++ plugins/admin/systems/class_goNtpServer.inc | 18 ++++++++++ plugins/admin/systems/class_goShareServer.inc | 19 +++++++++++ .../admin/systems/class_goSyslogServer.inc | 17 ++++++++++ .../admin/systems/class_goTerminalServer.inc | 19 +++++++++++ plugins/admin/systems/class_servDNS.inc | 28 ++++++++++++++++ plugins/admin/systems/class_servGeneric.inc | 21 ++++++++++++ plugins/admin/systems/class_servKolab.inc | 33 +++++++++++++++++++ plugins/admin/systems/class_servNfs.inc | 21 ++++++++++++ .../admin/systems/class_servRepository.inc | 20 +++++++++++ .../systems/class_workstationStartup.inc | 33 +++++++++++-------- 19 files changed, 405 insertions(+), 13 deletions(-) diff --git a/plugins/admin/systems/class_goCupsServer.inc b/plugins/admin/systems/class_goCupsServer.inc index b244ef77b..af31f6809 100644 --- a/plugins/admin/systems/class_goCupsServer.inc +++ b/plugins/admin/systems/class_goCupsServer.inc @@ -198,6 +198,24 @@ class goCupsServer extends plugin{ } } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Cups"), + "plDescription" => _("Cups service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array() + )); + } + + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc index c15b88554..5248a676d 100644 --- a/plugins/admin/systems/class_goFaxServer.inc +++ b/plugins/admin/systems/class_goFaxServer.inc @@ -206,6 +206,25 @@ class goFaxServer extends plugin{ $this->$flag = $attrs[$flag][0]; } } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Fax server"), + "plDescription" => _("Fax server service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goFaxAdmin" => _("Login name"), + "goFaxPassword" => _("Password")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goFonServer.inc b/plugins/admin/systems/class_goFonServer.inc index a8aa3ca79..94e864f6b 100644 --- a/plugins/admin/systems/class_goFonServer.inc +++ b/plugins/admin/systems/class_goFonServer.inc @@ -215,6 +215,27 @@ class goFonServer extends plugin{ $this->$flag = $attrs[$flag][0]; } } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("GoFon server"), + "plDescription" => _("GoFon server service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goFonAdmin" => _("Admin"), + "goFonPassword" => _("Password"), + "goFonAreaCode" => _("Area code"), + "goFonCountryCode"=> _("Country code")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc index d2ca6ddfd..b04424e9e 100644 --- a/plugins/admin/systems/class_goGlpiServer.inc +++ b/plugins/admin/systems/class_goGlpiServer.inc @@ -208,6 +208,27 @@ class goGlpiServer extends plugin{ $this->$flag = $attrs[$flag][0]; } } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Glpi server"), + "plDescription" => _("Glpi server service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goGlpiAdmin" => _("Admin"), + "goGlpiDatabase" => _("Database"), + "goGlpiPassword" => _("Password")) + )); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc index 934d78842..cb1efe06f 100644 --- a/plugins/admin/systems/class_goImapServer.inc +++ b/plugins/admin/systems/class_goImapServer.inc @@ -264,6 +264,33 @@ class goImapServer extends plugin{ $this->$flag = $attrs[$flag][0]; } } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Imap"), + "plDescription" => _("Imap service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goImapName" =>_("Server indentifier"), + "goImapConnect" =>_("Connect URL"), + "goImapAdmin" =>_("Admin user"), + "goImapPassword" =>_("Admin password"), + "goImapSievePort" =>_("Sieve port"), + "cyrusImap" =>_("Start IMAP service"), + "cyrusImapSSL" =>_("Start IMAP SSL service"), + "cyrusPop3" =>_("Start POP3 service"), + "cyrusPop3SSL" =>_("Start POP3 SSL service")) + )); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc index 4b1fb91d7..7ffef032a 100644 --- a/plugins/admin/systems/class_goKrbServer.inc +++ b/plugins/admin/systems/class_goKrbServer.inc @@ -211,6 +211,25 @@ class goKrbServer extends plugin{ $this->$flag = $attrs[$flag][0]; } } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Kerberos"), + "plDescription" => _("Kerberos service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goKrbRealm" => _("Realm"), + "goKrbAdmin" => _("Admin"), + "goKrbPassword" => _("Password")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goLdapServer.inc b/plugins/admin/systems/class_goLdapServer.inc index 3f5ec4b38..fa7896b54 100644 --- a/plugins/admin/systems/class_goLdapServer.inc +++ b/plugins/admin/systems/class_goLdapServer.inc @@ -201,6 +201,24 @@ class goLdapServer extends plugin{ $this->$flag = $attrs[$flag][0]; } } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Ldap"), + "plDescription" => _("Ldap service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goLdapBase" => _("Ldap base")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc index 0667031f5..b3bb37a9f 100644 --- a/plugins/admin/systems/class_goLogDBServer.inc +++ b/plugins/admin/systems/class_goLogDBServer.inc @@ -207,6 +207,24 @@ class goLogDBServer extends plugin{ } } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Log"), + "plDescription" => _("Log service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goLogAdmin" => _("Admin"), + "goLogPassword" => _("Password")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc index 337bc9d68..a1cbbd248 100644 --- a/plugins/admin/systems/class_goMailServer.inc +++ b/plugins/admin/systems/class_goMailServer.inc @@ -763,6 +763,34 @@ class goMailServer extends plugin{ { plugin::save_object(); } + + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Mail"), + "plDescription" => _("Mail service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "description" => _("Description"), + "postfixHeaderSizeLimit" => _("Header size limit"), + "postfixMailboxSizeLimit" => _("Max mailbox size"), + "postfixMessageSizeLimit" => _("Max message size"), + "postfixMyDestinations" => _("Domains to accept mail for"), + "postfixMyNetworks" => _("Local networks"), + "postfixRelayhost" => _("Relay host"), + "postfixTransportTable" => _("Transport table"), + "postfixSenderRestrictions" => _("Restrictions for sender"), + "postfixRecipientRestrictions"=> _("Restrictions for recipient")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc index 5be4b74df..6ab88fe17 100644 --- a/plugins/admin/systems/class_goNtpServer.inc +++ b/plugins/admin/systems/class_goNtpServer.inc @@ -212,6 +212,24 @@ class goNtpServer extends plugin{ } + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("NTP"), + "plDescription" => _("NTP service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goTimeSource" =>_("Ntp source")) + )); + } + + function check(){ return array();} function save_object(){;} diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc index 87c854608..99c75c326 100644 --- a/plugins/admin/systems/class_goShareServer.inc +++ b/plugins/admin/systems/class_goShareServer.inc @@ -440,6 +440,25 @@ class goShareServer extends plugin{ return $mount; } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Shares"), + "plDescription" => _("Share service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goExportEntry" =>_("Share entry")) + )); + } + + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc index cbb56157a..7e389f9ab 100644 --- a/plugins/admin/systems/class_goSyslogServer.inc +++ b/plugins/admin/systems/class_goSyslogServer.inc @@ -197,6 +197,23 @@ class goSyslogServer extends plugin{ } } + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Syslog"), + "plDescription" => _("Syslog service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array() + )); + } + + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_goTerminalServer.inc b/plugins/admin/systems/class_goTerminalServer.inc index 235195fef..6fcb615ed 100644 --- a/plugins/admin/systems/class_goTerminalServer.inc +++ b/plugins/admin/systems/class_goTerminalServer.inc @@ -215,6 +215,25 @@ class goTerminalServer extends plugin{ } } + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Terminal"), + "plDescription" => _("Terminal service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "goXdmcpIsEnabled" => _("Temporary disable login"), + "goFontPath" => _("Font path")) + )); + } + + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index fbd9c812c..6c1307d25 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -381,6 +381,34 @@ class servdns extends plugin $this->$flag = $attrs[$flag][0]; } } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("DNS"), + "plDescription" => _("DNS service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "zoneName" =>_("Zone name"), + "ReverseZone" =>_("Reverse zone"), + "sOAprimary" =>_("Primary dns server"), + "sOAmail" =>_("Mail address"), + "sOAserial" =>_("Serial"), + "sOArefresh" =>_("Refresh"), + "sOAretry" =>_("Retry"), + "sOAexpire" =>_("Expire"), + "sOAttl" =>_("TTL"), + "zoneRecords" =>_("Zone records")) + )); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index 8d31c6884..72eb4617c 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -307,6 +307,27 @@ class servgeneric extends plugin } } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Generic"), + "plDescription" => _("Server generic"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server" => array("description" => _("Server"), + "objectClass" => _("gotoWorkstation"))), + "plProvidedAcls"=> array( + "cn" => _("Name"), + "description" => _("Description"), + "gotoMode" => _("Goto mode"), + "base" => _("Base"), + "FAIstate" => _("Action flag")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index 07ae9a588..c1e332223 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -403,6 +403,39 @@ class servkolab extends plugin { $this->$flag = $attrs[$flag][0]; } } + + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Kolab"), + "plDescription" => _("Kolab service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "postfix_mydomain" => _("Postfix mydomain") , + "postfix_mydestination" => _("My destination") , + "proftpd_ftp" => _("FTP FreeBusy service") , + "postfix_mynetworks" => _("SMTP privileged networks") , + "postfix_enable_virus_scan" => _("Enable virus scan") , + "postfix_relayhost" => _("Relayhost") , + "apache_http" => _("HTTP FreeBusy service") , + "postfix_allow_unauthenticated" => _("Accept Internet Mail") , + "cyrus_imap" => _("IMAP service") , + "kolabFreeBusyFuture" => _("kolabFreeBusyFuture") , + "cyrus_pop3" => _("POP3 service") , + "cyrus_imaps" => _("IMAP/SSL service") , + "cyrus_pop3s" => _("POP3/SSL service") , + "cyrus_sieve" => _("Sieve service") , + "cyrus_quotawarn" => _("Quota settings")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_servNfs.inc b/plugins/admin/systems/class_servNfs.inc index e89bab3ea..113675920 100644 --- a/plugins/admin/systems/class_servNfs.inc +++ b/plugins/admin/systems/class_servNfs.inc @@ -255,6 +255,27 @@ class servnfs extends plugin return $this->create_mount; } + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("NFS"), + "plDescription" => _("NFS service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "description" => _("Description"), + "type" => _("Type"), + "charset" => _("Charset"), + "path" => _("Path"), + "option" => _("Option"), + "volume" => _("Valume")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index d92998b7e..961c49a59 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -423,6 +423,26 @@ class servrepository extends plugin } } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Repository"), + "plDescription" => _("Repository service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("server"), + + "plProvidedAcls"=> array( + "cn" => _("Name"), + "Release" => _("Releases"), + "ParentServer" => _("Parent server"), + "Url" => _("Url")) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 33088b267..5c1bb1d1c 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -1075,21 +1075,28 @@ class workstartup extends plugin } - /* Return plugin informations for acl handling */ + /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("Startup"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "gotoWorkstation"), - "gotoLdapServer" => _("Ldap server"), - "gotoBootKernel" => _("Boot kernel"), - "gotoKernelParameters" => _("Kernel parameter"), - "FAIclass" => _("FAI classes"), - "FAIstatus" => _("FAI status flag"), - "gotoShare" => _("Shares"), - "FAIdebianMirror" => _("Debian mirror"), - "FAIrelease" => _("Debian release"))); + return (array( + "plShortName" => _("Startup"), + "plDescription" => _("System startup"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("workstation","server"), + + "plProvidedAcls"=> array( + "gotoLdapServer" => _("Ldap server"), + "gotoBootKernel" => _("Boot kernel"), + "gotoKernelParameters" => _("Kernel parameter"), + "FAIclass" => _("FAI classes"), + "FAIstatus" => _("FAI status flag"), + "gotoShare" => _("Shares"), + "FAIdebianMirror" => _("Debian mirror"), + "FAIrelease" => _("Debian release")) + )); } } -- 2.30.2