Closed winslowohio closed 5 months ago
https://pspas.pspete.dev/commands/New-PASSession#gen1radius
useRadiusAuthentication
is a legacy parameter from the gen1radius
parameterset.
either specify UseGen1API $true
, or switch to Gen2 API authentication.
https://pspas.pspete.dev/commands/New-PASSession#gen2radius
Review the documented examples in the help documentation, most authentication scenarios are covered
based on the old code base your script was written for, there will have been numerous breaking changes over time.
We went through and added -UseGen1API as needed. This gets us running for now but will definitely need to rework the scripts to use the current commands and Gen2. Thanks for the assist.
I updated to version 6.03 and now one of my scripts is stopping and asking for input:
Supply values for the following parameters: UseGen1API:
How can I modify my code to avoid this or else what is the input I need to supply?
This is the code where it is stopping to ask for input: Write-Host "INFO: Logging on to the $VaultEnv Vault [$baseURI]..." $token = New-PASSession -Credential (Get-Credential -username $username -Message "Please enter your $VaultENV Vault credentials.
r
nr
nUsername:r
nPassword: <NT Password+Token>r
nr
nNote: Do not include"+
"") -BaseURI $baseURI -connectionNumber (Get-Random -Maximum 101 -Minimum 1) -ErrorAction Stop -useRadiusAuthentication $true Write-Output "$(Get-TimeStamp) || INFO || User [$username] is logging in to the $VaultEnv Vault [$baseURI]..." | Out-file $LogFile -AppendExpected behavior The script logs on to the vault and adds the nodes provided to the requested appID and then creates provider accounts and adds the providers to the safe.