Skip to content

Commit

Permalink
Prevent interpretation of the $ character in a string
Browse files Browse the repository at this point in the history
  • Loading branch information
damienfinck authored Jul 18, 2024
1 parent 20087b9 commit bde11a8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dynamic Folder/Wallix Bastion/Wallix Bastion (PowerShell).rdfx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ $global:OutputEncoding = New-Object Text.Utf8Encoding -ArgumentList (,$false) #
Folder script for import Wallix Bastion connections
#>

# Variables replaced by Royal TS
$WallixUsername = "$EffectiveUsername$"
$WallixPassword = "$EffectivePassword$"
$WallixHostname = "$CustomProperty.Hostname$".Trim()
$WallixUseHTPPS = "$CustomProperty.UseHTTPS$"
$WallixFingerprint = "$CustomProperty.WallixFingerprint$".Trim()
# Variables replaced by Royal TS (using single quotes to avoid interpretation of the $ character)
$WallixUsername = '$EffectiveUsername$'
$WallixPassword = '$EffectivePassword$'
$WallixHostname = '$CustomProperty.Hostname$'.Trim()
$WallixUseHTPPS = '$CustomProperty.UseHTTPS$'
$WallixFingerprint = '$CustomProperty.WallixFingerprint$'.Trim()

# Constants
$ROYALTS_ID_CREDENTIALS = "DynamicCred01"
Expand Down Expand Up @@ -173,9 +173,9 @@ $global:OutputEncoding = New-Object Text.Utf8Encoding -ArgumentList (,$false) #
Credentials script for connection to Wallix Bastion throw SSH or RDP
#>

# Variables replaced by Royal TS
$WallixUsername = "$Target.CustomField1$:$EffectiveUsername$"
$WallixPassword = "$EffectivePassword$"
# Variables replaced by Royal TS (using single quotes to avoid interpretation of the $ character)
$WallixUsername = '$Target.CustomField1$:$EffectiveUsername$'
$WallixPassword = '$EffectivePassword$'

# Return credentials
$Object = @{
Expand Down

0 comments on commit bde11a8

Please sign in to comment.