Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Created August 16, 2016 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/2f7634e489ebb197a3d22b8f818c86e7 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/2f7634e489ebb197a3d22b8f818c86e7 to your computer and use it in GitHub Desktop.
$AuthenticationType = New-Object ($ns + ".AuthenticationType")
$callResult = New-Object ($ns + ".CallResult")
$authenticationRequestId = $null
[bool] $requireUserMatch = $true
$initiatingAuthenticationType ="pfsdk"
$result = $proxy.PfAuthUser_4([string]$mfauser,[object] $initiatingAuthenticationType, [string] "192.168.20.6", [string] "Test Script", [bool] $requireUserMatch, [ref] $callResult, [ref] $authenticationRequestId, [ref]$errorcode)
Write-Host "MFA Call Result Code: " $callResult.Code
Write-Host "MFA Call Result Description: " $callResult.Description
Write-Host "MFA AuthN Request ID: " $authenticationRequestId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment