Implemented

Custom installer problem

avatar

Hi, after create a custom installer and running it a receiving this error when inputting credentials:

Value cannot be null.

forum image

Using latest version (220.3.29.0)

All Comments (6)

avatar

Hi, i see a variation of this problem.
I exported a data source to my users be able to use "register as data source". In data source settings, I use azure SQL database with MFA.

Each user must login using your own credentials. For this, I keep username allowed to change (mark "allow change username" option) and on "username" field I just keep a placeholder mail: YourLogin@mydomain.com

When users import this data source at first time installing application to register, RDM ask the user mail and show default value a saved on data source: YourLogin@mydomain.com
Then, user change it to correct mail (e.g: bob@mydomain.com) and authenticated successfully on Azure...

But, when it returns to RDM it show a message "User don't have assigned license". But it have a assigned license.

If, when I saving data source, I keep a default value of "bob@mydomain.com", instead of "YOurLogin@mydomain.com", when doing the steps i mentioned above, no message about licensing it showed.

So, seems to me that when using "register as data source" or building a installer with pre-configured data source, login into database first time we using the default value of "username" field stored in data source, not value that user types on login screen. I guess this can be a little bug on tool, but that prevent I share a custom installer correctly or export a data source without keep a fixed existent username.

This makes some sense for you?

avatar

Hello Rodrigo,

Thank you for contacting us on that matter!

Have you created your Custom Installer by following the steps provided in the link below?https://help.remotedesktopmanager.com/installation_custominstallermanager.html

Would it be possible for you to provide me a screenshot of how the Data Source contained in your Custom Installer is configured?
To do so, please go under File -> Data Sources.

Also, have you assigned the licenses to your users by going under the Administration -> Licenses menu of your SQL Azure Data Source?
If not, I would recommend doing so. More on this can be found here: https://help.remotedesktopmanager.com/installation_registration_enterpriseedition.html#for-administrators

Best regards,

James Lafleur

avatar

I following exactly this steps.

Note the problem is related to the fact of the username field. Steps to reproduce the problem of the custom installer:

1) Configure a data source to Azure SQL Database with MFA. Mark option "allow change username"
2) Generate the custom installer and put the data source
3) When installing on a new machine, the RDM will ask you the credentials to login into Azure.
4) When put the azure credentials RDM raises de error "value cannot be null".


Steps to reproduce the problem of register data source:

1) Apply licenses to 2 samples users: user1@yourdomain.com and user2@yourdomain.com
2) Configure a data source to Azure SQL Database with MFA. Mark option "allow change username
3) In the username field, put a generic placeholder mail: Yourlogin@somedomain.com
4) Export your data source
5) In a new RDM installation, at the registration screen, choose "use registration from data source"
6) Choose the data source you exported on step 4
7) Then, a login screen will be shown to authenticate on the data source. The username field will be filled with "YourLogin@somedomain.com"
8) Change the login to user1@yourdomain.com or user@yourdomain.com (who have licenses assigned) and authenticates on azure...
9) Then, after successfully authenticates on azure, RDM will raise an error showing that the user doesn't have assigned licenses, the same if your logged in with a user with a valid license...

This error doesn't occur if, in step 3, I put as a placeholder, an existing user with a license. Also, if keep the username field empty, when login in in step 8, the error of user-id null is raised also...

So I Guess that RDM doesn't handle correctly the registration when the user change the username from the value saved in the data source (using custom offline or using registration from a data source).



avatar

Hello,

Thank you for your quick reply and for providing me these detailed steps!

I have created a Custom Installer and should receive it shortly and with it, I should be able to replicate this behavior.

In the meantime, I have been able to reproduce the issue you mentioned about not being able to register using a SQL Azure Data Source that use a placeholder mail even though a valid email address, to whom I have assigned a valid license, has been entered after receiving the prompt to enter another username. I have opened a ticket with our Engineering Department to see what can be done on that matter.

I will be in touch once I have an update on this case.

Best regards,

James Lafleur

avatar

Thank you James! I appreciate your support. Waiting for updates.

avatar

Hello,

I just wanted to let you know that this issue has been fixed by our Engineering Department in RDM 2021.2.13. Please note that a database upgrade will be required. For more information, please consult this link: https://help.remotedesktopmanager.com/database_upgrade.html

The latest version of RDM can be downloaded here:
https://remotedesktopmanager.com/home/downloadenterprise

Best regards,

James Lafleur