Cannot run Powershell cmdlets from RemoteDesktopManager with Duo MFA enabled

Implemented

Cannot run Powershell cmdlets from RemoteDesktopManager with Duo MFA enabled

avatar
  • RDM Powershell Module version 2022.3.1.0
  • RDM Version 2022.3.22.0
  • MSSQL datasource
  • Users are configured to use Integrated Windows Authentication and Duo MFA


When the "Force datasource 2-factor configuration" option is set in System Settings, running cmdlets from the RemoteDesktopManager PowerShell module (either in a PS5.1 or PS7 session) fail with the following error:

NotImplementedException - The method or operation is not implemented.

   at RemoteDesktopManager.UIService.ShowQuestionMessage(String message, String defaultButtonText, String alternateButtonText)
   at Devolutions.RemoteDesktopManager.Managers.DataSourceManager.ApplyPolicies(DataSourceSettings dataSourceSettings, Boolean isLoadDataSourceSettings)
   at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadDataSourceSettingsFromDataSource(ConnectionEngine engine)
   at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.ValidatePolicies(ConnectionEngine engine, Boolean hasChanged)
   at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnectionsFromDataSource(ConnectionEngine engine, Boolean hasChanged)
   at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource dataSource) 


Disabling the MFA requirement allows the cmdlets to run. I've seen references to other MFA providers working with the RDM Powershell module - Is Duo supposed to work as well?

All Comments (9)

avatar

Hi,

As we use the same backend as RDM, Duo could probably work.
However, it seems your specific configuration triggers a code path that's not been fully implemented yet.
I'll open a high priority ticket to fix this issue.

I'll report back once it is fixed.
Regards

Jonathan Lafontaine

avatar

Hi,

Was the data source configured in RDM?
The only place I can find calling ShowQuestionMessage do so because 2FA isn't configured for the data source.
Connecting through RDM is not an issue?

Jonathan Lafontaine

avatar

Yes, the data source is configured and there are no issues when using RDM.

avatar

I've implement the missing function.
However, I'm not in a position to test your scenario.
Would you be open to testing a beta version?

Jonathan Lafontaine

avatar

Sure

avatar

Hi,

The latest version (2022.3.1.2) fixes issues related to DUO authentication and should let you login to your data source.

If you experience any issue or have further question don't hesitate.
Regards

Jonathan Lafontaine

avatar

Hi - can you confirm which version has the fix in it? I'm showing the latest available is 2022.3.28.0 but I'm experiencing the same issues with that version.

avatar

PowerShell module version 2022.3.1.2 has the fix to let you use your DUO mfa.

Jonathan Lafontaine

avatar

Thanks - the Duo prompt works as expected now.