Code

Added 'location' to command execution
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jul 2010 13:45:42 +0000 (13:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jul 2010 13:45:42 +0000 (13:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19050 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_plugin.inc

index b28e8b13346631b73b6c5ad10dcfbc0d2de10476..d0351e6d63fb9b26fd794c4b99ea6078d00e1e4a 100644 (file)
@@ -643,7 +643,10 @@ class plugin
           $add_attrs[$attr] = $this->$attr;
         }
       }
+      $ui = get_userinfo();
       $add_attrs['dn']=$this->dn;
+      $add_attrs['callerDN']=$ui->dn;
+      $add_attrs['location']=$this->config->current['NAME'];
 
       $tmp = array();
       foreach($add_attrs as $name => $value){
@@ -686,7 +689,10 @@ class plugin
           $add_attrs[$attr] = $this->$attr;
         }
       }
+      $ui = get_userinfo();
       $add_attrs['dn']=$this->dn;
+      $add_attrs['callerDN']=$ui->dn;
+      $add_attrs['location']=$this->config->current['NAME'];
 
       $tmp = array();
       foreach($add_attrs as $name => $value){
@@ -727,7 +733,10 @@ class plugin
           $add_attrs[$attr] = $this->$attr;
         }
       }
+      $ui = get_userinfo();
       $add_attrs['dn']=$this->dn;
+      $add_attrs['callerDN']=$ui->dn;
+      $add_attrs['location']=$this->config->current['NAME'];
 
       $tmp = array();
       foreach($add_attrs as $name => $value){