This lab provisions a Samba Active Directory Domain Controller on Ubuntu 24.04 using Samba internal DNS.
Example lab values used here:
- Hostname:
dc1.test.local - IP:
10.0.0.252/24 - Realm:
TEST.LOCAL - NetBIOS domain:
TEST
Note: Using
.localcan be problematic in mixed networks (mDNS). For real deployments prefercorp.internalor a subdomain you control.
sudo apt update && sudo apt install -y git
git clone https://github.com/yossefseit/samba-ad-dc-lab.git cd samba-ad-dc-lab
cp scripts/00-env.example scripts/00-env nano scripts/00-env
chmod +x scripts/*.sh
sudo bash scripts/10-prereqs.sh sudo bash scripts/20-install.sh sudo bash scripts/30-provision.sh sudo bash scripts/40-dns-forwarder.sh sudo bash scripts/50-verify.sh sudo bash scripts/60-create-objects.sh
sudo systemctl status samba-ad-dc --no-pager
Detailed guides for each stage of this lab are available in the docs/ directory:
01-install.md– prerequisites and static IP/hostname setup.02-provision.md– domain provisioning.03-dns-kerberos.md– DNS and Kerberos configuration.04-verify.md– verification checklist.troubleshooting.md– common issues and fixes.
Refer to these documents if you need more detail on a particular step or are troubleshooting problems.