Code

Removed MASK attribute from krb policy
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 08:03:54 +0000 (08:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 08:03:54 +0000 (08:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10802 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc
gosa-plugins/heimdal/admin/systems/services/kerberos/krb5_policy.tpl

index a807e6eb3ea615a0b91041edb8ae118d6e13689e..fda2ebb1a694f8bae1ba5e70f33baed1e0403c23 100644 (file)
@@ -299,6 +299,11 @@ class goKrbServer extends goService{
      */
     $actions = array("del" => array(),"add_edit" => array());
     foreach($this->policies as $policy){
+
+      /* Unset not used vars */
+      if(isset($policy['DATA']['MASK']))          unset($policy['DATA']['MASK']);
+      if(isset($policy['DATA']['POLICY_REFCNT'])) unset($policy['DATA']['POLICY_REFCNT']);
+
       switch($policy['STATUS']){
         case "REMOVED" : $actions['del'] [] = $policy;break; 
         case "ADDED"   : 
@@ -326,8 +331,6 @@ class goKrbServer extends goService{
           msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG);
         }
       }else{
-        unset($policy['DATA']['MASK']);
-        unset($policy['DATA']['POLICY_REFCNT']);
         if(!$o->krb5_add_policy($this->macAddress,$policy['NAME'],$policy['DATA'])){
           msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG);
         }
index a33e643c8c3c9cb1892128966f8e771bceaeddc3..246cbdd65e93044e6c9bfef24cf759a8f60f1ab8 100644 (file)
@@ -3,10 +3,11 @@
                <td>{t}Policy name{/t}</td>
                <td><input type="text" name="name" value="{$name}"></td>
        </tr>
-       <tr>
+<!--   <tr>
                <td>{t}Mask{/t}</td>
                <td><input type="text" name="MASK" value="{$MASK}"></td>
        </tr>
+-->
        <tr>
                <td>{t}Password minimum length{/t}</td>
                <td><input type="text" name="PW_MIN_LENGTH" value="{$PW_MIN_LENGTH}"></td>