Samba file server#
The Samba file server application provides shared folders and home directories to users and groups within an Active Directory domain.
Only one instance of Samba can be installed per NS8 node. The installation method depends on the role Samba will play in the Active Directory domain.
Domain Controller: To install a Samba instance as an Active Directory Domain Controller, refer to Active Directory. When configuring it as an account provider, ensure the
Provide file shares and authentication to Windows clientsswitch is enabled.Only one AD domain controller can be configured with a LAN IP address to serve Authentication, Shares, and DNS to Windows clients. Other DCs are bound to the cluster private VPN and are accessible only to cluster applications.
Domain Member: To install a Samba instance as an Active Directory Domain Member, start from the Software Center as with any other application. A domain member can connect to both internal and external AD providers. See User domains.
Configuration#
When Samba is installed as a domain member, a first-time configuration procedure starts to collect essential information.
Domain: Select an item from the list of available NS8 user domains. Only internal and external Active Directory domains are listed.
Admin credentials: These are required to join Samba to the domain as a file server member. Enter the username and password of a member from the Active Directory “Domain Admins” group.
File server name and alias: Assign a unique computer account name to Samba. Choose carefully, as this cannot be changed later. The alias name is optional and can be changed at any time.
File server IP address: Select the IP address for the file server.
File server alias#
Once the first-time configuration procedure is completed, use the
Settings page from the left menu to modify the optional File server
alias value. The server alias name is useful for migrating and consolidating
shared folders from another server. The alias name is added to the Active
Directory DNS as a CNAME record pointing to the Samba file server name.
The alias name is also added as a Service Principal Name (SPN) to the
computer account.
File server IP address#
In some cases, it is also possible to modify the File server IP
address and choose a different private IP address from those assigned to
the node. Note that a domain controller cannot change its IP address if
there are other domain controllers in the same AD domain.
Clone a file server instance#
When Samba has the Domain Member role, it is possible to clone it as described in Clone and move applications.
After the clone process finishes, navigate to the Samba application
Status page. The first-configuration procedure will start to acquire
the missing information. A new computer account is created in Active
Directory. Follow the procedure as described in
Configuration.
Restore file server from backup#
First, follow the procedure described in Restore applications by selecting the backup of the Samba module.
After the restoration process completes, further actions may be needed to start the file server, depending on the original Samba role: member or controller.
Restore a domain member#
To complete the restoration of a domain member, navigate to the Samba
application Status page.
If the original IP address and user domain were found, the restore procedure automatically starts the file server. No manual operations are needed.
Otherwise, the first-configuration procedure will start to acquire the missing information. In this case, a new computer account is created in Active Directory. Follow the procedure as described in Configuration.
If you manually remove the original computer account, you may set the original name as the
File server aliasto provide seamless access to shared folders from network clients.To manage computer accounts of an NS8 internal Active Directory domain, invoke the
samba-toolcommand from an NS8 node that hosts a Samba Domain Controller. For example, this command prints an inline help message:runagent -m samba0 podman exec -ti samba-dc samba-tool computer
Replace
samba0with your correct DC module identifier.
Restore a domain controller#
If the restored domain controller is the first in the domain, there are two alternatives:
If the system IP address is the same as the one used in the backup set, DC services are started automatically and no further actions are required.
If the previous condition does not apply, DC services are started using the system VPN IP address as a fallback. A similar command is required to select another IP address at a later time:
api-cli run module/samba0/set-ipaddress --data '{"ipaddress": "10.15.21.100"}'Replace
samba0with the correct module identifier. Replace theipaddressvalue with the correct IP address.
Otherwise, if one or more domain controllers already exist:
Go to the
Domain and userspage and open the Unconfigured provider link.Fill the form to join a new DC to the domain.
Footnotes