tui-tools

tui-dc

A Samba Active Directory domain, administered from the terminal

A terminal UI (TUI) for samba-tool on Linux: samba-tool for a machine that is a Samba Active Directory domain controller.

v0.2.6betausersMIT

Betatui-dc may still change keys, flags or output before its 1.0. Pin the version you depend on, and report what breaks.What stable means

The domain screen: what the controller answered, what this host is, and the functional levels
The domain screen: what the controller answered, what this host is, and the functional levels

A terminal UI over samba-tool for a machine that is a Samba Active Directory domain controller. It opens read-only: the domain's name and functional levels, the role this host plays in it, the password policy, the accounts, the groups, the machine accounts, the domain's own DNS zone, and the state of replication per naming context.

Every change is one samba-tool command, shown in full and confirmed before it runs — and no password is ever an argument. samba-tool warns about that itself, because a command line is visible in ps to every user on the machine, so creating an account and resetting a password ask samba-tool for a random password and show what it printed — and provisioning omits --adminpass so samba-tool generates the Administrator password itself and prints it exactly once.

On a machine that has samba-tool and no domain, a wizard provisions one: realm, NetBIOS name, DNS backend, optional forwarder, the realm typed back as a second confirmation, then the usual previewed command. It does not join or demote a domain: both touch a trust relationship with another controller, and are worth reading in a shell where they can be checked twice.

Keys

KeyAction
tab / 1…6Move between domain, users, groups, computers, DNS and replication
enterOpen the selected row, reading its detail if it has not been read
nCreate an account, a group or a DNS record
dDelete the selected account, group or record
e / sEnable or suspend the account; on the domain screen, edit the password-policy setting
POn the domain screen of a host with no domain: provision one (wizard, double-confirmed)
pReset the selected account's password to a random one
xSet when the selected account expires
a / mAdd or remove a member of the selected group
/Filter the current screen
r / ctrl+rRe-read the domain
?Help
qQuit

Press ? inside the tool for the full help screen, which is generated from the same action table as the key map.

Compatibility

This tool is a face on the program below, so its version matters. Tested is not a claim: a version lands there only after the tool's own suite passed against it on a real machine in the lab, and the run is kept as evidence in the repository. At startup the tool probes the backend once and says what it found in its header — a version nobody has run against is shown as (untested) in the warning colour, one older than the minimum as (below minimum) in the error colour. Neither stops it: the backend still refuses what it cannot do, in its own words.

samba

samba-tool ≥ 4.13
Binary
samba-tool
Minimum
4.13
Probed with
samba-tool --version
Tested
4.19.54.24.64.24.7

Needs a version this new

  • computer-subcommandsince 4.8

What changes on older versions

  • samba <4.8

    samba-tool computer does not exist, so the computers screen is empty

  • samba <4.13

    untested: the output of domain info, dns query and drs showrepl has changed shape across releases, and the parsers are checked against live controllers running 4.19.5, 4.24.6 and 4.24.7; nothing older, and nothing between 4.13 and 4.19, has been exercised

Maintain samba? You are welcome to help shape this tool. About → maintainers

Guides

Written after the work, from a machine the commands were actually run on. Every guide that mentions tui-dc is listed here.

Install

Once per machine, then every tool in the family is one pacman away.

Add the repository
$ curl -fsSL https://pkgs.tui.tools/install.sh | sh
Or run the same thing yourself, one command at a time

A family whose whole promise is preview before you run is not going to insist you pipe a script into a shell. These are the commands that script runs.

The one-time setup, by hand
$ k="$(mktemp -d)/tui-tools.asc"
  curl -fsSL --proto =https --tlsv1.2 -o "$k" https://pkgs.tui.tools/pubkey.asc
  [ "$(gpg --show-keys --with-colons "$k" | awk -F: '$1 == "pub" { p = 1; next } p && $1 == "fpr" { print $10; p = 0 }')" = 767CFB337B01F32FFC073F3F389120B277E4FB44 ] && echo "key OK" || { echo "WRONG KEY: stop here"; rm -f "$k"; }
  sudo pacman-key --add "$k"
  sudo pacman-key --lsign-key 767CFB337B01F32FFC073F3F389120B277E4FB44
  printf '[tui-tools]\nServer = https://pkgs.tui.tools/arch/$arch\n' | sudo tee -a /etc/pacman.conf
  sudo pacman -Sy

The first lines check the signing key: go on only if they print key OK.

Arch Linux · tui-dc
$ sudo pacman -S tui-dc

Upgrades then arrive with the rest of your system updates.

