diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index fef7254f884fe0089f0e5b1a02255c339ec94fd5..020256dd24d77db22a6959b519a9d336d2ae9af6 100644 (file)
"sambaNTPassword","sambaPwdLastSet","sambaAcctFlags");
var $objectclasses= array("posixAccount","person","organizationalPerson","inetOrgPerson","gosaAccount","shadowAccount","sambaSamAccount","top");
+ var $view_logged = FALSE;
function wingeneric ($config, $dn= NULL, $parent= NULL)
{
$this->orig_dn= $this->dn;
$this->cn= preg_replace("/\\\$\$/","",$this->cn);
-
- if($this->is_account){
- @log::log("view","winworkstation/".get_class($this),$this->dn);
- }
}
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","winworkstation/".get_class($this),$this->dn);
+ }
+
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){