
ad-helpdesk: IT application portal with domain password login and roles from Active Directory groups
🌐 Machine-translated from Russian. Show original
ad-helpdesk is a small, standalone helpdesk for a company of 20–500 people. Employees log in with their domain login and password and leave requests, the IT department works with queues and SLA deadlines, and the IT manager reviews reports. The portal operates within the company network and does not access the internet: without external CDNs or cloud 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 | |
|---|---|
| 🛠️ | Source code — server, frontend, installation instructions |
In this part:
What's New (November 2026)#
- 🧩 Common ad-tools-core core. AD connection, login, sessions, attempt limit, and SMTP client are now common across the entire AD Tools series (folder
src/core/, integrity checks test). Fixed login under someone else's account via trusted domain. The previous.envis suitable, but after the update, all users will log in once again — the session cookie format has changed. - 🪟 Kerberos login: an employee logged into the domain opens the portal without a password — SPNEGO via keytab in the portal itself or Kerberos on IIS/Apache before it, rights — the same role groups. Status: verified on Samba AD; not yet verified on Windows Server AD or in browsers. Both options are disabled by default, the password login form always remains.
- 🇰🇿 Interface in Russian and Kazakh: switch "RU / ҚАЗАҚ" in the top panel and on the login page, browser language with memory. API errors and CSV export occur in the interface language, emails are in
MAIL_LANGlanguage (ruorkk). Category and priority names are shown as set by the administrator. Kazakh translation prepared using AI — edits by native speakers are welcome. - 🔗 Integration API for ad-onboarding: when hiring an employee, they themselves create a request "Prepare a workplace for ..." with a checklist, and upon dismissal — "Pick up equipment and close access." Calling
POST /api/integration/ticketsby integration token (INTEGRATION_TOKENS), repeating with the samerefdoes not create a duplicate, each call is recorded in the integration log. - ✅ CI on GitHub Actions: Windows and Linux tests with Nodes 20 and 22 and an integration run against the real Samba AD on the ad-testlab booth. The portal runs on Node 22.13+, so on Node 20 database and HTTP tests are skipped, and kernel, AD requests, and frontend are checked.
- 🐞 Corrections for the run on Samba AD: empty AD attributes do not become "undefined," and a partial AD response under size limit (
sizeLimit) is processed correctly: the employee card is taken only if exactly one record is found by login. - 📦 Installing the entire series at once — ad-tools-suite: one configuration file instead of fifteen
.env, HTTPS, and thehelpdesk.corp.localtype name via Caddy, summary check. The helpdesk link in the ad-onboarding card is written by the generator itself.
Why#
In a small company, IT requests usually arrive via messenger, email, or "in the hallway" — and get lost. Ready-made helpdesk systems require a separate database, their own accounts, or the cloud. ad-helpdesk takes what already exists: accounts and Active Directory groups. Separate passwords are not needed for the portal, and roles are assigned in the usual way — by group membership.
What he can do#
Employee:
- 📝 Creates a request: subject, category, urgency, description, and attachments (screenshots, PDF, documents, archives) with file size and type limitations.
- 💬 Sees their applications and correspondence on them, replies directly in the application.
- ✅ Closes the request itself if the problem is resolved or returns the resolved one to work.
- ⭐ Rates the solution from 1 to 5 stars with commentary.
Contractor (IT):
- 📋 Queue with quick filters "Mine," "No Performer," "Expired," "Pending User," as well as filters by status, performer, category, priority, and search by number and text.
- 🙋 "Pick Up" button, assignment to colleague, statuses New → Working → Waiting for user → Resolved → Closed.
- 🔒 Internal comments and attachments that the applicant does not see.
- 👤 Applicant card from AD: position, department, phone numbers, office, e-mail, supervisor.
- ⏱️ SLA deadlines by priority are response time and resolution time. Overdue requests are highlighted in red, requests near the deadline (less than 25% of time left) are highlighted in yellow. While the request is waiting for the user's response, the SLA count is set.
Portal administrator (who has all the rights of the executor):
- ⚙️ SLA categories, priorities, and deadlines.
- 📊 Reports for any period: created and resolved, schedule by days, average and median resolution times, first response time, SLA completion percentage, average score; breakdown by performers, categories, priorities, and statuses; export requests to Excel (CSV).
- 💾 Database backup with one button.
Mail — optional. Through the company's SMTP server (Exchange, Postfix, etc.), the portal notifies performers about a new request and appointment, and the applicant about registration of the request, responses, and status changes. Internal comments are not sent to anyone, and each user can disable emails in their menu.
Roles are assigned by AD groups, such as Helpdesk-Исполнители and Helpdesk-Администраторы (nested groups are counted). Other domain users—or members of the specified group—become employees. The group composition is reread every 30 minutes and at every login. In AD, the portal does not write anything: it only checks passwords, reads cards, and groups composition.
Login via Kerberos without a password and a Kazakh interface — optional, see "What's New." Other services (for example, ad-onboarding) can create requests through the token integration API.
How it works#
| What is used | |
|---|---|
| Server | Node.js 22.13+ (24 LTS recommended), clean node:http |
| Database | built-in Node.js module node:sqlite — a separate database server is not needed |
| Dependencies | one — a ldaptslibrary, without native modules and build |
| Frontend | vanilla JS without builds, strict CSP without inline scripts and styles |
| Connection to AD | LDAPS or StartTLS, multiple domain controllers — via a common ad-tools-core core |
Safety:
- The user's password is checked by a bind request to the domain controller and is not stored anywhere. Session — in a signed cookie (HttpOnly, SameSite=Lax, exit feedback), changing requests are protected from CSRF.
ldap://without StartTLS — configuration error, the SMTP password is not sent over an unencrypted connection without explicit permission,X-Forwarded-*headers are accepted only from trusted proxies.- Attachments are stored on disk under random names, and the file type is checked against a whitelist of extensions. Files are given as downloads from
nosniffandCSP sandbox; dangerous types (html,svg,exe,js,ps1...) are always prohibited. - After 10 unsuccessful attempts, login with IP or login is blocked for 15 minutes.
- CSV export is protected from formulas.
Why there is no Lite version. Other tools in the series have Lite — a single PowerShell script that assembles a static HTML page. Helpdesk can't do that: the portal writes data (requests, correspondence, statuses, attachments), needs access control login, background processes (SLA, autoclose, emails, backups), and secure file uploads. But the minimal installation is simple: one folder, Node.js, and one dependency.
Quick start: demo without AD#
# после получения доступа (репозиторий закрыт, запрос — github.com/WorkTime-kz/ad-tools):
git clone https://github.com/WorkTime-kz/ad-helpdesk.git
cd ad-helpdesk
npm ci
npm run demo # http://localhost:8080
Password — demo, logins — user (employee), agent (executor), or admin (administrator). About 50 demo applications remain in a temporary folder and disappear after stopping.
Installation within the company#
Briefly (Windows Server):
Copy-Item .env.example .env; notepad .env # LDAP, группы ролей, SMTP
npm ci --omit=dev
npm run check-ldap -- --login ivanov --mail it@corp.local # диагностика AD, ролей и почты
powershell -ExecutionPolicy Bypass -File .\deploy\windows\install-service.ps1
The npm run check-ldap command checks .env, data folder, domain controllers, and role groups, and explains the reason in clear text if there is an error. With the --login key, it checks login and user role; with --mail , it sends a test email.
Where it takes place:
| Platform | How |
|---|---|
| Windows Server | Windows service via WinSW from LocalService with minimal rights |
| Linux (Ubuntu / Debian) | systemd service |
| Docker | docker compose up -d --build |
| HTTPS | embedded (PFX) or via nginx or IIS |
| The entire AD Tools series | ad-tools-suite: Docker, Windows Server, or Linux for Caddy |
The repository includes detailed instructions: preparing AD and role groups, service account, LDAPS verification, mail, installation on Windows Server, Linux, and Docker, DNS name, HTTPS, initial category and SLA setup, shortcut assignment via Group Policies, backup and recovery, operation, trouble table, security checklist, ad-onboarding link, shared kernel settings, and Kerberos login.
Requirements: Node.js 22.13 or newer (24 LTS recommended) or Docker.
Project status#
- GPL-3.0 license; source code is available upon request.
- 46 autotests cover the kernel and HTTP API: login roles and parsing, SLA timing and pause, hiding internal comments and attachments from the applicant, attachment restrictions and access to others' requests, queue filters, autoclose, reports, CSRF and CSV formula protection, email generation, integration API, trusted domain login and Kerberos, Kazakh language.
- With each push — an integration run against the real Samba AD on the ad-testlab stand.
- In demo mode, all three roles are manually checked: application with file, "Pick Up," internal comment, reports, SLA settings, and mobile screen width.
- Working with Windows Server AD, the real mail server (STARTTLS/SMTPS), and running with WinSW, systemd, and Docker services have not yet been tested — so we are looking for administrators ready to try it themselves and share what they found.
How to help#
- ⭐ Give a star to the ad-tools showcase if the project is useful.
- 🧪 Try it on your domain — start with
npm run demoandnpm run check-ldap— and write in the comments what worked and what didn't. - 🇰🇿 Correct the Kazakh translation in
public/i18n/kk.json. - 🛠️ Questions and access requests — through the Issues storefront; after gaining access, send issues and pull requests to the service repository.
👉 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.