What it can do to your machine

  • Preview, then confirm

    Every change is shown as an exact command line and confirmed before it runs. The dialog and the runner receive the same value, so the preview cannot drift from what executes.

  • Escalates for actions

    Everything. samba-tool opens the directory database directly and that database is readable only by root, so even the read path escalates. A machine where escalation is refused says so at startup rather than showing an empty domain.

  • No daemon, no state of its own

    Nothing keeps running after you quit, and nothing is installed to run later. The system is the source of truth; the tool re-reads it after every change.

  • Opens network connections

    samba-tool talks to a controller, and this tool points it at this host. domain info is a CLDAP query, dns query a DNS RPC call and drs showrepl a DRS one, so there is loopback traffic on every read. Nothing leaves the machine and nothing is fetched from the internet.

  • Static binary

    Released statically linked, with no runtime dependencies to install.

  • Signed release, with provenance

    checksums.txt carries a keyless cosign signature from this repository's release workflow, every archive has a CycloneDX SBOM, and every archive, package and the checksum file carry SLSA build provenance. The security page shows the three commands that check it.

Reporting

Report a security issue privately, through GitHub's private vulnerability reporting on the repository's Security tab. The family-wide policy, and what counts as in scope, is on the security page.

Downloads

v0.2.6 · 2026-11-20
FileSizeSHA-256
checksums.txt986 B—
checksums.txt.sigstore.json10 KB—
provenance.intoto.jsonl12 KB—
tui-dc-0.2.6-1-aarch64.pkg.tar.zst1.9 MB3bf4cfd6ecd41a5ecc39064784c0f9eba6388bac010b8834e3eb2b88f8486168
tui-dc-0.2.6-1-x86_64.pkg.tar.zst2.1 MB3cf7f0c73693b19e36efdbbf2d3d85e4a2019a9953d007618bc308364f7b3481
tui-dc-0.2.6-1.aarch64.rpm2.0 MB664ae9a102711b5fc68f2296df3f339dd99fb96304cb43a0e37ab761f739e412
tui-dc-0.2.6-1.x86_64.rpm2.2 MBa49741277455a09d2d6725e2bb7da380e9b89a26e16122cc548f8a0aeff035b4
tui-dc_0.2.6_amd64.deb2.1 MB1617fcbcc81e28358fdd5b2e333052d1feb74643f1828ec68e639b18d9e064b7
tui-dc_0.2.6_arm64.deb1.9 MBe56bdba6a0eb8afdd986d2bc3c3a8d47ef6bf0b6d8186121cfd1a94fda0857a0
tui-dc_0.2.6_linux_amd64.tar.gz2.1 MBbc7040581010afa696b42ee0b0ced95b2b9fc8e2b072c127f44eb708eaf2326a
tui-dc_0.2.6_linux_amd64.tar.gz.cyclonedx.json23 KBe252b8b29c1db9338230127938f9967839455f28463a0fb7f20cbd5ef53cf7e3
tui-dc_0.2.6_linux_arm64.tar.gz1.9 MBa1b047c6f823a29550b69db262f98f13680ee2e53cdcc56ee64097e268852d21
tui-dc_0.2.6_linux_arm64.tar.gz.cyclonedx.json23 KB6299bb2247cc763367da91cf0bbb35f5730df6c14bdf99b3a2ec3de4aacff427

Every release ships a checksums.txt. Download it next to the archive and run sha256sum -c checksums.txt --ignore-missing. See verifying a download.

Releases

v0.2.6

2026-11-20
## tui-dc v0.2.6

tui-dc 0.2.6

