Powershell module cannot connect to secured database after update.

Implemented

Powershell module cannot connect to secured database after update.

avatar

Hello,
I'm using RDM 2021.2.15.0 with the last RemoteDesktopManager powershell module installed from PSgallery.
The databases are reachable using RDM.
But it seems the new powershell module has some troubles :
It cannot connect to a Test database (nearly void) secured with MFA as this error appears :

NotImplementedException - La méthode ou l'opération n'est pas implémentée.

   à RemoteDesktopManager.UIService.set_MessageShown(Boolean value)
   à Devolutions.RemoteDesktopManager.Business.GoogleAuthenticatorTwoFactorDescriptor.Validate(String token, String accountName)
   à Devolutions.RemoteDesktopManager.Business.DataSources.BaseConnectionDataSource.UnlockTwoFactor(Boolean ignoreTwoFactorChecked)
   à Devolutions.RemoteDesktopManager.Managers.LockManager.EnsureDataSourceUnlockedTwoFactor(BaseConnectionDataSource dataSource)
   à Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnectionsFromDataSource(ConnectionEngine engine, Boolean hasChanged)
   à Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource dataSource)


nor a working database using a passphrase :

NotImplementedException - The method or operation is not implemented.                                                                                                                                                                                                                                                                                                                    at RemoteDesktopManager.UIService.ShowSharePasswordPrompt()                                                                                                                                at Devolutions.RemoteDesktopManager.Services.BusinessSecurityProviderService.ConfigureClientSharedPasswordProvider(ISecurityProvider provider, IConnectionDataSource dataSource, Object configuration, Boolean persist)
at Devolutions.RemoteDesktopManager.Business.SharedPasswordSecurityProvider.Initialize(IConnectionDataSource dataSource, String configuration)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnectionsFromDataSource(ConnectionEngine engine, Boolean hasChanged)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource dataSource)


I tried to deactivate MFA on the test base and powershell can connect the database and my scripts run well.
I can't deactivate the passphrase on the working database ( I don't want to loose my logs (mandatory for legals )).
On previous version 2021.1.44.0 with embeded powershell I could connect to these databases without any errors.

All Comments (4)

avatar

Hello,

A ticket has been opened to our engineering department regarding your case.

When the engineering department resolves the issue, we will let you know in this thread.

Best regards,

Érica Poirier

avatar

Hello,

A fix has been released in the PowerShell module version 2021.2.0.15.

Could you please update the module and let us know if that helps to fix your issue?

Best regards,

Érica Poirier

avatar

Hello, sorry for this late answer.

It works,
My scripts can access to the DataSources.
Thank You

avatar

Hello,

Thank you for your feedback and glad that it works as expected.

Best regards,

Érica Poirier