From: hickert Date: Mon, 22 Mar 2010 12:19:37 +0000 (+0000) Subject: Made kerberos plugin w3c conform X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=281866445c3a2d9b928af5cb32a307578c63d8b4;p=gosa.git Made kerberos plugin w3c conform git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16991 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc index 70ae2244f..31ca651ed 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc @@ -139,8 +139,8 @@ class goKrbServer extends goService{ } $divlist = new divSelectBox("Kerberos Policies"); - $action = ""; - $action .= ""; + $action = image('images/lists/edit.png','policy_edit_%id'); + $action .= image('images/lists/trash.png','policy_del_%id'); foreach($this->policies as $key => $policy){ if($policy['STATUS'] == "REMOVED") continue; @@ -295,7 +295,7 @@ class goKrbServer extends goService{ /* Remove policy requested */ if(preg_match("/^policy_del/",$name)){ - $id = preg_replace("/^policy_del_([0-9]*)_.*/i","\\1",$name); + $id = preg_replace("/^policy_del_([0-9]*)/i","\\1",$name); if(isset($this->policies[$id])){ $this->RemovePolicy($id); } @@ -305,7 +305,7 @@ class goKrbServer extends goService{ /* Edit Policy requested */ if(preg_match("/^policy_edit/",$name)){ - $id = preg_replace("/^policy_edit_([0-9]*)_.*/i","\\1",$name); + $id = preg_replace("/^policy_edit_([0-9]*)/i","\\1",$name); if(isset($this->policies[$id])){ /* Load policy information, if not done before diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl index 13de8e40e..34c6a589b 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl @@ -1,44 +1,22 @@

{t}Kerberos kadmin access{/t}

- - - - -{if $MIT_KRB} - - - +{if $MIT_KRB} +

{t}Policies{/t}

+ {render acl=$goKrbPolicyACL} + {$divlist} + {/render} + {/if} -
- - - - {render acl=$goKrbRealmACL} - - {/render} - -
{t}Kerberos Realm{/t}{$must}
-
-

{t}Policies{/t}

- - - - -
- {render acl=$goKrbPolicyACL} - {$divlist} - {/render} -
- +{t}Kerberos Realm{/t}{$must} + {render acl=$goKrbRealmACL} + + {/render} -
-
-
- - -   - +
+
+ +
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl index 254e225e5..4cb5bffc3 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb5_policy.tpl @@ -1,53 +1,57 @@

{t}Policy settings{/t}

- + +
- + + + + + + +
- +
- - + + - - + + - - + + - - + +
{t}Policy name{/t}{$must}{t}Policy name{/t}{$must}
{t}Minimum password length{/t}{t}Minimum password length{/t}
{t}Required different characters{/t}{t}Required different characters{/t}
{t}Password history size{/t}{t}Password history size{/t}
-
- + + - - - - -
+ + + - - - - - - - -
-
{t}Minimum password lifetime{/t} {t}seconds{/t}
{t}Password lifetime{/t} {t}seconds{/t}
-

{$POLICY_REFCNT}
- -
+
{t}Minimum password lifetime{/t} {t}seconds{/t}
{t}Password lifetime{/t} {t}seconds{/t}
-
- + + + + +
+ {$POLICY_REFCNT} + + + -   - + +
+
+ +