- The README says when Samba Conductor fits better (#28), and the manifest lists apt, dnf, pacman and the static binary as available, as pkgs.tui.tools serves them (#34).
- Built with tui-kit v0.5.0, the kit's security release, and Go 1.27.4, which fixes GO-2026-6859 in the standard library. As root, the repository key is accepted only when it is the pinned key alone; privileged commands are resolved only from trusted root-owned system paths and start from a minimal environment; config files must be owned and writable by root alone, and TUI_DC_* variables carried over from sudo, doas, pkexec or su are refused (the error points at /etc/tui-dc/config.toml). Running without root is unchanged.
- The manual apt, dnf and pacman setup in the README checks the downloaded key against the pinned fingerprint before any step trusts it.
- CI actions on their latest versions. No other change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* ea2b9d653bc6c83688bac533bd4a2dc5c3e76c0c 0.2.6: tui-kit v0.5.0 (security release) (#39)
* 636fb943d8fd1de747c66894713a148ef7b684d4 Bump github.com/tui-tools/tui-kit (#36)
* d71e9a40e20a0a7c7c8d5aded01ebf93b6a48046 Bump the github-actions group across 1 directory with 5 updates (#37)
* e11351efab2684f6fe4cb9857f7a70703f93ac86 Packages are available from pkgs.tui.tools (#34)
* 07b96b92e6846312db7f8a17cd8bdfee65edfce9 README: say when Samba Conductor fits better, with current facts (#28)
* 1e464db5d5d2af902b9189c1c2440590dbe2bec9 Take tui-kit v0.5.0 and Go 1.27.4 (#38)

v0.2.5

2026-10-22
## tui-dc v0.2.5

tui-dc 0.2.5

- Built with Go 1.27.3, which fixes CVE-2026-111943 in the standard library (crypto/x509), and tui-kit v0.4.5; dependencies on their latest versions. No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 63e8e7f5b062150ee1de79cb4a6375f785dcc087 0.2.5: Go 1.27.3 (stdlib security fixes) (#33)
* e90fc61e137a110621125750612792a99ad9827a Bump the github-actions group across 1 directory with 9 updates (#30)

v0.2.4

2026-10-20
## tui-dc v0.2.4

tui-dc 0.2.4

- Built with Go 1.27.2, which fixes CVE-2026-78667, CVE-2026-78669 and CVE-2026-97031 in the standard library (net/http, crypto/tls). No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* e39b77ebc9b907066bb01fde461c64e1cba2df38 0.2.4: Go 1.27.2 (stdlib security fixes) (#32)

v0.2.3

2026-10-20
## tui-dc v0.2.3

tui-dc 0.2.3

- **A samba-tool that is installed but cannot run is reported as such (#23).** It used to read as "not installed" on screen while `--report` said "installed, version unknown". The screen, the fact row, the subtitle, `--report` and `--check` (`cannotRun`) now all say "installed but cannot run" with the reason, for example a missing Python module.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 2c916937088b1bb3af3deda3441a5bf6120bce6c Merge pull request #31 from tui-tools/fix/samba-tool-cannot-run
* 5042242cdb8960c69f35eec9f710512841f33805 README: say when Samba Conductor is the better fit
* 337da94ab3c0146d8a46bc554e0c10d439f986cb Say "installed but cannot run" for a samba-tool that fails

v0.2.2

2026-09-25
## tui-dc v0.2.2

tui-dc 0.2.2

Release notes (0.2.2): tui-dc moves from tui-kit v0.3.1 to v0.4.4. The kit now shell-quotes every command preview itself, so tui-dc's own quoting is retired and the provision dialog shows the same pasteable line as before (`'--option=dns forwarder=10.0.0.1'`). Every command runs without a controlling terminal, so anything that would prompt fails fast instead of waiting behind the TUI, and status-line errors are cleaned of escape codes. The compatibility evidence records the Samba version exactly as `samba-tool --version` printed it; the tested versions are unchanged.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 4fbb02e18bcca096febc62b4acd955518f8d30ad Authenticate the RPC commands, and tell drs which server to ask (#14)
* bf9c1b069a91af12d0ee08c0d549d8e1ab98bccf Bump anchore/sbom-action/download-syft in the github-actions group (#8)
* 6fb837f899400524bb9fe426a4ba8ff30047d2be Bump the github-actions group with 4 updates (#25)
* 3aec55eaddd86bbbff7aecfdff6100bda3f0d67f Make provision reach samba, and keep the password it prints (#15)
* 6c941390a72f32e1b54cfb72daf8e25c8ba48e06 Preflight before the wizard, and a controller that can serve after it (#16)
* 32ea2670876caa4df56c0570e4b44d96823c859e Provision on the other two distributions the lab covers (#22)
* f373a12d334817b37bf153b60d58396d1d65c0f0 README: link the tool's page on tui.tools (#7)
* 8135195293121528c64bf2bde8faa741f71cbd7b README: point the install snippet at the current release (#6)
* 0dc10c237309c63b1642d36083bc69af205b7246 Read the role a distro's smb.conf only implies, and refuse a version out of a traceback (#21)
* da6f7d52a18995e9fd8eb3e9f349fac0e528a755 Take the compatibility block from the lab matrix, not from prose (#24)
* 81f565853c4c4d8a5f3f475baefd8f1292eecc22 Take tui-kit v0.4.4: kit preview quoting, raw compat evidence (#26)

v0.2.1

2026-09-02
## tui-dc v0.2.1

tui-kit v0.3.0: the dialogs wrap and scroll instead of clipping the
command preview, and the picker filters as you type.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* bb59e12027bd5aff170577dfbf6a6081302c4420 Bump tui-kit to v0.3.0 (#5)
* 65658796d8867823d2b86275c38fd16dd1f89100 tool.json: released (#4)

v0.2.0

2026-09-01
## tui-dc v0.2.0

Manage, not view: create and edit from the TUI (wave 1), lab-validated on the router image.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 55abe6ba3af082b21eb07fa42fbf82ce71419d86 Domain provision wizard and password policy — the DC learns to create (#3)

v0.1.0

2026-09-01
## tui-dc v0.1.0

First validated release: the router-1.0 lab ran this tool against real VMs (tui-lab router topology).

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 051ba70e4bde4b77a8923ea01acb5a359d1cba52 Bump anchore/sbom-action/download-syft in the github-actions group (#1)
* 08be222949085e71786a65c17b2b35a2ab8df511 Initial commit
* c7864297f37facc16f1693c4247ff389764b8769 Replace the template with a Samba AD domain controller tool (#2)