Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADManagedServiceAccount: Add CommonName parameter #661

Merged
merged 11 commits into from
May 1, 2022
Merged

ADManagedServiceAccount: Add CommonName parameter #661

merged 11 commits into from
May 1, 2022

Conversation

Antiohne
Copy link
Contributor

@Antiohne Antiohne commented Jun 5, 2021

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

  • Added an entry to the change log under the Unreleased section of the
    file CHANGELOG.md. Entry should say what was changed and how that
    affects users (if applicable), and reference the issue being resolved
    (if applicable).
  • Resource documentation added/updated in README.md.
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help.
  • Comment-based help added/updated.
  • Localization strings added/updated in all localization files as appropriate.
  • Examples appropriately added/updated.
  • Unit tests added/updated. See DSC Community Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
  • New/changed code adheres to DSC Community Style Guidelines.

This change is Reviewable

@codecov
Copy link

codecov bot commented Jun 5, 2021

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%> (ø)

@johlju johlju added the needs review The pull request needs a code review. label Jun 5, 2021
Copy link
Contributor

@X-Guardian X-Guardian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @Antiohne)

a discussion (no related file):
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.


@X-Guardian X-Guardian added waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. and removed needs review The pull request needs a code review. labels Jul 4, 2021
@stale
Copy link

stale bot commented Jul 19, 2021

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.

@stale stale bot added the abandoned The pull request has been abandoned. label Jul 19, 2021
@stale stale bot removed the abandoned The pull request has been abandoned. label Sep 7, 2021
@Antiohne
Copy link
Contributor Author

Antiohne commented Sep 7, 2021

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
Copy link

stale bot commented Sep 21, 2021

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.

@stale stale bot added the abandoned The pull request has been abandoned. label Sep 21, 2021
@Antiohne
Copy link
Contributor Author

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

@stale stale bot removed the abandoned The pull request has been abandoned. label Dec 1, 2021
@Antiohne
Copy link
Contributor Author

Antiohne commented Dec 1, 2021

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

@Antiohne Antiohne requested a review from X-Guardian December 1, 2021 13:43
@stale
Copy link

stale bot commented Dec 16, 2021

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.

@stale stale bot added the abandoned The pull request has been abandoned. label Dec 16, 2021
@johlju johlju added needs review The pull request needs a code review. and removed abandoned The pull request has been abandoned. waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. labels May 1, 2022
Copy link
Member

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 4 files at r1, 2 of 3 files at r2, 1 of 1 files at r4.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @X-Guardian)

@johlju
Copy link
Member

johlju commented May 1, 2022

I push this through so we can iterate from here.

@johlju johlju merged commit b8c9012 into dsccommunity:main May 1, 2022
@johlju johlju removed the needs review The pull request needs a code review. label May 1, 2022
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.

ADManagedServiceAccount: Add support for setting the SAM account name and (common) name separately
3 participants