One API call creates an Active Directory domain zone, its _msdcs zone and optional DC locator records #85

Open
opened 2026-10-31 12:42:03 -04:00 by claude · 0 comments
Owner
  • Draft: INT-16
  • Priority: medium
  • Agent: coder
  • Depends on: #82, #84
  • Decisions: Q-INT-2, Q-INT-6, Q-INT-7

Why

Today an operator has to create the forward zone, the _msdcs zone, the secure-update settings and possibly the SRV records by hand.

What changes

  • POST /api/zones/templates/active-directory (permission zones:write). Body: domain name, realm, DC host names and addresses (optional), and addLocatorRecords (default false).
  • It creates two Primary zones, <domain> and _msdcs.<domain>, with an SOA and NS:
    • GSS updates on, principals *@<REALM>.
    • Aging on, with 7-day no-refresh and 7-day refresh intervals.
    • A delegation or glue in the parent, as needed.
  • With addLocatorRecords, it adds the locator SRV records (RFC 2782 format; names from Microsoft's public DC locator documentation): _ldap._tcp, _kerberos._tcp/_udp, _kpasswd._tcp/_udp, _gc._tcp, _ldap._tcp.dc._msdcs and the A records of the DCs. These are static records (null DynamicRefreshedUtc), so scavenging never removes them; a DC that registers its own records owns those separately.
  • It runs in one unit of work; a name clash returns 409.
  • Files: a new controller action in ZonesController.cs or a new ZoneTemplatesController, models and examples, and a service in Ninlil.Dns.Server.Authoritative.

Acceptance

  • Web test (fails first): the call creates both zones with GSS on, principals *@<REALM> and aging on with 7-day intervals; with addLocatorRecords the SRV set exists and answers over UDP from the shared host.
  • Without addLocatorRecords, only SOA and NS exist in the two zones.
  • A second call returns 409 and changes nothing.
  • src/dotnet/tests/Ninlil.Web.Tests passes.

Source

  • Owner scope ("an AD zone template (_msdcs, SRV)"); RFC 2782.
  • Owner decision 2026-10-31 (Q-INT-7): "zones + optional SRV set".
  • Owner decision 2026-10-31 (Q-INT-6): "on for AD-template zones".
- **Draft:** INT-16 - **Priority:** medium - **Agent:** coder - **Depends on:** #82, #84 - **Decisions:** Q-INT-2, Q-INT-6, Q-INT-7 ### Why Today an operator has to create the forward zone, the `_msdcs` zone, the secure-update settings and possibly the SRV records by hand. ### What changes - `POST /api/zones/templates/active-directory` (permission `zones:write`). Body: domain name, realm, DC host names and addresses (optional), and `addLocatorRecords` (default false). - It creates two Primary zones, `<domain>` and `_msdcs.<domain>`, with an SOA and NS: - GSS updates on, principals `*@<REALM>`. - Aging on, with 7-day no-refresh and 7-day refresh intervals. - A delegation or glue in the parent, as needed. - With `addLocatorRecords`, it adds the locator SRV records (RFC 2782 format; names from Microsoft's public DC locator documentation): `_ldap._tcp`, `_kerberos._tcp`/`_udp`, `_kpasswd._tcp`/`_udp`, `_gc._tcp`, `_ldap._tcp.dc._msdcs` and the A records of the DCs. These are static records (null `DynamicRefreshedUtc`), so scavenging never removes them; a DC that registers its own records owns those separately. - It runs in one unit of work; a name clash returns 409. - Files: a new controller action in `ZonesController.cs` or a new `ZoneTemplatesController`, models and examples, and a service in `Ninlil.Dns.Server.Authoritative`. ### Acceptance - [ ] Web test (fails first): the call creates both zones with GSS on, principals `*@<REALM>` and aging on with 7-day intervals; with `addLocatorRecords` the SRV set exists and answers over UDP from the shared host. - [ ] Without `addLocatorRecords`, only SOA and NS exist in the two zones. - [ ] A second call returns 409 and changes nothing. - [ ] `src/dotnet/tests/Ninlil.Web.Tests` passes. ### Source - Owner scope ("an AD zone template (_msdcs, SRV)"); RFC 2782. - Owner decision 2026-10-31 (Q-INT-7): "zones + optional SRV set". - Owner decision 2026-10-31 (Q-INT-6): "on for AD-template zones".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#85
No description provided.