-
Notifications
You must be signed in to change notification settings - Fork 141
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: Proposed Breaking Change #515
Comments
Just wondering if we remove |
Throwing in this scenario would be better than the current code, but do we really need to protect against this? Part of the reason that I'm proposing to remove the default on |
…Property and Refactor (#517) - Changes to ADManagedServiceAccount - KerberosEncryptionType property added (issue #511). - BREAKING CHANGE: AccountType parameter ValidateSet changed from ('Group', 'Single') to ('Group', 'Standalone') - Standalone is the correct terminology (issue #515). - BREAKING CHANGE: AccountType parameter default of Single removed. - Enforce positive choice of account type. - BREAKING CHANGE: MembershipAttribute parameter ValidateSet member SID changed to ObjectSid to match result property of Get-AdObject. Previous code does not work if SID is specified. - BREAKING CHANGE: AccountTypeForce parameter removed - unnecessary complication. - BREAKING CHANGE: Members parameter renamed to ManagedPasswordPrincipals - to closer match Get-AdServiceAccount result property PrincipalsAllowedToRetrieveManagedPassword. This is so that a DelegateToAccountPrincipals parameter can be added later. - Common Compare-ResourcePropertyState function used to replace function specific Compare-TargetResourceState and code refactored (issue #512). - Resource unit tests refactored to use nested contexts and follow the logic of the module. - Resource Integration tests added.
…Property and Refactor (#517) - Changes to ADManagedServiceAccount - KerberosEncryptionType property added (issue #511). - BREAKING CHANGE: AccountType parameter ValidateSet changed from ('Group', 'Single') to ('Group', 'Standalone') - Standalone is the correct terminology (issue #515). - BREAKING CHANGE: AccountType parameter default of Single removed. - Enforce positive choice of account type. - BREAKING CHANGE: MembershipAttribute parameter ValidateSet member SID changed to ObjectSid to match result property of Get-AdObject. Previous code does not work if SID is specified. - BREAKING CHANGE: AccountTypeForce parameter removed - unnecessary complication. - BREAKING CHANGE: Members parameter renamed to ManagedPasswordPrincipals - to closer match Get-AdServiceAccount result property PrincipalsAllowedToRetrieveManagedPassword. This is so that a DelegateToAccountPrincipals parameter can be added later. - Common Compare-ResourcePropertyState function used to replace function specific Compare-TargetResourceState and code refactored (issue #512). - Resource unit tests refactored to use nested contexts and follow the logic of the module. - Resource Integration tests added.
…Property and Refactor (dsccommunity#517) - Changes to ADManagedServiceAccount - KerberosEncryptionType property added (issue dsccommunity#511). - BREAKING CHANGE: AccountType parameter ValidateSet changed from ('Group', 'Single') to ('Group', 'Standalone') - Standalone is the correct terminology (issue dsccommunity#515). - BREAKING CHANGE: AccountType parameter default of Single removed. - Enforce positive choice of account type. - BREAKING CHANGE: MembershipAttribute parameter ValidateSet member SID changed to ObjectSid to match result property of Get-AdObject. Previous code does not work if SID is specified. - BREAKING CHANGE: AccountTypeForce parameter removed - unnecessary complication. - BREAKING CHANGE: Members parameter renamed to ManagedPasswordPrincipals - to closer match Get-AdServiceAccount result property PrincipalsAllowedToRetrieveManagedPassword. This is so that a DelegateToAccountPrincipals parameter can be added later. - Common Compare-ResourcePropertyState function used to replace function specific Compare-TargetResourceState and code refactored (issue dsccommunity#512). - Resource unit tests refactored to use nested contexts and follow the logic of the module. - Resource Integration tests added.
I am currently working on the
ADManagedServiceAccount
resource to fix issues #511 and #512. Going through the code, there are other issues with it which I am taking the opportuntity to fix, including the following breaking changes:Breaking:
AccountType
parameter ValidateSet changed from('Group', 'Single')
to('Group', 'Standalone')
-Standalone
is the correct terminology. ref: https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/service-accounts.AccountType
parameter default ofSingle
removed. - Enforce positive choice of account type.MembershipAttribute
parameter ValidateSet memberSID
changed toObjectSid
to match result property of Get-AdObject. Current code does not work ifSID
is specified.AccountTypeForce
parameter removed - unnecessary complication. With the current code for this in place, if theAccountType
is changed without specifying this parameter, the change will not apply, but the DSC will still complete successfully. A warning is written to the log, but unless you are looking for it you won't see it. I don't think this is a good model, and none of the other resources use it.Members
parameter toManagedPasswordPrincipals
- to closer matchGet-AdServiceAccount
result propertyPrincipalsAllowedToRetrieveManagedPassword
. This is so that aDelegateToAccountPrincipals
parameter can be added later.I also intend to subsequently add the following missing parameters to the resource that are directly supported by the
ADServiceAaccount
PowerShell cmdlets:Any comments?
The text was updated successfully, but these errors were encountered: