Users

All Posts (3)

avatar

sw

Extract credentials with OTP

avatar
avatar
avatar

Hello Hubert,

yes I used One-time Password > Servuce > Custom

Extract credentials with OTP

avatar
avatar
avatar

I just extracted credentials of a existing website element and was surprised that there are no OTP informationen inclulded.

Would it be possible to extend the funcionality to include OTP? OTP is mostly bounded to the used credentials.

Support for Barracuda NAC VPN Client 5.X.X

avatar
avatar
avatar
avatar
avatar

I created a quick and dirty Powershell Script for VPN connections with Barracuda NAC v5.1 integrated in RDM as Embedded Script.

Import-Module "C:\Program Files\Barracuda\Network Access Client\Modules\BarracudaNetworkAccessClient\BarracudaNetworkAccessClient.psd1"

$currentConnection = Get-VPNConnectionStatus

if ($currentConnection.StatusMessage -ne "Disconnected") {

Write-Host("Connection already established")

exit -1

}

$profiles = Get-VPNProfile -All

Write-Debug "Insgesamt $profiles.Count VPN-Profile gefunden"

$profileName = "$HOST$"

Write-Debug "Profilename: $profileName"

$profile = $profiles | Where-Object {$_.Description -eq $profileName}

$profileID = $profile.ID

Write-Debug "ProfileID $profileID identified."

$profileType = $profile.Context

Write-Debug "ProfileContext $profileType identified."

$UserName = "$USERNAME$"

Write-Debug "UserName: $UserName"

$UserPass = "$PASSWORD$"

Write-Debug "UserPass: $UserPass"

$UserPassword = ConvertTo-SecureString $UserPass -AsPlainText -Force

if ($UserName) {

Write-Debug "Using Username/Password authentification"

Connect-VPN -ProfileID $profileID -UserName $UserName -UserPassword $UserPassword -ProfileContext $profileType

} else {

Write-Debug "Using only Password authentification"

Connect-VPN -ProfileID $profileID -UserPassword $UserPassword -ProfileContext $profileType

}

exit 0

Hope it will help you.

Regards

Simon

1 - 3 of 3 items