Skip to content

AD new-forest: validate NetBIOS + reject member server before DSRM prompt (v1.121.7)#75

Merged
TheAbider merged 1 commit into
masterfrom
fix/ad-forest-validation
Jul 1, 2026
Merged

AD new-forest: validate NetBIOS + reject member server before DSRM prompt (v1.121.7)#75
TheAbider merged 1 commit into
masterfrom
fix/ad-forest-validation

Conversation

@TheAbider

Copy link
Copy Markdown
Owner

Deep AD audit confirmed the security-critical parts (DSRM SecureString hygiene, credentials, promotion params) are correct. Two new-forest input-validation fixes so they fail fast before the DSRM password: NetBIOS length <= 15, and reject a domain-joined member server (scoped to Install-NewForest, not the shared prereq). Suite 5284/5284, PSSA 0.

…RM prompt (v1.121.7)

A deep audit confirmed the AD module's security-critical parts (DSRM SecureString
hygiene, credential handling, promotion parameters, irreversible-op warnings) are
already correct. Two new-forest input-validation gaps remained, both fixed in
Install-NewForest so they fail fast BEFORE the DSRM password is collected:

- Validate the derived NetBIOS name length (<= 15) — a first label > 15 chars
  otherwise fails minutes into Install-ADDSForest, after the DSRM password.
- Reject a domain-joined member server (DomainRole 1/3) with guidance to use
  "Add Domain Controller" — scoped locally to Install-NewForest, NOT the shared
  Test-ADDSPrerequisites (which Add-DC / RODC reuse, where a member is valid).

- Tests: new Run-Tests Section 194 (incl. a regression guard that the shared
  prereq still uses -ge 4). Version bump to 1.121.7.
@TheAbider TheAbider merged commit 95e189d into master Jul 1, 2026
6 checks passed
@TheAbider TheAbider deleted the fix/ad-forest-validation branch July 1, 2026 11:31
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant