summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03ace41)
raw | patch | inline | side by side (parent: 03ace41)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 May 2007 08:10:40 +0000 (08:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 May 2007 08:10:40 +0000 (08:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6449 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc
index 18f9d747bc48228f74cc6a6888d85eda06501651..315a6e26a6751400825b32c51a027e9783c6b747 100644 (file)
$ldap->cd($mountsdn);
$ldap->add($mounts);
show_ldap_error($ldap->get_error(), sprintf(_("Creating system server/shares (mount container) with dn '%s' failed."),$this->dn));
- gosa_log("Mount container '$mountsdn' has been created");
+ new log("modify","server/".get_class($this),$mountdn,array_keys($mount),$ldap->get_error());
}
# remove deleted mounts from the container
if (count($attrs) != 0) {
$ldap->rmdir($mountdn);
show_ldap_error($ldap->get_error(), sprintf(_("Removing system server/shares (mount container) with dn '%s' failed."),$this->dn));
- gosa_log("Mount object '".$mountdn."' has been removed");
+ new log("remove","server/".get_class($this),$mountdn,array_keys($mount),$ldap->get_error());
}
}
$ldap->cd($mountdn);
$ldap->add($mount);
show_ldap_error($ldap->get_error(), sprintf(_("Saving system server/shares (mount container) with dn '%s' failed."),$this->dn));
- gosa_log("Mount object '".$mountdn."' has been added");
+ new log("create","server/".get_class($this),$mountdn,array_keys($mount),$ldap->get_error());
}
}
index 5941bbc68eeb2515e674eb7448db590b0d17a339..8c819844268b3bfe87aa82adcc014dd9f883358b 100644 (file)
/* Remove complete entry */
$ldap->rmdir ($this->dn);
show_ldap_error($ldap->get_error(), sprintf(_("Removing host entry from system server/kolab with dn '%s' failed."),$this->dn));
- gosa_log("k=kolab entry removed, ".$this->hostname." was the last kolabHost entry.");
-
} else {
/* Only modify kolabHost */
$this->cleanup();
$ldap->modify ($attrs);
show_ldap_error($ldap->get_error(), sprintf(_("Removing host entry from system server/kolab with dn '%s' failed."),$this->dn));
- gosa_log("Removing ".$this->hostname." from list of kolabHosts");
}
@log::log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index d7b4ffa5d1fef02e700ff7ac3377fb49ed053b22..b3e614ea48a454876d76e07356312212b3e0556c 100644 (file)
$attrs['gotoRootPasswd']= crypt($_POST['new_password'],substr(session_id(),0,2));
}
$ldap->modify($attrs);
- gosa_log ("Password for '".$this->dn."' has been changed");
+ @log::log("security","systems/".get_class($this),$this->dn,array_keys($attrs),$ldap->get_error());
}else{
print_red(_("You are not allowed to change the password for this object."));
}
$this->systab->delete();
}
unset ($this->systab);
- gosa_log ("System object'".$dn."' has been removed");
$this->systab= NULL;
} else {
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
print_red (_("You are not allowed to delete this component!"));
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick system ".
- "deletion.");
+ @log::log("security","systems/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
/* Remove lock file after successfull deletion */
del_lock ($dn);
$this->systab->delete();
}
unset ($this->systab);
- gosa_log ("System object'".$this->dn."' has been removed");
$this->systab= NULL;
/* Terminal list has changed, reload it. */
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
print_red (_("You are not allowed to delete this component!"));
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick system ".
- "deletion.");
+ @log::log("security","systems/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
/* Remove lock file after successfull deletion */
}
$this->systab->save();
- gosa_log ("System object'".$this->dn."' has been saved");
/* Incoming behavior; you can select a system type and an ogroup membership.
* If this object is an Incoming object, $_SESSION['SelectedSystemType'] isset.
diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc
index d11e22d654f7f57f63139e151413e461c0e37e69..7f02cf1688c770268a0bdae70ad28e4bf01c1f01 100644 (file)
if (isset($config->data['MAIN']['EXTERNALPWDHOOK'])){
exec($config->data['MAIN']['EXTERNALPWDHOOK']." ".$username." ".$_POST['new_password'], $resarr);
}
-
- gosa_log ("Password for '".$this->usertab->dn."' has been changed");
+ @log::log("modify","users/".get_class($this),$this->usertab->dn,array(),"Password has been changed");
unset($this->usertab);
$this->usertab= NULL;
}
exec($config->data['MAIN']['EXTERNALPWDHOOK']." ".$username." ".$_POST['new_password'], $resarr);
}
- gosa_log ("Password for '".$this->dn."' has been changed");
+ @log::log("modify","users/".get_class($this),$this->dn,array(),"Password has been changed");
}
} else {
$this->usertab= new usertabs($this->config, $this->config->data['TABS']['USERTABS'],$dn);
$this->usertab->set_acl_base();
$this->usertab->delete ();
- gosa_log ("User object '".$dn."' has been removed");
unset ($this->usertab);
$this->usertab= NULL;
} else {
print_red (sprintf(_("You are not allowed to delete the user '%s'!"),$dn));
if(isset($this->ui->uid)){
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick user deletion.");
+ @log::log("security","users/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
}
/* Remove lock file after successfull deletion */
$this->usertab= new usertabs($this->config, $this->config->data['TABS']['USERTABS'],$this->dn);
$this->usertab->set_acl_base();
$this->usertab->delete ();
- gosa_log ("User object '".$this->dn."' has been removed");
unset ($this->usertab);
$this->usertab= NULL;
} else {
print_red (_("You are not allowed to delete this user!"));
if(isset($this->ui->uid)){
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick user deletion.");
+ @log::log("security","users/".get_class($this),$this->dn,array(),"Tried to trick deletion.");
}
}
/* Save user data to ldap */
if($this->usertab->save() == 1){
- gosa_log ("User object '".$this->dn."' saving failed.");
return;
}
- gosa_log ("User object '".$this->dn."' has been saved");
if (!isset($_POST['edit_apply'])){
/* User has been saved successfully, remove lock from LDAP. */