Hi Jan,

> I found a little more information:  This is the relevant code in
> lib/pf/scan.pm:
>
> line 254:
>      # Start the scan
>      my $failed_scan = $scan->startScan();
> ### by jan
> #    $failed_scan = '0';
>
>      # Hum ... somethings wrong in the scan ?
>      if ( $failed_scan ) {
>          my $cmd = $bin_dir . "/pfcmd manage vclose $host_mac $SCAN_VID";
>          $logger->info("TOO EARLY 2: Calling $cmd because failed_scan =
> $failed_scan");
>          my $grace = pf_run("$cmd");
>          # FIXME shouldn't we focus on return code instead of output?
> pretty sure this is broken
>          if ( $grace == -1 ) {
>              $logger->warn("Problem trying to close scan violation");
>          }
>      }
>
> For some reason calling the start scan command reurns '1'.  If I set
> failed_scan = 0 all is well with scan report parsing and adding follow
> up violations ...  not the right way to approach the fix to the problem,
> though ;-)
Can you open a bug in our BTS (http://www.packetfence.org/bugs/) with 
your findings?  It's clearly something we need to look at!

Thanks!

-- 
Francois Gaudreault, ing. jr
[email protected]  ::  +1.514.447.4918 (x130) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to