Accéder au contenu principal
Version: 17.0

Enable Virus Scan for File Uploads

By integrating a virus scanner into ADOIT, files being uploaded to the ADOIT database (documents, media files, files attached to comments, etc.) or downloaded to your device may be checked for virus infections.

Currently, ADOIT supports integration of Clam AntiVirus (ClamAV) out of the box. If you want to integrate a different virus scanner into ADOIT, please do not hesitate to contact your ADOIT consultant.

Integrate ClamAV

A successful integration of ClamAV into ADOIT requires the following steps:

Install ClamAV and Run Clamd

You must install ClamAV virus scanner on the web server before you can run scans.

The ClamAV Daemon, or clamd, must be running so that the scanning client clamdscan can check files for viruses.

Remarque

For information on how to install ClamAV and run clamd, please refer to Installing ClamAV on Windows or Installing ClamAV (for Unix/Linux/macOS).

Enable ClamAV in the ADOIT Administration

To enable the virus scanner:

  1. Open the ADOIT Administration and go to Settings > ClamAV Virus Scanner > General.

  2. Select the Enable Virus Scanner check box.

  3. In the Path to Virus Scanner executable box, enter the path to clamdscan. The default installation directory is "C:\Program Files\ClamAV".

  4. Click Save.

Example: Enable ClamAV in the ADOIT Administration

A valid configuration could look like this:

 Enable ClamAV in the ADOIT Administration

Done! Restart the ADOIT application server for the configuration changes to become effective.

Logging Output

Logging output is written to the file <Tomcat installation>\logs\ADOIT17.0.log”. The output looks like this:

2020-01-24 09:59:59,093 INFO [http-nio-8000-exec-5] [S] [-1250119471:10189] # Attempting to scan file test.pdf with scanner ado.ext.virusscanner.ClamAVScanner - com.boc.axw.core.upload.virusscan.VirusScanMgr.scanFile(VirusScanMgr.java:51)