Samba 4 Active Directory domain controller for the rootless Docker of ADS-TEC IRF3000 firewalls
82
Sample container by ADS-TEC Industrial IT: Samba 4.22 (Debian trixie) as Active Directory domain controller in the rootless Docker of the IRF3000 industrial firewalls.
Provides DNS, Kerberos, LDAP/LDAPS, Global Catalog, sysvol/netlogon for group policies and the RPC services for an OT segment. Clients reach the domain controller at the IRF LAN address; the IRF forwards the AD ports into the container.
Rootless Docker on the IRF cannot store the extended attributes and POSIX ACLs a standard Samba DC needs. This image stores the file ACLs of sysvol in a Samba database (vfs_xattr_tdb with stable vfs_fileid keys) and adapts the ID range to the rootless user mapping.
docker run -d --name samba-dc --hostname dc1 --restart unless-stopped \
--network host -v samba-dc-data:/var/lib/samba \
-e REALM=IRF.LAN -e DOMAIN=IRF -e DC_HOSTNAME=DC1 \
-e HOST_IP=192.168.0.254 \
adstec/irf-samba-dc
docker logs samba-dc | grep -A2 "Generated Administrator password"
No --privileged, no additional capabilities.
| Variable | Default | Meaning |
|---|---|---|
REALM | IRF.LAN | Kerberos realm / DNS domain |
DOMAIN | IRF | NetBIOS domain name |
DC_HOSTNAME | DC1 | Host name of the DC |
ADMIN_PASSWORD | random, printed once to the log | Administrator password |
HOST_IP | 192.168.0.254 | Address registered in DNS - the IRF address clients use |
DNS_FORWARDER | DNS server of the IRF | Upstream DNS |
RPC_PORT_RANGE | 49152-49172 | Dynamic RPC ports, must match the port forwarding |
SYSVOL_RESET | 0 | 1 re-applies the sysvol ACLs, e.g. after a restore |
The IRF has to forward DNS, Kerberos, RPC, NetBIOS, LDAP, SMB, kpasswd, LDAPS, Global Catalog and the dynamic RPC range to the container. Setup, port forwarding, backup rules and an assessment of the database-based ACL storage are described in the Docker Application Note of ADS-TEC Industrial IT.
linux/arm64 (IRF3000), linux/arm/v7. Samba is licensed under GPLv3.
Content type
Image
Digest
sha256:f0b43b428…
Size
95.2 MB
Last updated
27 days ago
docker pull adstec/irf-samba-dc