From: cajus Date: Thu, 17 Jan 2008 16:51:58 +0000 (+0000) Subject: Moved heimdal X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=107d148e94d5aa0dba54fbce25d3668ca0cbaeab;p=gosa.git Moved heimdal git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8483 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-core/plugins/admin/systems/services/kerberos/class_goKrbServer.inc deleted file mode 100644 index 3eef127f4..000000000 --- a/gosa-core/plugins/admin/systems/services/kerberos/class_goKrbServer.inc +++ /dev/null @@ -1,107 +0,0 @@ - "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 deleted file mode 100644 index a0234ebe1..000000000 --- a/gosa-core/plugins/admin/systems/services/kerberos/goKrbServer.tpl +++ /dev/null @@ -1,34 +0,0 @@ -

{t}Kerberos kadmin access{/t}

- - - - - - - - - - - - - -
{t}Kerberos Realm{/t}{$must} -{render acl=$goKrbRealmACL} - -{/render} -
{t}Admin user{/t}{$must} -{render acl=$goKrbAdminACL} - -{/render} -
{t}Password{/t}{$must} -{render acl=$goKrbPasswordACL} - -{/render} -
-

 

-
- -   - -
- diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc new file mode 100644 index 000000000..3eef127f4 --- /dev/null +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc @@ -0,0 +1,107 @@ + "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 new file mode 100644 index 000000000..a0234ebe1 --- /dev/null +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/goKrbServer.tpl @@ -0,0 +1,34 @@ +

{t}Kerberos kadmin access{/t}

+ + + + + + + + + + + + + +
{t}Kerberos Realm{/t}{$must} +{render acl=$goKrbRealmACL} + +{/render} +
{t}Admin user{/t}{$must} +{render acl=$goKrbAdminACL} + +{/render} +
{t}Password{/t}{$must} +{render acl=$goKrbPasswordACL} + +{/render} +
+

 

+
+ +   + +
+