Code

Fixed partsing problems
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 12:00:27 +0000 (12:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 12:00:27 +0000 (12:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10689 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc

index 508a3d15bebe54109a4f03584300f7d92d8c2d97..f72ec66b4358b320f361055b8f0524671683267a 100644 (file)
@@ -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();