Code

Udpated mime acls
[gosa.git] / plugins / admin / systems / class_goKrbServer.inc
index 953389a10d8fbd1013aa8c5a6fbee357e0948c8c..4b1fb91d781dcbe4e898c38c17c76310266b611f 100644 (file)
@@ -59,6 +59,13 @@ class goKrbServer extends plugin{
   function remove_from_parent()
   {
     plugin::remove_from_parent();
+
+    /* Remove status flag, it is not a memeber of 
+        this->attributes, so ensure that it is deleted too */
+    if(!empty($this->StatusFlag)){
+      $this->attrs[$this->StatusFlag] = array();
+    }
+
     /* Check if this is a new entry ... add/modify */
     $ldap = $this->config->get_ldap_link();
     $ldap->cat($this->dn,array("objectClass"));
@@ -69,7 +76,7 @@ class goKrbServer extends plugin{
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
     }
-    show_ldap_error($ldap->get_error());
+    show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/gokrb with dn '%s' failed."),$this->dn));
     $this->handle_post_events("remove");
   }
 
@@ -87,7 +94,7 @@ class goKrbServer extends plugin{
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
     }
-    show_ldap_error($ldap->get_error());
+    show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/gokrb with dn '%s' failed."),$this->dn));
     if($this->initially_was_account){
       $this->handle_post_events("modify");
     }else{
@@ -114,7 +121,7 @@ class goKrbServer extends plugin{
       $attrs[$flag] = $value;
       $this->$flag = $value;
       $ldap->modify($attrs);
-      show_ldap_error($ldap->get_error());
+      show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/gokrb with dn '%s' failed."),$this->dn));
       $this->action_hook();
     }
   }