From 7e1bff21c41f3cd3209a64ccd0f72489381ec4fb Mon Sep 17 00:00:00 2001 From: Dominic Robinson <65237317+drobinson-moj@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:27:13 +0000 Subject: [PATCH] DSOS-2635: bug fix for ADCredential module (#587) --- powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 b/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 index b72e110db..fe94126b9 100644 --- a/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 +++ b/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 @@ -58,6 +58,7 @@ function Get-ModPlatformADCredential { $SecretValueRaw = aws secretsmanager get-secret-value --secret-id "${SecretArn}" --query SecretString --output text } $SecretValue = "$SecretValueRaw" | ConvertFrom-Json + $DomainNameNetbios = $ModPlatformADConfig.DomainNameNetbios $DomainJoinUsername = $ModPlatformADConfig.DomainJoinUsername $DomainJoinPassword = $SecretValue.$DomainJoinUsername if (-not $DomainJoinPassword) {