summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e9796a)
raw | patch | inline | side by side (parent: 5e9796a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Jun 2008 08:00:59 +0000 (08:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Jun 2008 08:00:59 +0000 (08:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11227 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc | patch | blob | history | |
gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl | patch | blob | history |
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc
index 5f5645329c6ec98a3425c6bd24571be0d63f045a..a9c2846d0475f373f7e83ad8689ec001fcd98536 100644 (file)
$principals = $this->pwd_handle->load_principals_for_server($mac);
$princ = "";
+ $present = FALSE;
foreach($principals as $name){
if(preg_match("/\/".normalizePreg($this->namingAttr)."\@/i",$name)){
$princ .= "<span style='cursor: pointer;' title='".$name."'>".preg_replace("/\/.*$/","",$name)."</div> ";
}
+ if(preg_match("/^".normalizePreg($this->prefix.$this->namingAttr)."\@/i",$name)){
+ $present = TRUE;
+ }
}
$this->server_list[$mac]['CN'] = $cn;
$this->server_list[$mac]['MAC'] = $mac;
$this->server_list[$mac]['REALM'] = $realm;
$this->server_list[$mac]['USED'] = $princ;
+ $this->server_list[$mac]['PRESENT'] = $present;
$this->server_list[$mac]['PRINCIPALS'] = $principals;
/* Set first realm as selected.
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl
index bed321b59738ed37400c0745e94f8176b180466e..a9707c2e4ce56a88d5c27e21cd0d5246ea9d7106 100644 (file)
<table style="">
{foreach from=$server_list item=item key=key}
<tr>
- <td>{$item.REALM}</td>
- <td style="padding-left:50px;">
- {if $item.USED != ""}
+ <td style="padding-right:50px;">{$item.REALM}</td>
+ <td>
+ {if $item.PRESENT}
<img src='images/empty.png' class="center">
<input type='image' class='center' name='recreate_{$key}'
src='images/lists/reload.png'>
<input type='image' class='center' name='remove_{$key}'
src='images/lists/trash.png'>
- {$item.USED}
{else}
<input type='image' class='center' name='create_{$key}'
src='images/lists/new.png'>
{/if}
</td>
</tr>
+ <tr>
+ <td><i>{t}Keys for this realm{/t}:</i></td>
+ <td>{$item.USED}</td>
+ </tr>
{/foreach}
</table>
{if $is_service_key}