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

ADGroup, ADUser: add SamAccountName property #656

Closed
wants to merge 7 commits into from

Conversation

gaelicWizard
Copy link

@gaelicWizard gaelicWizard commented May 17, 2021

Pull Request (PR) description

Adds optional parameter SamAccountName to ADUser and ADGroup resources to allow setting this property separately. This requires that GroupName be specified using something other than the SamAccountName, e.g. SID, DN, UPN, &c.

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 May 17, 2021

Codecov Report

Merging #656 (1fdea03) into main (9346a1d) will increase coverage by 0%.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##           main   #656   +/-   ##
===================================
  Coverage    98%    98%           
===================================
  Files        25     25           
  Lines      3408   3415    +7     
===================================
+ Hits       3340   3347    +7     
  Misses       68     68           

@gaelicWizard gaelicWizard force-pushed the SamAccountName branch 6 times, most recently from cb91a2a to d1930ca Compare May 17, 2021 05:49
@johlju johlju added the needs review The pull request needs a code review. label May 17, 2021
@gaelicWizard gaelicWizard force-pushed the SamAccountName branch 2 times, most recently from f1b5df1 to 895ef7c Compare May 20, 2021 04:27
Fix New-ADUser to use '-Name' instead of '-SamAccountName' for specifying the user account name. Change parameter descriptions to clarify that UserName can be more than just SamAccountName.
Add SamAccountName property to allow setting the name of the group; this requires that the GroupName property be specified with something other than the SamAccountName (e.g., the SID, DN, &c.).
@gaelicWizard gaelicWizard force-pushed the SamAccountName branch 5 times, most recently from 58c5831 to b302bf0 Compare May 20, 2021 07:34
@gaelicWizard gaelicWizard marked this pull request as ready for review May 20, 2021 07:59
gaelicWizard and others added 4 commits May 20, 2021 04:47
Add SamAccountName property to allow setting the name of the user; this requires that the UserName property be specified with something other than the SamAccountName (e.g., the SID, DN, &c.).
@X-Guardian
Copy link
Contributor

@gaelicWizard, please can you not update more than one resource in one PR, as it makes it much more difficult to review. Please create a separate PR for each modified resource .

@johlju johlju removed the needs review The pull request needs a code review. label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants