dsccommunity / ActiveDirectoryDsc

This module contains DSC resources for deployment and configuration of Active Directory Domain Services.
MIT License
344 stars 142 forks source link

ADManagedServiceAccount: Add CommonName parameter #661

Closed Antiohne closed 2 years ago

Antiohne commented 3 years ago

Pull Request (PR) description

Added support for setting a common name to a Managed Service Account for a longer more friendly name than the SAM account name which has a 15 character limit.

This Pull Request (PR) fixes the following issues

Task list


This change is Reviewable

codecov[bot] commented 3 years ago

Codecov Report

Merging #661 (a1a728b) into main (715201d) will increase coverage by 0%. The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##           main   #661   +/-   ##
===================================
  Coverage    98%    98%           
===================================
  Files        25     25           
  Lines      3408   3420   +12     
===================================
+ Hits       3340   3352   +12     
  Misses       68     68           
Impacted Files Coverage Δ
...edServiceAccount/MSFT_ADManagedServiceAccount.psm1 100% <100%> (ø)
stale[bot] commented 3 years ago

Labeling this pull request (PR) as abandoned since it has gone 14 days or more since the last update. An abandoned PR can be continued by another contributor. The abandoned label will be removed if work on this PR is taken up again.

Antiohne commented 3 years ago

This PR needs integration tests.

Have you tested this change through the full lifecycle of an ADManagedServiceAccount object and this additional property? i.e. addition, modification and deletion of an ADManagedServiceAccount with and without this property, and addition, modification and deletion of this property. This must be a non-breaking change to current usage of this resource.

Yes this change is non-breaking and is based on the ADUser implementation. If you do not specify a common name the common name of the Managed User Identity will be the same as the SamAccountName. When specified the common name will be different to the SamAccountName and the Distinguished Name will be based on the specified common name.

The existing integration tests will now test that the value of the common name is the same as the SamAccountName. Additional tests are added for the creation and deletion of a managed service account with a common name. Another test will check the rename of that common name.

stale[bot] commented 3 years ago

Labeling this pull request (PR) as abandoned since it has gone 14 days or more since the last update. An abandoned PR can be continued by another contributor. The abandoned label will be removed if work on this PR is taken up again.

Antiohne commented 3 years ago

@X-Guardian : This change is ready for reviewing. The required integration tests are added and the full lifecycle is tested.

Antiohne commented 2 years ago

@X-Guardian : The requested integration tests are added in September. Is this PR now ready for review?

stale[bot] commented 2 years ago

Labeling this pull request (PR) as abandoned since it has gone 14 days or more since the last update. An abandoned PR can be continued by another contributor. The abandoned label will be removed if work on this PR is taken up again.

johlju commented 2 years ago

I push this through so we can iterate from here.