From fcb2769fb19b945f66e7903629d1308657a60173 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 May 2008 08:03:54 +0000 Subject: [PATCH] Removed MASK attribute from krb policy git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10802 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/services/kerberos/class_goKrbServer.inc | 7 +++++-- .../admin/systems/services/kerberos/krb5_policy.tpl | 3 ++- 2 files changed, 7 insertions(+), 3 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 a807e6eb3..fda2ebb1a 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_goKrbServer.inc @@ -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); } diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/krb5_policy.tpl b/gosa-plugins/heimdal/admin/systems/services/kerberos/krb5_policy.tpl index a33e643c8..246cbdd65 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/krb5_policy.tpl +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/krb5_policy.tpl @@ -3,10 +3,11 @@ {t}Policy name{/t} - + {t}Password minimum length{/t} -- 2.30.2