Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit 4778cd0 · 10 days ago
Project

AD Tools Suite: the entire series of Active Directory services at once — one configuration file, HTTPS, and passwordless login

🌐 Machine-translated from Russian. Show original

AD Tools Suite — installation of the entire AD Tools series at once: one configuration file instead of fifteen .env, HTTPS, and clear names (portal.corp.local, phonebook.corp.local, ...) via Caddy, three deployment options, and a consolidated check of all services.

🔒 Since 17.11.2026, the source code of the AD Tools series is provided upon request: leave a request. The showcase of the series is github.com/WorkTime-kz/ad-tools.

Link
📦ad-tools-suite — installer and instructions
🧩Common core of the series — ad-tools-core
🧪Test bench — ad-testlab

In this part:

Why#

The series has 15 web services, each with its own .env: domain controllers, base DN, CA certificate, read accounting, SMTP, and also connections between services — the portal must know the addresses of the directory and surveys, the directory — the absence calendar token. Putting this together by hand for everyone is long and easy to make mistakes. Suite does this from a single suite.json.

How it works#

The employee's browser contacts Caddy at 443 using the service name. Caddy terminates TLS — with its own CA (tls internal, root distributed via GPO) or the company's CA certificate — and passes the request to the service. Services listen only to the local address or docker network, each with its own .envcollected from suite.json. Default ports are from 8201 (ad-portal) to 8215 (ad-audit).

Deployment options:

| Option | | Caddy | Service
| --- | --- | --- |
| Docker | containers with compose profiles | container caddy:2.10-alpine |
| Windows Server 2016+ | Windows Service (WinSW) from LocalService | caddy.exe as a | service
| Linux | systemd units from individual users | unit ad-tools-caddy |

According to the instructions, 2 vCPUs and 4 GB of memory are enough for up to several thousand employees for the entire series.

What the .env generator does#

node bin/suite.js generate breaks down suite.json by .env of each enabled service:

  • 🔗 General settings — domain controllers with failover control, base DN, CA root, read accounting, SMTP, company name, time zone — only for services that know these keys.
  • 🤝 Links between services: directory addresses, birthdays, absences, surveys, and certificates from the portal; a separate ad-absence token for each user; portal address in EMBED_ORIGINS ad-polls; links to helpdesk and inventory in the ad-onboarding card; a link to ad-sspr in the ad-toolkit-lite password reminders.
  • 🔒 Working for Caddy: the service listens only to the local address, TRUST_PROXY=truethe trusted proxy is the Caddy address, PUBLIC_URL is the https name.
  • 🗝️ Secrets (SESSION_SECRET, tokens, ENCRYPTION_KEY ad-sspr, AUDIT_CHAIN_KEY ad-laps) are created once. Already set values are not overwritten without --force, encryption keys are not even changed --rotate-secrets. Restarting without changes changes changes nothing.
  • 🛡️ Privileged services (onboarding, sspr, access) are not issued a shared read account — they need their own, with permissions from their documentation. Passwords can be passed as variables suite.json``SUITE_BIND_PASSWORD, SUITE_SMTP_PASSWORD, etc.

NetBIOS domain name#

The ad-tools-core kernel accepts a login of the form CORP\ivanov only if the domain matches the NetBIOS name — this protects against logging in under someone else's account through a trusted domain. Therefore, domain.netbios in suite.json is needed even without SSO: the suite places it in the LDAP_NETBIOS_DOMAIN of all services on the kernel. Find out the name: (Get-ADDomain).NetBIOSName. If not specified, the suite will take the first part of the domain name and warn — the NetBIOS name often differs.

SSO: passwordless login via Kerberos#

Optionally (sso.enabled) suite includes "built-in Windows authentication": an employee on a domain computer opens the service in Edge or Chrome and immediately enters it, but without a ticket sees the regular sign-in form.

  • Each logged-in service has keytab, SPN HTTP/<имя сервиса> , and scope.
  • For the domain administrator, generated/kerberos-setup.ps1is generated: accounts, setspn, ktpass, -WhatIfmode.
  • The ticket checks the service itself (kernel option A). The "Kerberos on proxy" option with Caddy does not work — standard Caddy does not have SPNEGO verification — so it is disabled, and Caddyfile cuts incoming requests X-Remote-User, Remote-User, X-Forwarded-User , and X-Proxy-Secret. Otherwise, any employee could send a header with someone else's login.

