
Active Directory toolkit: 16 self-hosted tools for IT teams
🌐 Machine-translated from Russian. Show original
AD Tools is a series of self-hosted web services and scripts for companies that run Active Directory. Each tool solves one everyday IT task — a phone book, password reset, LAPS passwords, a helpdesk, an inventory, a security audit — and runs inside the company network, without cloud services, CDNs or calls to the internet.
🔒 Since 17.11.2026, the source code of the AD Tools series is available on request: submit a request. Series overview — github.com/WorkTime-kz/ad-tools.
The documentation is currently in Russian; the code, configuration keys and commands are universal. The web interfaces are available in Russian and Kazakh.
| Link | |
|---|---|
| 🧰 AD Tools — series overview: all 16 tools, requirements and status | github.com/WorkTime-kz/ad-tools |
| 📦 ad-tools-suite — the whole series in one go | Source code — on request |
| 🧩 Shared core of the series — ad-tools-core | Source code — on request |
| 🧪 Test domain for checks — ad-testlab | Source code — on request |
In this part:
What's new (November 2026)#
Since November 13, every tool in the series has received the same set of changes:
- 🧩 One shared core. All 15 web services now use ad-tools-core for the AD connection, login, sessions, rate limiting, logging and email. The core's password login also protects against signing in through a trusted domain:
OTHER\ivanovorivanov@other.localno longer signs you in as the localivanov. - 🪟 Windows sign-in (Kerberos/SPNEGO SSO) — optional and off by default; either inside the service with a keytab or on an IIS/Apache reverse proxy, with the usual login form as a fallback. Status, as stated in the READMEs: tested on Samba AD; not yet tested on Windows Server AD or in browsers.
- 🇰🇿 Kazakh interface. Every web service has a Russian/Kazakh switch and picks the language from the browser by default; errors (and, where the service sends them, emails) follow the chosen language. In ad-toolkit-lite, the Outlook signature and the password-expiry email take
-Language ru|kk. The Kazakh translation was prepared with AI help, and corrections from native speakers are welcome. - ⚙️ CI on GitHub Actions. Node services run their tests on Node 20 and 22, on Linux and Windows, plus an integration run against a real Samba AD domain controller from ad-testlab. ad-toolkit-lite checks encoding and syntax in PowerShell 5.1 and 7, runs its demo-mode tests and PSScriptAnalyzer.
- 🐞 Fixes found on the Samba AD test domain. For example, ad-laps could not find computers by
objectGUIDand ad-sspr/ad-access could not find domain groups by SID (the LDAP library corrupted escaped bytes in string filters); several services turned missing attributes into the string "undefined"; ad-onboarding now handles the different error codes Samba returns when a group membership is added or removed twice. - 🛡️ Security audits of ad-access, ad-laps and ad-sspr, each with a
docs/SECURITY.mdthreat model. Fixes include login and reveal rate limits that parallel requests could bypass, nested membership in protected groups, sessions that survived logout, password change or account disabling, and sign-in through a trusted domain. - 🔗 ad-onboarding ↔ ad-helpdesk ↔ ad-inventory. When a new hire is processed, onboarding reserves a laptop or PC from stock in ad-inventory and opens a "prepare the workplace" ticket in ad-helpdesk; on offboarding it lists the equipment assigned to the employee and opens a "collect equipment and close access" ticket. If a neighbouring service is down, the step is marked as failed and can be retried without duplicates.
- 📦 Install the whole series at once with ad-tools-suite — now also with Kerberos SSO and the NetBIOS domain name for all services.
Why we built it#
Small and mid-size companies with Active Directory often face the same choice: buy a large suite or live with scripts and spreadsheets. AD Tools sits in between — small, single-purpose services that read users, groups and managers from AD, log people in with their domain password, and assign roles by AD groups.
Shared principles from the READMEs:
- On-premises only. No internet, no external CDN, no telemetry.
- Minimal dependencies. Most services have one external dependency (
ldapts); front-ends have no build step. - Secure connection to AD. LDAPS or StartTLS with certificate verification, failover between domain controllers, paged search for large domains.
- Read-only by default. Most tools only read AD. The few that change it use a dedicated service account with narrowly delegated rights.
- Optional Windows sign-in (Kerberos SSO) with the password form always available as a fallback.
- Russian and Kazakh interfaces.
- Demo mode without AD, so you can try a tool on a laptop first (for example,
npm ci && npm run demo). - License: GPL-3.0.
The 16 tools#
Fifteen web services plus a PowerShell toolkit; the source code of every tool is available on request. The ports are the defaults used by the suite installer.
| # | Tool | What it does | Port |
|---|---|---|---|
| 1 | ad-portal | Start page for all internal services: tiles with live status, colleague search, news, a "Today" block, a /status page with 30-day uptime, a visual editor | 8201 |
| 2 | ad-phonebook | Company phone book from AD: instant search with keyboard-layout correction, departments, cards with photos, vCard and CSV export | 8202 |
| 3 | ad-birthdays | Birthdays and work anniversaries; morning digest by email, Mattermost, Microsoft Teams or Telegram; the birth year is never shown | 8203 |
| 4 | ad-absence | Absence calendar: vacation, sick leave, business trips, deputies, manager approval, iCal feeds and a JSON API for other services | 8204 |
| 5 | ad-polls | Internal polls and votes with an honest anonymous mode, NPS, charts and a portal widget | 8205 |
| 6 | ad-certs | Certificate expiry monitoring: TLS/STARTTLS/RDP endpoints, AD auto-discovery, AD CS export, weak-key detection | 8206 |
| 7 | ad-orgchart | Interactive org chart from the manager attribute, data-quality report, branch export to SVG/PNG | 8207 |
| 8 | ad-rooms | Meeting room and desk booking with no double bookings, recurring events, .ics invitations and a door kiosk | 8208 |
| 9 | ad-helpdesk | IT ticket portal for 20–500 people: queue, SLA, internal comments, reports, email notifications | 8209 |
| 10 | ad-inventory | Hardware inventory: a PowerShell agent via GPO, change history, inventory numbers, equipment status, reconciliation with AD, an integration API for ad-onboarding | 8210 |
| 11 | ad-onboarding | Hiring and offboarding: account from a job template, groups, checklists, offboarding in one operation, plan-only mode, tickets in ad-helpdesk and equipment in ad-inventory | 8211 |
| 12 | ad-sspr | Self-service password change, reset and unlock with TOTP (and optional email or SMS codes) | 8212 |
| 13 | ad-laps | LAPS password portal for Windows LAPS and legacy LAPS: reveal with a reason, forced rotation, tamper-evident audit log | 8213 |
| 14 | ad-access | Self-service access to AD groups: catalogue, owner approval, time-limited access, periodic recertification | 8214 |
| 15 | ad-audit | AD security audit: risky settings, privileged groups with nesting, stale accounts, a 0–100 score and fix commands | 8215 |
| 16 | ad-toolkit-lite | Seven PowerShell 5.1 scripts: Outlook signatures, vCard export, group report, password-expiry emails, GPO report, NTFS report, stale-object cleanup; signatures and emails in Russian or Kazakh | — |
Highlights worth a closer look#
ad-sspr — security first. The password portal refuses privileged accounts (adminCount=1, protected groups with nesting and tokenGroups), returns identical answers for existing and non-existing logins, limits attempts per IP and per login, stores TOTP secrets encrypted with AES-256-GCM and never writes passwords or codes to the log. After a password change or reset, portal sessions opened with the old password are ended. Windows sign-in only pre-fills the login: the current password is still required, and a ticket never grants access to reset or unlock.
ad-laps — the portal has no rights of its own. Every password read is done with an LDAP bind as the signed-in user, so Active Directory ACLs decide who sees what. Each reveal and rotation requires a reason and goes to an append-only log protected by a hash chain (npm run verify-audit). With Windows sign-in the portal still asks for the AD password before the first reveal and checks that it belongs to the same account as the Kerberos ticket.
ad-access — separation of duties. The group owner from managedBy approves requests; you cannot approve your own; temporary access is removed automatically; owners periodically confirm who still needs access. Privileged groups cannot be added to the catalogue, and before every grant the portal checks again — including nesting into protected groups by SID.
ad-onboarding — one process across three tools. HR fills in the hire card, IT reviews the plan, and the service creates the AD account, then reserves equipment in ad-inventory and opens a ticket in ad-helpdesk. Offboarding works the same way in reverse.
ad-polls — anonymity you can explain. In anonymous mode the server keeps the list of participants separately from the ballots, ballots carry no login, name or time, and results stay hidden until a minimum number of answers.
ad-audit — read-only. It shows the risk, why it matters and the PowerShell command to fix it, but never changes AD itself. A Lite version is a single PowerShell script that produces an HTML report.
Lite versions. Several tools have a single-file PowerShell edition that builds an HTML page for a file share — no server needed: ad-phonebook-lite, and lite/ scripts in ad-birthdays, ad-orgchart, ad-inventory, ad-certs and ad-audit.
Installing the whole series#
ad-tools-suite installs everything from one settings file instead of fifteen .env files, puts the services behind Caddy with HTTPS and friendly names (portal.corp.local, phonebook.corp.local…) and wires integrations between them (tokens, URLs, embedding).
# after access is granted (private repository; request access: 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 # creates suite.json: domain, accounts, which services to install
node bin/suite.js plan # what will be installed and at which addresses
node bin/suite.js check # health check of all services
Three deployment options are supported: Docker, Windows Server (services via WinSW, with -WhatIf) and Linux with systemd (with --dry-run). The generator never overwrites existing non-empty values without --force, and never rotates encryption keys.
What the generator also takes care of:
- NetBIOS domain name (
LDAP_NETBIOS_DOMAIN) for every service built on the shared core. - Kerberos SSO (optional,
sso.enabled): keytab,HTTP/<service name>SPN and realm for each service with a login, plusgenerated/kerberos-setup.ps1for the domain admin (accounts,setspn,ktpass,-WhatIf). The trusted-proxy mode does not work behind Caddy, so it is switched off and Caddy strips identity headers coming from clients. - Links between tools: helpdesk and inventory in ad-onboarding, the ad-sspr link in the ad-toolkit-lite password-expiry reminder (
generated/password-expiry.ps1).
The suite's own CI runs its tests on Node 22 and 24 (Linux and Windows), parses the PowerShell installer with PowerShell 5.1 and checks that the generated settings pass each service's own validateConfig() on fresh clones of the services.
Shared core and a real test domain#
- ad-tools-core — the common code for LDAP (several DCs with failover, LDAPS/StartTLS only, paged search, nested groups,
tokenGroups), password login with protection against sign-in through a trusted domain, signed sessions, CSRF checks, rate limiting, logging with secret masking, and notifications by SMTP and Telegram.sync.mjscopies it into each service'ssrc/core/with a manifest and checks for drift, so a fix is made once. It also contains a dependency-free Kerberos (SPNEGO) implementation. A dedicated workflow runs it against the real KDC of the test domain; according to its README it is tested on Samba AD for AES256, AES128 and RC4-HMAC and not yet on Windows Server AD or with Edge and Chrome. - ad-testlab — a real Samba AD domain controller in Docker (LDAP/LDAPS, StartTLS, Kerberos KDC), pre-filled with a realistic organization: 38 employees with Russian and Kazakh names, 6 service accounts, 35 groups with up to 4 levels of nesting and
managedBy, 12 computers with legacy and Windows LAPS, disabled and locked accounts, delegated rights on OUs. Integration tests run the real LDAP code of all 15 services against it, including writes to AD for ad-sspr, ad-onboarding, ad-access and ad-laps. A service joins the CI with a single reusable workflow file. There is also an in-memory directory emulator for quick runs without Docker, and a document that lists honestly what Samba AD does differently from Windows AD and is therefore not covered.
Requirements#
- Active Directory with LDAPS or StartTLS available.
- A server inside the network: Windows Server, Linux or Docker.
- Node.js 22 or newer is the safe choice: the LDAP library (
ldapts9.2) requires Node.js 22. ad-portal, ad-phonebook, ad-birthdays, ad-polls, ad-certs and ad-orgchart still declare 20.12+ as the minimum; ad-helpdesk and ad-rooms need Node.js 22.13+, which includes the built-in SQLite module they use. - Windows PowerShell 5.1 for the scripts and Lite versions.
What we are looking for#
- Teams that run Active Directory and want to try one or two tools — the phone book and the portal are the easiest start.
- Feedback on installation and documentation, especially from Windows Server environments — so far the LDAP code and Kerberos sign-in have been verified on Samba AD, not on Windows Server AD.
- Native Kazakh speakers to review the interface translations.
- Contributors — questions and access requests go to the series overview Issues; once access is granted, issues and pull requests are welcome in each repository.
Links#
- Series overview: github.com/WorkTime-kz/ad-tools
- Source code access: submit a request
- The suite installer (ad-tools-suite), the test domain (ad-testlab) and the shared core (ad-tools-core) are described on the series overview page
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.