Building the VFS SMB Module |
In this section: If the Samba version used on your file server is incompatible with all supplied versions of the VFS SMB module used by SpIDer Guard for SMB, you will have to build this module manually from source code. The source code of the VFS SMB module for SpIDer Guard for SMB is supplied in the additional package named drweb-smbspider-modules-src and is packed to the tar.gz archive. The drweb-smbspider-modules-src package contains a drweb-smbspider- archive with the source code. This archive is placed into /usr/src/11.1.src.tar.gz directory. If the archive is absent in this directory, install the package with the source code manually (from repository or by custom installation from the universal package, depending on the way, of the Dr.Web Server Security Suite installation). Besides the source code of the VFS SMB module used by SpIDer Guard for SMB, you will also need the source code of the Samba version installed on your file server. If you do not have the source code, download it from the developer’s source, for example https://www.samba.org/samba/download/. To determine which Samba version is installed on your file server, use the following command:
1.Unpack the archive with the module source code to any directory. For example, the command
unpacks the source code to the directory containing the archive and creates a subdirectory with the archive file name. 2.Determine the version of Samba installed on your server and download its source code if necessary. 3.Determine if the version of Samba installed on your server uses the CLUSTER_SUPPORT option. To do that, use the following command:
If your Samba server uses the CLUSTER_SUPPORT option, this command displays the CLUSTER_SUPPORT string. 4.Go to the directory with the Samba source code, configure (./configure) and build (make) the server. When configuring, specify the correct value of the CLUSTER_SUPPORT option. In case of issues with configuring and building the source code of Samba, refer to developer documentation, for example at https://www.samba.org/samba/docs/.
5.When you have successfully built Samba, go to the directory with the VFS SMB module source code and run the following command:
where <path to Samba source directory> is the path to the directory where Samba was built in the previous step. 6.When the VFS SMB module is successfully built, copy the libsmb_spider.so resulting file from the .libs subdirectory (created while building) to the directory with VFS modules of the Samba server (by default, for GNU/Linux, it is /usr/lib/<architecture>-linux-gnu/samba/) and rename it to smb_spider.so. To do that, use the following command:
7.After copying of the built VFS SMB module, you can delete the directories where the module and the Samba server were built. After that, it is necessary to integrate Dr.Web Server Security Suite with the Samba server the way it is described in the corresponding section in the Administrator Manual. Note that, in this case, at the first step of the integration, it is not necessary to create the smb_spider.so symbolic link in the directory of the VFS modules of the Samba server. |