Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not connect to windows 11 on macos #504

Closed
binbowang1987 opened this issue Jul 24, 2024 · 6 comments
Closed

can not connect to windows 11 on macos #504

binbowang1987 opened this issue Jul 24, 2024 · 6 comments
Labels
question Further information is requested

Comments

@binbowang1987
Copy link

I use ./target/debug/ironrdp-client to connect to windows through rdp, but it report some errors. I need some help.

2024-07-24T14:42:40.624758Z ERROR ThreadId(10) crates/ironrdp-connector/src/connection.rs:279: Received connection failure code code=FailureCode(2)
2024-07-24T14:42:40.627250Z ERROR ThreadId(01) crates/ironrdp-client/src/gui.rs:249: error=Error { context: "Initiation", kind: Reason("enhanced RDP security not allowed by server"), source: None }
Connection error: [Initiation] reason: enhanced RDP security not allowed by server
@thenextman
Copy link
Member

@binbowang1987 It sounds like your server doesn't have NLA (Network Level Authentication) enabled. That could be strange, since it would need to be explicitly disabled by policy on a Windows 11 system. Is that the case?

To my understanding, IronRDP (currently) only supports NLA (CredSSP).

@binbowang1987
Copy link
Author

yes, the NLA is disabled on remote windows os. I enabled it and connect successful.
But, I have another problem. there is some error reporting, and the mouse position is wrong.
20240725-081208

@thenextman
Copy link
Member

The logged errors are DNS requests looking for a domain controller (this is part of Kerberos, which I guess you are not using). They should be benign but probably represent a bug. Can I ask how you launch the client - what command line do you use?

For the mouse position, this is likely due to mouse tracking not being setup properly on the native window. I'm not familiar with the GUI framework we're using for IronRDP so to be sure this gets seen, would you mind creating a separate issue for that?

@CBenoit
Copy link
Member

CBenoit commented Jul 25, 2024

To my understanding, IronRDP (currently) only supports NLA (CredSSP).

Actually, unless --no-tls is specified, IronRDP should handle the non-NLA, Graphical login authentication method, I tested a few times.

I wonder why we get this error:

Connection error: [Initiation] reason: enhanced RDP security not allowed by server

We are negotiating the authentication method and downgrade to non-NLA if that’s what the server wants.

As an alternative, maybe you could use --no-credssp and see if it works better, but enabling NLA is definitely a good thing to do anyway.

EDIT: I think "enhanced RDP security" is referring to both TLS (graphical logon) and NLA (CredSSP), so likely the server was only accepting the legacy Standard RDP security, and we indeed do not support that at all.

@binbowang1987
Copy link
Author

The logged errors are DNS requests looking for a domain controller (this is part of Kerberos, which I guess you are not using). They should be benign but probably represent a bug. Can I ask how you launch the client - what command line do you use?

./target/debug/ironrdp-client -u username -p 'xxxx' 172.17.56.83

For the mouse position, this is likely due to mouse tracking not being setup properly on the native window. I'm not familiar with the GUI framework we're using for IronRDP so to be sure this gets seen, would you mind creating a separate issue for that?

yes, here is the releated issue #507

@CBenoit
Copy link
Member

CBenoit commented Jul 26, 2024

Thank you! I’ll close this issue now as it appears resolved, and we’ll investigate the other problem in the new issue you created.

@CBenoit CBenoit closed this as completed Jul 26, 2024
@CBenoit CBenoit added the question Further information is requested label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

3 participants