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
Details of the scenario you tried and the problem that is occurring
When using this DSC with ansible, Offline Root CA setup runs fine, but EnterpriseSubordinateCA don´t .
I tried to get this DSC to run as a PS script but I was unable to get it working ( my fault, not this DSC's )
Verbose logs showing the problem
This is the output of ansible runnig playbook with -vvv
TASK [windows : Windows | AdcsCertificationAuthority DSC | Configure AdcsCertificationAuthority] *********************************************************************************
task path: /etc/ansible/roles/windows/tasks/ActiveDirectoryCSDsc/AdcsCertificationAuthority.yml:40
Monday 19 September 2022 16:25:15 -0300 (0:00:49.671) 0:16:19.242 ******
Using module file /home/ansible/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_dsc.ps1
Pipelining is enabled.
<172.22.33.21> ESTABLISH WINRM CONNECTION FOR USER: [email protected] on PORT 5985 TO 172.22.33.21
EXEC (via pipeline wrapper)
ok: [172.22.33.21] => {
"changed": false,
"invocation": {
"module_args": {
"CACommonName": "MyLDomain Enterprise CA 01",
"CADistinguishedNameSuffix": "DC=ad,DC=mylocaldomain,DC=com,DC=br",
"CAType": "EnterpriseSubordinateCA",
"CertFile": null,
"CertFilePassword_password": null,
"CertFilePassword_username": null,
"CertificateID": null,
"Credential_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"Credential_username": "[email protected]",
"CryptoProviderName": "RSA#Microsoft Software Key Storage Provider",
"DatabaseDirectory": null,
"DependsOn": null,
"Ensure": "Present",
"HashAlgorithmName": "SHA256",
"IgnoreUnicode": null,
"IsSingleInstance": "Yes",
"KeyContainerName": null,
"KeyLength": 2048,
"LogDirectory": null,
"OutputCertRequestFile": "C:\\subca-eca01.req",
"OverwriteExistingCAinDS": true,
"OverwriteExistingDatabase": null,
"OverwriteExistingKey": null,
"ParentCA": null,
"PsDscRunAsCredential_password": null,
"PsDscRunAsCredential_username": null,
"ValidityPeriod": "Years",
"ValidityPeriodUnits": 5,
"module_version": "latest",
"resource_name": "AdcsCertificationAuthority"
}
},
"module_version": "5.0.0",
"reboot_required": false,
"verbose_test": [
"Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceTest,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.",
"An LCM method call arrived from computer ECA01 with user sid S-1-5-21-967091583-3247568768-1330645744-1000.",
"[ECA01]: LCM: [ Start Test ] [[AdcsCertificationAuthority]DirectResourceAccess]",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Test-TargetResource: Testing ADCS EnterpriseSubordinateCA Status.",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Calling InitializeDefaults method on the setup object.",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Certification Authority will be installed with a new key.",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Setting the AllowAdministratorInteraction property to False.",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Setting the CAType property to EnterpriseSubordinateCA.",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Setting the ValidityPeriodUnits property to 5.",
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Test-TargetResource: ADCS EnterpriseSubordinateCA is installed and should be. Change not required.",
"[ECA01]: LCM: [ End Test ] [[AdcsCertificationAuthority]DirectResourceAccess] True in 0.7500 seconds.",
"[ECA01]: LCM: [ End Set ] in 0.7970 seconds.",
"Operation 'Invoke CimMethod' complete.",
"Time taken for configuration job to complete is 1.029 seconds"
]
}
META: role_complete for 172.22.33.21
The issue is that DSC thiks it is already OK: "[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Test-TargetResource: ADCS EnterpriseSubordinateCA is installed and should be. Change not required.",
Details of the scenario you tried and the problem that is occurring
When using this DSC with ansible, Offline Root CA setup runs fine, but EnterpriseSubordinateCA don´t .
I tried to get this DSC to run as a PS script but I was unable to get it working ( my fault, not this DSC's )
Verbose logs showing the problem
This is the output of ansible runnig playbook with -vvv
The issue is that DSC thiks it is already OK:
"[ECA01]: [[AdcsCertificationAuthority]DirectResourceAccess] Test-TargetResource: ADCS EnterpriseSubordinateCA is installed and should be. Change not required.",
Here are my roles/playbook tasks:
role: windows/ActiveDirectoryCSDsc/AdcsCertificationAuthority.yml
my playbook task session:
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running
OsName : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.17763.2931
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.2931
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module that was used ('dev' if using current dev branch)
5.0.0
The text was updated successfully, but these errors were encountered: