From 0adb8649b99b7f00cd57dd79c2b7a1734281abd9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 23 Apr 2008 12:52:05 +0000 Subject: [PATCH] Moved policy get into header git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10653 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/kerberos/class_goKrbServer.inc | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc index 8ba508752..8d00fedc2 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc @@ -27,6 +27,19 @@ class goKrbServer extends goService{ { goService::goService($config,$dn); $this->DisplayName = _("Kerberos service"); + + /* Get configured policies + */ + $o = new gosaSupportDaemon(); + $tmp = $o->krb5_list_policies("00:01:6c:9d:aa:16"); + if($o->is_error()){ + msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG); + }else{ + $this->policies = array(); + foreach($tmp as $policy){ + $this->policies[] = array("NAME" => $policy,"STATUS" => "LOADED"); + } + } } @@ -48,15 +61,12 @@ class goKrbServer extends goService{ $smarty->assign($attr,$this->$attr); } - $o = new gosaSupportDaemon(); - $this->policies = $o->krb5_list_policies("00:01:6c:9d:aa:16"); - $divlist = new divSelectBox("Kerberos Policies"); $action = ""; $action .= ""; foreach($this->policies as $key => $policy){ $actions = preg_replace("/%id/",$key,$action); - $field1 = array("string" => $policy); + $field1 = array("string" => $policy['NAME']); $field3 = array("string" => $actions, "attach"=>"style='width:40px; text-align:right; border:0px;'"); -- 2.30.2