From: hickert Date: Fri, 25 Apr 2008 12:00:27 +0000 (+0000) Subject: Fixed partsing problems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf4dcf151663d752d673ac94e09fbb84b2c3f0af;p=gosa.git Fixed partsing problems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10689 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 508a3d15b..f72ec66b4 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 @@ -102,18 +102,18 @@ class passwordMethodMIT extends passwordMethod /* Create Realm/Server/Principal mapping. */ foreach($principals as $principal){ - $this->map["PRINCIPAL_SERVER"][$principal] => $attrs['cn'][0]; - $this->map["PRINCIPAL_REALM"] [$principal] => $attrs['goKrbRealm'][0]; + $this->map["PRINCIPAL_SERVER"][$principal] = $attrs['cn'][0]; + $this->map["PRINCIPAL_REALM"] [$principal] = $attrs['goKrbRealm'][0]; } - $this->map["SERVER_REALM"] [$attrs['cn'][0]] => $attrs['goKrbRealm'][0]; - $this->map["REALM_SERVER"] [$attrs['goKrbRealm'][0]] => $attrs['cn'][0]; + $this->map["SERVER_REALM"][$attrs['cn'][0]] = $attrs['goKrbRealm'][0]; + $this->map["REALM_SERVER"][$attrs['goKrbRealm'][0]] = $attrs['cn'][0]; /* Create Server list */ $this->server_list[$attrs['cn'][0]] = array("macAddress" => $attrs['macAddress'][0], "description"=> $attrs['description'][0], "dn" => $attrs['dn'], - "principals" => $principals + "principals" => $principals, "goKrbRealm" => $attrs['goKrbRealm'][0], "cn" => $attrs['cn'][0]); } @@ -210,7 +210,7 @@ class passwordMethodMIT extends passwordMethod function remove_from_parent() { - if(!empty($this->principal && $this->goKrbRealm)){ + if(!empty($this->principal) && $this->goKrbRealm){ $server = $this->map['REALM_SERVER'][$this->goKrbRealm]; $o = new gosaSupportDaemon(); if(!$o->krb5_del_principal($this->server_list[$server]['macAddress'],$this->principal)){ @@ -222,7 +222,7 @@ class passwordMethodMIT extends passwordMethod function set_password($password) { - if(!empty($this->principal && $this->goKrbRealm)){ + if(!empty($this->principal) && $this->goKrbRealm){ $server = $this->map['REALM_SERVER'][$this->goKrbRealm]; $o = new gosaSupportDaemon();