From ea54e713e99d8e8ded43f90642d5f089d757de7d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 May 2008 06:56:00 +0000 Subject: [PATCH] Some bugfixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10777 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/kerberos/class_password-methods-MIT.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc index fe3e7f071..3cdad0318 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc @@ -112,6 +112,8 @@ class passwordMethodMIT extends passwordMethod */ if($dn != "new" && $dn != ""){ session::un_set("MIT_CACHE"); + session::un_set("MIT_PRINCIPAL_CACHE"); + session::un_set("MIT_POLICY_CACHE"); } /* Get a list of all kerberos servers, defined in ldap @@ -249,6 +251,7 @@ class passwordMethodMIT extends passwordMethod $this->si_error = TRUE; $this->si_error_msg = $o->get_error(); msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG); + return(array()); }else{ $cache[$server] = $tmp; } @@ -275,6 +278,7 @@ class passwordMethodMIT extends passwordMethod $this->si_error = TRUE; $this->si_error_msg = $o->get_error(); msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG); + return(array()); }else{ $cache[$server] = array(); $cache[$server]["_none_"] = _("none"); @@ -309,6 +313,7 @@ class passwordMethodMIT extends passwordMethod if (isset($this->config->current['KRBSASL']) && preg_match('/^true$/i', $this->config->current['KRBSASL'])){ $mode= "sasl"; } + echo "{".$mode."}".$this->attrs['uid'][0]."@".$this->goKrbRealm; return "{".$mode."}".$this->attrs['uid'][0]."@".$this->goKrbRealm; } @@ -563,6 +568,10 @@ class passwordMethodMIT extends passwordMethod /* Save principal changes */ $o = new gosaSupportDaemon(); + if(in_array($principal,$this->server_list[$server_name]['principals'])){ + $this->is_new = FALSE; + } + if($this->is_new){ $o->krb5_add_principal($server_mac,$principal,$entry); }else{ -- 2.30.2