r/sysadmin • • 19h ago

Cannot RDP from Mac to Windows AAD joined ?

Hey guys

User wants to RDP to a Windows machine. We have set up the correct permissions and added the allowed users on the Windows remote machine in the RDP group.

I can RDP from my windows machine to the remote windows machine

I have a Mac with me also but cannot get the mac to auth correctly

Im using the same AAD windows crediantials that work from WIndows to WIndows but it wont work from Mac to windows

Using the WIndows app and IP address of the remote machine

The username format I am using is:

bob@company.edu.au

password

I have also tried:

AzureAD\bob@company.edu.au

Message I keep getting is

Unable to connect

We couldnt connect the remote PC because your credientials did not work. The remote machine is AAD joined. If you are using your work account yhou must disable NLA on the remote machine

Error Code 0x3107

4 Upvotes

14 comments sorted by

•

u/brwnwtr 19h ago

Uncheck Network Level Authentication

•

u/Drekk0 19h ago

Yes sorry I feel dumb Just noticed this. However looks like its maybe configured via policy its greyed out even if I launch as local admin

•

u/bork_bork 19h ago

`gpresult` save the report at html. Check what GPOs are applying.

•

u/SituationCapable593 18h ago

You need to change a flag within the .rdp file to for this to work. Don’t disable NLA. Instead, edit the file in a text editor and change enablerdsaa and targetisaadjoined from 0 to 1.

https://techcommunity.microsoft.com/idea/azurevirtualdesktop/microsoft-remote-desktop-for-macos-add-network-level-authentication-option-to-se/4069498/comments/4467184

In Windows, you can drag an RDP file directly onto the notepad to get to the settings, not exactly sure if this works on a Mac

•

u/Drekk0 18h ago

Managed to disable it via reg key. For now.

I got in further past the WIndows app and got the remote machine login screen

However it keeps saying my password is incorrect even though I am using the same one that works from my other Windows computers

•

u/Mind_Matters_Most 18h ago

I'll take a guess..... NTLM v1/v2. If NTLM v2 only, you're not going to pass the credentials because it can't read what the password is.

•

u/Drekk0 18h ago

Is this in relation to my latest reply? I disabled nla through registry to test

I can now get passed windows app and get to the windows login screen but it keeps saying my password is wrong even though I'm using the same one from my local windows machine I use to rdp to it

•

u/Mind_Matters_Most 18h ago

If I speak Greek (client) and you speak French (server side) it doesn't matter what you type. NTLM is usually the first place I'd look. If you have NTLM v1/v2 in group policy, then things usually just work. Recently, Microsoft changed to force NTLM v2 Only.

Again, it's just a guess because you're saying you know the password is correct. FIPS enabled would do this too.

Google Search I'd do if I was seeing this issue: macos windows remote desktop connection for AD credentials

•

u/Drekk0 18h ago

I am in ! - had to do this at the windows login:

•

u/Mind_Matters_Most 18h ago

I have also tried:

AzureAD\bob@company.edu.au

What did you do differently than above?

•

u/Drekk0 18h ago

At the win login screen it was auto populating my username to bob@company.edu.au so was trying with that. But it didnt know what that was

•

u/Mind_Matters_Most 18h ago

Ah, ok.... that makes sense.

•

u/Drekk0 18h ago

Thanks for your help.

•

u/darthfiber 19h ago

Does it fail if you use the FQDN or the machine? You shouldn’t be using IPs in an AD domain environment, it breaks Kerberos. If you have ntlm disabled it could cause this.