Maturity. Kerberos in the kernel has been tested on Samba AD 4.19 with the MIT client; it has not yet been tested on Windows Server AD and in Edge and Chrome browsers. The manual recommends enabling it first on one service (sso.services: ["helpdesk"]).

CI#

Workflow .github/workflows/ci.yml checks:

  • node --test on Node 22 and 24 under Ubuntu and Windows; docker-compose.yml must match the service directory;
  • syntax, BOM, and CRLF Install-Suite.ps1 the Windows PowerShell 5.1 parser, and on Windows — both generated password-expiry.ps1 and kerberos-setup.ps1;
  • end-to-end verification on real services: fresh clones of services from the GitHub series, suite generate by their .env.example , and each service's own validateConfig() — without SSO and with SSO (keytab creates the ad-tools-core utility). Active Directory and the network are not needed for this.

How to launch#

You need Node.js 20.12+ and git; then — Docker, Windows Server, or Linux with systemd.

# после получения доступа (репозиторий закрыт, запрос — github.com/WorkTime-kz/ad-tools):
git clone https://github.com/WorkTime-kz/ad-tools-suite.git && cd ad-tools-suite
node bin/suite.js init      # создает suite.json — домен, учетки, состав
node bin/suite.js plan      # что будет установлено и по каким адресам

Next is one of the options:

VariantCommands
Dockernode bin/suite.js fetch && node bin/suite.js generate && docker compose up -d --build
Windows Serverpowershell -ExecutionPolicy Bypass -File deploy\windows\Install-Suite.ps1 -WhatIf, then without -WhatIf
Linux (systemd)sudo deploy/linux/install-suite.sh --dry-run, then without --dry-run

Checking all at once — node bin/suite.js check: table OK / NOT READY / UNAVAILABLE for /healthz each service, --html check.html — summary page, exit code 1 for monitoring. There is also backup — backup of all services at once.

A detailed guide docs/INSTALL.md from a clean server to a working series: preparing AD (accounts, groups, CA root), DNS names, HTTPS, and root distribution via GPO, SSO, updates, backups, deletion, security, and common issues.

Project status#

  • GPL-3.0-only license; source code is available upon request.
  • 51 tests node --test passing (released 15.11.2026): generator, .env, SSO, Caddyfile, compose, check, PowerShell 5.1 parser.
  • Tests and CI check the generated settings but not the live installation: working in the real domain, Windows services, and systemd has not yet been confirmed in practice — so administrators ready to try in the test domain are needed.

How to help#

  • 🧪 Deploy the series in the test domain (start with plan and -WhatIf / --dry-run) and write what worked and what didn't.
  • 🧪 No test domain — launch ad-testlab.
  • ⭐ Star the ad-tools showcase; questions and access requests — through the Issues showcase; after gaining access, send issues and pull requests to the repository.

AD Tools Series#

Service projects: ad-tools-core: one core for 15 Active Directory services — LDAP, login, sessions, and dependency free Kerberos.

What suite includes:

  • ad-portal — start page
  • ad-phonebook — telephone directory
  • ad-birthdays — birthdays and anniversaries
  • ad-absence — absence calendar
  • ad-polls — polls and voting
  • ad-certs — certificate expiration dates
  • ad-orgchart — organizational structure
  • ad-rooms — meeting rooms
  • ad-helpdesk — IT requests
  • ad-inventory — equipment accounting
  • ad-onboarding — hiring and firing
  • ad-sspr — password reset
  • ad-laps — local administrator passwords
  • ad-access — access requests
  • ad-audit — AD security audit
  • ad-toolkit-lite — a set of PowerShell scripts

All services are described in the github.com/WorkTime-kz/ad-tools series showcase.

👉 Repository: source code — upon request, leave a request. Series showcase — github.com/WorkTime-kz/ad-tools

Looking for:администраторы для пробной установкипроверка на Windows Server и systemdконтрибьюторы
Comments 02 участника · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.