summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6c663a)
raw | patch | inline | side by side (parent: a6c663a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Jan 2008 16:51:58 +0000 (16:51 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Jan 2008 16:51:58 +0000 (16:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8483 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/systems/services/kerberos/class_goKrbServer.inc | [deleted file] | patch | blob | history |
gosa-core/plugins/admin/systems/services/kerberos/goKrbServer.tpl | [deleted file] | patch | blob | history |
gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/heimdal/admin/systems/services/kerberos/goKrbServer.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/plugins/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-core/plugins/admin/systems/services/kerberos/class_goKrbServer.inc
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-class goKrbServer extends goService{
-
- var $cli_summary = "This pluign is used within the ServerService Pluign \nand indicates that this server supports NTP service.";
- var $cli_description = "Some longer text\nfor help";
- var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
- /* This plugin only writes its objectClass */
- var $objectclasses = array("goKrbServer");
- var $attributes = array("goKrbRealm", "goKrbAdmin","goKrbPassword");
- var $StatusFlag = "goKrbServerStatus";
-
- /* This class can't be assigned twice so it conflicts with itsself */
- var $conflicts = array("goKrbServer");
-
- var $DisplayName = "";
- var $dn = NULL;
- var $goKrbServerStatus= "";
- var $cn ="";
- var $goKrbRealm = "";
- var $goKrbAdmin = "";
- var $goKrbPassword ="";
- var $view_logged =FALSE;
-
- function goKrbServer(&$config,$dn)
- {
- goService::goService($config,$dn);
- $this->DisplayName = _("Kerberos service");
- }
-
-
- function execute()
- {
- $smarty = get_smarty();
-
- if($this->is_account && !$this->view_logged){
- $this->view_logged = TRUE;
- new log("view","server/".get_class($this),$this->dn);
- }
-
- $tmp = $this->plinfo();
- foreach($tmp['plProvidedAcls'] as $name => $translation){
- $smarty->assign($name."ACL",$this->getacl($name));
- }
-
- foreach($this->attributes as $attr){
- $smarty->assign($attr,$this->$attr);
- }
- return($smarty->fetch(get_template_path("goKrbServer.tpl",TRUE,dirname(__FILE__))));
- }
-
-
- function getListEntry()
- {
- $fields = goService::getListEntry();
- $fields['Message'] = _("Kerberos service (kadmin access informations)");
- $fields['AllowEdit'] = true;
- return($fields);
- }
-
- function check()
- {
- $message = plugin::check();
- /* goKrbPassword is a must field, if goKrbServer is used as objectClass */
- if (empty($this->goKrbPassword)){
- $message[]= sprintf(_("The specified kerberos password is empty."), $attr);
- }
- if (empty($this->goKrbAdmin)){
- $message[]= sprintf(_("The specified kerberos admin is empty."), $attr);
- }
- if (empty($this->goKrbRealm)){
- $message[]= sprintf(_("The specified kerberos realm is empty."), $attr);
- }
-
- return($message);
- }
-
-
- function save_object()
- {
- if(isset($_POST['goKrbServerPosted'])){
- plugin::save_object();
- }
- }
-
- /* Return plugin informations for acl handling */
- static function plInfo()
- {
- return (array(
- "plShortName" => _("Kerberos"),
- "plDescription" => _("Kerberos access information")." ("._("Services").")",
- "plSelfModify" => FALSE,
- "plDepends" => array(),
- "plPriority" => 95,
- "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/gosa-core/plugins/admin/systems/services/kerberos/goKrbServer.tpl b/gosa-core/plugins/admin/systems/services/kerberos/goKrbServer.tpl
+++ /dev/null
@@ -1,34 +0,0 @@
-<h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}Kerberos kadmin access{/t}</h2>
- <table summary="">
- <tr>
- <td>{t}Kerberos Realm{/t}{$must}</td>
- <td>
-{render acl=$goKrbRealmACL}
- <input name="goKrbRealm" id="goKrbRealm" size=30 maxlength=60 value="{$goKrbRealm}">
-{/render}
- </td>
- </tr>
- <tr>
- <td>{t}Admin user{/t}{$must}</td>
- <td>
-{render acl=$goKrbAdminACL}
- <input name="goKrbAdmin" id="goKrbAdmin" size=30 maxlength=60 value="{$goKrbAdmin}">
-{/render}
- </td>
- </tr>
- <tr>
- <td>{t}Password{/t}{$must}</td>
- <td>
-{render acl=$goKrbPasswordACL}
- <input type=password name="goKrbPassword" id="goKrbPassword" size=30 maxlength=60 value="{$goKrbPassword}">
-{/render}
- </td>
- </tr>
- </table>
-<p class='seperator'> </p>
-<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
- <input type='submit' name='SaveService' value='{t}Save{/t}'>
-
- <input type='submit' name='CancelService' value='{t}Cancel{/t}'>
-</div>
-<input type="hidden" name="goKrbServerPosted" value="1">
diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc
--- /dev/null
@@ -0,0 +1,107 @@
+<?php
+
+class goKrbServer extends goService{
+
+ var $cli_summary = "This pluign is used within the ServerService Pluign \nand indicates that this server supports NTP service.";
+ var $cli_description = "Some longer text\nfor help";
+ var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+
+ /* This plugin only writes its objectClass */
+ var $objectclasses = array("goKrbServer");
+ var $attributes = array("goKrbRealm", "goKrbAdmin","goKrbPassword");
+ var $StatusFlag = "goKrbServerStatus";
+
+ /* This class can't be assigned twice so it conflicts with itsself */
+ var $conflicts = array("goKrbServer");
+
+ var $DisplayName = "";
+ var $dn = NULL;
+ var $goKrbServerStatus= "";
+ var $cn ="";
+ var $goKrbRealm = "";
+ var $goKrbAdmin = "";
+ var $goKrbPassword ="";
+ var $view_logged =FALSE;
+
+ function goKrbServer(&$config,$dn)
+ {
+ goService::goService($config,$dn);
+ $this->DisplayName = _("Kerberos service");
+ }
+
+
+ function execute()
+ {
+ $smarty = get_smarty();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ new log("view","server/".get_class($this),$this->dn);
+ }
+
+ $tmp = $this->plinfo();
+ foreach($tmp['plProvidedAcls'] as $name => $translation){
+ $smarty->assign($name."ACL",$this->getacl($name));
+ }
+
+ foreach($this->attributes as $attr){
+ $smarty->assign($attr,$this->$attr);
+ }
+ return($smarty->fetch(get_template_path("goKrbServer.tpl",TRUE,dirname(__FILE__))));
+ }
+
+
+ function getListEntry()
+ {
+ $fields = goService::getListEntry();
+ $fields['Message'] = _("Kerberos service (kadmin access informations)");
+ $fields['AllowEdit'] = true;
+ return($fields);
+ }
+
+ function check()
+ {
+ $message = plugin::check();
+ /* goKrbPassword is a must field, if goKrbServer is used as objectClass */
+ if (empty($this->goKrbPassword)){
+ $message[]= sprintf(_("The specified kerberos password is empty."), $attr);
+ }
+ if (empty($this->goKrbAdmin)){
+ $message[]= sprintf(_("The specified kerberos admin is empty."), $attr);
+ }
+ if (empty($this->goKrbRealm)){
+ $message[]= sprintf(_("The specified kerberos realm is empty."), $attr);
+ }
+
+ return($message);
+ }
+
+
+ function save_object()
+ {
+ if(isset($_POST['goKrbServerPosted'])){
+ plugin::save_object();
+ }
+ }
+
+ /* Return plugin informations for acl handling */
+ static function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Kerberos"),
+ "plDescription" => _("Kerberos access information")." ("._("Services").")",
+ "plSelfModify" => FALSE,
+ "plDepends" => array(),
+ "plPriority" => 95,
+ "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/gosa-plugins/heimdal/admin/systems/services/kerberos/goKrbServer.tpl b/gosa-plugins/heimdal/admin/systems/services/kerberos/goKrbServer.tpl
--- /dev/null
@@ -0,0 +1,34 @@
+<h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}Kerberos kadmin access{/t}</h2>
+ <table summary="">
+ <tr>
+ <td>{t}Kerberos Realm{/t}{$must}</td>
+ <td>
+{render acl=$goKrbRealmACL}
+ <input name="goKrbRealm" id="goKrbRealm" size=30 maxlength=60 value="{$goKrbRealm}">
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Admin user{/t}{$must}</td>
+ <td>
+{render acl=$goKrbAdminACL}
+ <input name="goKrbAdmin" id="goKrbAdmin" size=30 maxlength=60 value="{$goKrbAdmin}">
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Password{/t}{$must}</td>
+ <td>
+{render acl=$goKrbPasswordACL}
+ <input type=password name="goKrbPassword" id="goKrbPassword" size=30 maxlength=60 value="{$goKrbPassword}">
+{/render}
+ </td>
+ </tr>
+ </table>
+<p class='seperator'> </p>
+<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
+ <input type='submit' name='SaveService' value='{t}Save{/t}'>
+
+ <input type='submit' name='CancelService' value='{t}Cancel{/t}'>
+</div>
+<input type="hidden" name="goKrbServerPosted" value="1">