summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3b727e)
raw | patch | inline | side by side (parent: e3b727e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Apr 2008 12:52:05 +0000 (12:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Apr 2008 12:52:05 +0000 (12:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10653 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc | patch | blob | history |
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 8ba50875221e6a766fd85861bbd569e47eaa43cf..8d00fedc22013d6d9fe0a9070f65c984992dae41 100644 (file)
{
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");
+ }
+ }
}
$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 = "<input type='image' src='images/lists/edit.png' class='center' name='policy_edit_%id'>";
$action .= "<input type='image' src='images/lists/trash.png' class='center' name='policy_del_%id'>";
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;'");