Code

Applied patches from 2.5 Revision: 6519
[gosa.git] / plugins / admin / ogroups / class_ogroupManagement.inc
index 2cb1f755a1b30980e5131e093ffeef432af61d86..14f9d9f97ef32540864659651ec9f2c68da3525b 100644 (file)
@@ -178,7 +178,6 @@ class ogroupManagement extends plugin
           /* Delete request is permitted, perform LDAP action */
           $this->ogroup= new ogrouptabs($this->config,$this->config->data['TABS']['OGROUPTABS'], $dn);
           $this->ogroup->delete ();
-          gosa_log ("Object group'".$dn."' has been removed");
           unset ($this->ogroup);
           $this->ogroup= NULL;
         } else {
@@ -186,7 +185,7 @@ class ogroupManagement extends plugin
           /* Normally this shouldn't be reached, send some extra
              logs to notify the administrator */
           print_red (_("You are not allowed to delete this object group!"));
-          gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
+          new log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -258,7 +257,6 @@ class ogroupManagement extends plugin
         $this->ogroup= new ogrouptabs($this->config,
             $this->config->data['TABS']['OGROUPTABS'], $this->dn);
         $this->ogroup->delete ();
-        gosa_log ("Object group'".$this->dn."' has been removed");
         unset ($this->ogroup);
         $this->ogroup= NULL;
       } else {
@@ -266,7 +264,7 @@ class ogroupManagement extends plugin
         /* Normally this shouldn't be reached, send some extra
            logs to notify the administrator */
         print_red (_("You are not allowed to delete this object group!"));
-        gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
+        new log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */
@@ -327,7 +325,6 @@ class ogroupManagement extends plugin
 
         /* Save user data to ldap */
         $this->ogroup->save();
-        gosa_log ("Object group'".$this->dn."' has been saved");
 
         if (!isset($_POST['edit_apply'])){
           /* Group has been saved successfully, remove lock from