X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_servKolab.inc;h=3b666fd43bbae9848f4ebb8cfcc630909d4d4c81;hb=7a6a428eb1c6534e448094d51bc6a542fe832bb9;hp=5c036d1965b74e0191bd0ca2d0b0bb5636bc9343;hpb=bf40f54f4aa7e175c637cd89d9091d1a0e487f91;p=gosa.git diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index 5c036d196..3b666fd43 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -77,6 +77,9 @@ class servkolab extends goService { } } + if($this->is_account){ + @log::log("view","server/".get_class($this),$this->dn); + } } @@ -212,6 +215,8 @@ class servkolab extends goService { 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()); + /* Optionally execute a command after we're done */ $this->handle_post_events("remove"); } @@ -345,6 +350,13 @@ class servkolab extends goService { $ldap->cd($this->dn); $this->cleanup();; $ldap->$mode($this->attrs); + + if($mode == "add"){ + @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + }else{ + @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + } + show_ldap_error($ldap->get_error(), sprintf(_("Saving system server/kolab with dn '%s' failed."),$this->dn)); /* Optionally execute a command after we're done */