Sync with AD using different credentials imports resources from wrong AD
I have set up some sync tasks that sync RDP sessions for servers with different Active Directories.
All of them work fine, except one. For this one I have to use different credentials in order to access this AD.
The required credentials are selected in the sync session settings and clicking on "Preview" after a few seconds a dialog box pops up, displaying the correct list of servers from that AD.
But when I actually execute the sync (Open Session), the servers imported are not from the desired AD but from the AD of the user which I use to run RDM.
So what's the difference between the preview and the actual sync?
-------------------
Remote Desktop Manager Enterprise Edition 12.6.6.0 64 Bit - Data Source: SQL Server
Running on Windows Server 2012R2 VMs with Remote Desktop Services feature, serving as common work environment for 30 Windows Server administrators
Hello,
What version of RDM are you running?
Could you post some print sreens of the properties of your AD Sync session please.
Best regards,
Jeff Dagenais
Currently 12.5.8.0 but this issue has been with me since version 11 already. I just didn't have time to dig any deeper yet and the domain wasn't that important until recently.
Please find the settings for the sync session in the screenshots below. Note that the linked credential has the rights to access the domain in question even though the user name might indicate otherwise. Like I stated, the Preview works, the actual sync pulls the wrong domain (from the user running RDM)
-------------------
Remote Desktop Manager Enterprise Edition 12.6.6.0 64 Bit - Data Source: SQL Server
Running on Windows Server 2012R2 VMs with Remote Desktop Services feature, serving as common work environment for 30 Windows Server administrators
Hello,
Is this domain yours or it's a domain from one of your customer?
Do you have something relevant in Help -> View Application Log?
Best regards,
Jeff Dagenais
It is one of the domains within the company I'm working at. We do not have external customers.
This is the line that occurs in the Application Log when I launch the sync:
System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_NativeObject()
at Devolutions.RemoteDesktopManager.Managers.ActiveDirectoryManager.c4e6600cd9c7a486f237466ff3e382cd0(String c8f5fc8e3085b0420996ac1906e722df8, String c4c707ece3170514f8504b161d5b38c17, SecureString ceb81d1ee93f91e0bc57f34876c263863, AuthenticationTypes cc02b7c79efe95af3bdb80ec47d926401)
The "Test Connection" button gives a success message though and like I said, the preview button comes up with a correct list of servers from that domain.
Which tells me that the credentials are okay, the AD can be accessed and the correct data can be queried.
But the actual sync seems to do things either differently or there is a nasty bug ;)
-------------------
Remote Desktop Manager Enterprise Edition 12.6.6.0 64 Bit - Data Source: SQL Server
Running on Windows Server 2012R2 VMs with Remote Desktop Services feature, serving as common work environment for 30 Windows Server administrators
Hello,
I would like you to try something if possible.
Could you enter the credentials to use directly in the Login tab instead of using the Credential Repository.
Let me know how that works.
Best regards,
Jeff Dagenais
Hi Jeff,
I tried as you suggested and I can confirm that this works!
At least I am able to sync with the domain now this way until you have that "session credentials bug" fixed :)
Thanks!
-------------------
Remote Desktop Manager Enterprise Edition 12.6.6.0 64 Bit - Data Source: SQL Server
Running on Windows Server 2012R2 VMs with Remote Desktop Services feature, serving as common work environment for 30 Windows Server administrators
Hello,
Thank you very much for that information. I have advised our engineering department regarding this.
Quick question: Does your username and/or password contain any special character like $ as example?
Best regards,
Jeff Dagenais
Hi Jeff,
in this case no - username and password consist of upper/lower case characters and numbers only. The password is 20 characters long though.
-------------------
Remote Desktop Manager Enterprise Edition 12.6.6.0 64 Bit - Data Source: SQL Server
Running on Windows Server 2012R2 VMs with Remote Desktop Services feature, serving as common work environment for 30 Windows Server administrators
Hello Holger,
I think I've identified the issue but I would like you to confirm if the following succeeds. If you link a credential entry like you were at first and in the AD sync entry in the advanced tab you set "domain\username" for the username format, does it now work?
I think in the preview we automatically force the format of the username like that, but not when linked to the credential, which is odd.
Regards,
Hubert Mireault
Hi Hubert,
yes confirmed, when setting the username format to "domain\username" in advanced session settings, it works. Good finding!
I'll configure my sync sessions accordingly until you release a fixed version. Thanks a lot.
-------------------
Remote Desktop Manager Enterprise Edition 12.6.6.0 64 Bit - Data Source: SQL Server
Running on Windows Server 2012R2 VMs with Remote Desktop Services feature, serving as common work environment for 30 Windows Server administrators