You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EXAMPLE 3: Key is correctly quoted and creates successfully, but is automatically converted to number on the user, resulting in a change on next apply.
Terraform Version and Provider Version
Terraform v1.2.7 on windows_amd64
provider registry.terraform.io/hashicorp/ad v0.4.4
Windows Version
Running TF: Windows 10 (v10.0.19044)
winrm_hostname: Server 2019 (v10.0.17763)
domain controller: Server 2019 (v10.0.17763)
Affected Resource(s)
ad_user
Terraform Configuration Files
EXAMPLE 1
Defining a simple user
then adding a custom_attributes property after applying, then reapply (so modify operation, not new)
EXAMPLE 2
Define a new user with custom_attributes "msDS-SupportedEncryptionTypes" as NUMBER
EXAMPLE 3
Define a new user with custom_attributes "msDS-SupportedEncryptionTypes" as STRING
Debug Output
EXAMPLE 1: doesn't panic, but fails with error "Missing '=' operator after key in hash literal"
cause = Invalid key name (PS hashtables can't have a hyphen
-
without quoting it), and invalid format, should just be integer.[DEBUG] Constructing powerrshell command ... -Add @{msDS-SupportedEncryptionTypes="2.8E+01"}
EXAMPLE 2: panic, see below
EXAMPLE 3: Key is correctly quoted and creates successfully, but is automatically converted to number on the user, resulting in a change on next apply.
[DEBUG] Constructing powerrshell command ... -OtherAttributes @{'msDS-SupportedEncryptionTypes'="28"}
Next apply fails due to unquoted key name (cant have
-
in name without quotes), and double quoted string for value isn't valid[DEBUG] Constructing powerrshell command ... -Replace @{msDS-SupportedEncryptionTypes=""28""}
Panic Output
EXAMPLE 2:
Expected Behavior
Set
msDS-SupportedEncryptionTypes
attribute on user to expected integer value (/or hex, it's a bitmask)Actual Behavior
Errors as shown above
Steps to Reproduce
Terraform apply as above
Community Note
The text was updated successfully, but these errors were encountered: