dsccommunity / dsccommunity/ActiveDirectoryDsc

ADManagedServiceAccount: Optionally accept an array of SPNs and also support for TrustedForDelegation

Open
#717 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
PowerShell
Stars
388
Forks
141
PR merge metrics
No merged PRs in 30d

Description

Problem description

Assuming a very large number of Managed Service Account management, it is not performant to manage their SPNs and TrustedForDelegation setting independently.

There already is a separate resource for Service Principal Names, but it would be very helpful to add the ability to set the SPN attribute for the AD Managed Service Account via the MSFT_ADManagedServiceAccount directly. Also the AD User supports TrustedForDelegation.

Verbose logs
n/a
DSC configuration
n/a
Suggested solution
        ADManagedServiceAccount 'ExampleStandaloneMSA'
        {
            Ensure             = 'Present'
            ServiceAccountName = 'Service01'
            AccountType        = 'Standalone'
           **ServicePrincipalNames = @('MSSQLSvc/sqlalias.contoso.com:1433','MSSQLSvc/hostname.contoso.com:1433')
           TrustedForDelegation = $true**
        }
Operating system the target node is running
Win2022
PowerShell version and build the target node is running
5.x Win2022
ActiveDirectoryDsc version
ActiveDirectoryDsc 6.2.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ADManagedServiceAccount resource and comparing its handling with the existing Service Principal Names resource and AD User support for TrustedForDelegation. Done means the resource accepts the proposed ServicePrincipalNames array and TrustedForDelegation setting for managed service accounts, with coverage for the supplied configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.