S 2.437 Planning the use of a Samba server

Initiation responsibility: IT Security Officer, Head of IT

Implementation responsibility: Administrator, Head of IT

The wide range of applications of Samba make extensive advance planning necessary in order to ensure a controlled and secure introduction of Samba and to ensure secure operation as a consequence. It must be guaranteed in this regard that the security policies specified for IT systems (see in particular S 2.316 Defining a security policy for a general server) are followed to ensure the implementation complies with the policies. Depending on the operational scenario, it is necessary to define the scenario in which Samba will be used, which functions it will fulfil, and which additional software may need to be installed (for example OpenLDAP).

1. Planning the scenario

In order to understand the different tasks and functions Samba can be used for, it helps to review the different scenarios in which a computer can be used in a Windows network:

A Samba server can be used in the following scenarios. It must be noted that there are several different ways of using Samba in one and the same scenario:

2. Planning its function

If Samba is used as a member of an NT4 domain or a member if an AD domain, Samba can perform the following functions:

If Samba is used as the PDC for an NT4-compatible domain or as the BDC of a Samba PDC in an NT4-compatible domain, Samba can perform the following functions:

3. Winbind

Users must provide the server with authentication information in order to use the Samba shares. One Windows account and one Unix user account must be available on the Samba server for each user. The Unix user account is needed so that Samba can allow the kernel to control access in the file system, amongst other reasons (see also S 4.332 Secure configuration of the access controls for a Samba server).

For this reason, each Windows domain user must exist in the Unix operating system with all of their group memberships. It is possible theoretically to manage all domain users manually in Unix. However, Winbind should be used instead of this approach.

Winbind can dynamically create appropriate Unix users and groups for the Windows users and groups if they do not yet exist in Unix. In addition, using Winbind in connection with Samba, it is possible to reduce the load placed on the domain controller in the information system, and therefore reduce the load on the network. A detailed description of Winbind can be found in safeguard S 4.333 Secure configuration of Winbind under Samba.

When planning the use of a Samba server, it must be taken into consideration in terms of Winbind that the ID mapping backend "ads" can only be used when Samba is operated in the ADS security mode (see S 4.328 Secure basic configuration of a Samba server).

Review questions: