
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_ORIGINSad-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_URLis the https name. - 🗝️ Secrets (
SESSION_SECRET, tokens,ENCRYPTION_KEYad-sspr,AUDIT_CHAIN_KEYad-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, andX-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 --teston Node 22 and 24 under Ubuntu and Windows;docker-compose.ymlmust match the service directory;- syntax, BOM, and CRLF
Install-Suite.ps1the Windows PowerShell 5.1 parser, and on Windows — both generatedpassword-expiry.ps1andkerberos-setup.ps1; - end-to-end verification on real services: fresh clones of services from the GitHub series,
suite generateby their.env.example, and each service's ownvalidateConfig()— 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:
| Variant | Commands |
|---|---|
| Docker | node bin/suite.js fetch && node bin/suite.js generate && docker compose up -d --build |
| Windows Server | powershell -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 --testpassing (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
planand-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
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.