Skip to content

Commit

Permalink
Merge pull request #32 from PetriAsi/develop
Browse files Browse the repository at this point in the history
fix password file path
  • Loading branch information
PetriAsi authored Mar 19, 2023
2 parents 8ab2d6c + d041bed commit 67ca9d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WilmaPSWorker/Private/Get-CredFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ function Get-CredFile(){
$BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($cred.Password)
$UnsecurePassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)
[Runtime.InteropServices.Marshal]::ZeroFreeBSTR($BSTR)
$UnsecurePassword |Out-File -encoding utf8 $pwdfile
$UnsecurePassword |Out-File -NoNewline -encoding utf8NoBOM $pwdfile
$pwdfile
}
7 changes: 5 additions & 2 deletions WilmaPSWorker/Public/Invoke-WPSWPrimusQuery.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ function Invoke-WPSWPrimusQuery {
$callparms += '-i'
$callparms += $Infile
}

$callparms += '-host'
$callparms += $($config.pq_host)
$callparms += '-port'
$callparms += $($config.pq_port)
$callparms += '-user'
$callparms += $($config.pq_cred.UserName)
$callparms += "`"file:$pwdfile`""
$callparms += '-pass'
$callparms += "file:$pwdfile"
$callparms += $QueryName

}
Expand Down

0 comments on commit 67ca9d3

Please sign in to comment.