Sign inSign up

adstec/irf-samba-dc

By adstec

•Updated 27 days ago

Samba 4 Active Directory domain controller for the rootless Docker of ADS-TEC IRF3000 firewalls

Image
0

82

adstec/irf-samba-dc repository overview

⁠Samba Active Directory Domain Controller for ADS-TEC IRF3000

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.

⁠Quick start

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.

VariableDefaultMeaning
REALMIRF.LANKerberos realm / DNS domain
DOMAINIRFNetBIOS domain name
DC_HOSTNAMEDC1Host name of the DC
ADMIN_PASSWORDrandom, printed once to the logAdministrator password
HOST_IP192.168.0.254Address registered in DNS - the IRF address clients use
DNS_FORWARDERDNS server of the IRFUpstream DNS
RPC_PORT_RANGE49152-49172Dynamic RPC ports, must match the port forwarding
SYSVOL_RESET01 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.

⁠Platforms and license

linux/arm64 (IRF3000), linux/arm/v7. Samba is licensed under GPLv3.

Tag summary

Content type

Image

Digest

sha256:f0b43b428…

Size

95.2 MB

Last updated

27 days ago

docker pull adstec/irf-samba-dc