How to create OTP Credential object and populate key field?

How to create OTP Credential object and populate key field?

avatar

It would seem possible to create a credential object and specify it as type "OTP"

$Session.Credentials.CredentialType = "OTP"

And it will generate an entry, but how do I supply a value for the key parameter?

It would appear there are several parameters that can be set, but not key.

forum image

All Comments (8)

avatar

Hi,

It's not really intuitive but you can set the OTP key this way:

$Session.Credentials.OTPKey = "key"

Regards

Jonathan Lafontaine

avatar

forum image

The property doesn't exist though.

avatar

You are absolutely right.
This property isn't exposed right now because it's not a real value, it's an accessor doing some encryption stuff for the real, saved field.
I'll fix that and provide you another build.

Jonathan Lafontaine

avatar

Awesome thank you. The last piece to my puzzle is to then attach the OTP to a VPN definition for automatic appending, but I think this feature is currently only available on the MacOS version of RDM. Is this something that will be supported to configure through the module?

avatar

Could you export an OTP entry with a VPN linked so I can check the resulting xml?

Jonathan Lafontaine

avatar

Sure thing have to troubleshoot why on MacOS the right hand side isn't displaying information first though so it might take me a bit.

forum image

avatar

Looks like you have the dashboard turned off.
From the main ribbon menu, go to View and toggle the Dashboard

Jonathan Lafontaine

avatar

Pikachu Meme GIFs | Tenor

I wiped and reinstalled and couldn't get this to work thank you haha.