ad-onprem-ldap

Installation
SKILL.md

ad-onprem-ldap

One CLI, Tools/Ad.ts, speaks LDAP over TLS straight to the domain controllers. It does what the RSAT ActiveDirectory cmdlets do for users and groups, and it works anywhere bun runs.

Setup

  • Network path to a DC on 636/TCP (usually the corporate VPN) and DNS that resolves the domain.
  • bun install inside Tools/.
  • op (1Password CLI) signed in. The bind password is read with op read into memory only.
  • A config at ~/.config/ad-onprem/config.json (or AD_ONPREM_CONFIG), shaped like config.example.json. It holds the domain, base DN, DCs, bind account, secret reference, CA bundle path and the OU allowlist for creates and moves. It never belongs in a repo.
  • The CA bundle (root, then any issuing CA) that signed the DC certificates, in PEM. Confirm the root fingerprint with the directory team before trusting it.

Commands

Installs
2
GitHub Stars
17
First Seen
Nov 15, 2026