A Samba Primary Domain Controller is useful if you want to secure access for a small business network.
apt-get install samba
sudo vim /etc/samba/smb.conf
comment out
invalid users = root
… otherwise you can’t add machine account from a client computer
wins support = yes
security = user (i.e. no anonymous access)
domain logons = yes (otherwise it won’t be a domain [...]