Skip to content

Restore Test-IsValidDn, Test-IsValidUpn and Get-ReportChain, completing migration of the former Staging/v3 candidates and bringing the supported module to 27 commands. - #13

Merged
PsCustomObject merged 1 commit into
masterfrom
modernization/ad-helpers
Oct 5, 2026
Merged

PsCustomObject merged 1 commit into
masterfrom
modernization/ad-helpers

Conversation

@PsCustomObject

Copy link
Copy Markdown
Owner

Replace the DN and UPN regexes with documented practical syntax policies and pipeline support.

Support escaped DN separators, multi-valued RDNs, long UPN suffixes and internationalized domains.

Preserve report-chain identity aliases, server selection and ordered property projection.

Escape LDAP assertion values, require exactly one manager and exclude that manager from report results.

Propagate AD failures without changing the caller’s error preference.

Keep ActiveDirectory optional at module import.

Update exports, documentation and regression tests.

The naming validators check the documented syntax policies, not account existence or complete AD/Entra provisioning rules.

Validation: 327 tests passed on Linux with PowerShell 7.4.13; five Windows-only registry tests were skipped. The patch applies cleanly after PR #12. AD queries are mocked; live domain integration and Windows/macOS CI verification remain pending.

@PsCustomObject
PsCustomObject marked this pull request as ready for review October 5, 2026 06:54
@PsCustomObject
PsCustomObject merged commit a1da5b8 into master Oct 5, 2026
3 checks passed
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