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

Windows Remote Desktop will close session after I enter username and password #1881

Closed
MehdiSlr opened this issue May 9, 2021 · 9 comments
Closed
Labels
question or troubleshoot question or trouble shoot, not confirmed as xrdp bug or issue yet

Comments

@MehdiSlr
Copy link

MehdiSlr commented May 9, 2021

after enter ip windows remote desktop, xrdp login page is open and after enter my username and password remote desktop session will close.

@metalefty metalefty added the question or troubleshoot question or trouble shoot, not confirmed as xrdp bug or issue yet label May 10, 2021
@matt335672
Copy link
Member

Hi @Mahdi-Slr79

First think to say is I've removed your video link as it appears to contain information about a publically open network port which I don't believe should be shared on the public internet. Please PM me on Gitter if you want more info on this.

@matt335672
Copy link
Member

As to your actual problem (which can be discussed publicly):-

  • xrdp won't allow root logins at all. This explains the first bit of your video.
  • There are quite a few reasons why you may be experiencing the behaviour you're seeing when you try to log in as mehdi. We'll need more information to help you though:-
  1. What OS are you running on the target?
  2. Have you installed xrdp from a package or from source?
  3. (if installed from a package) Have you also installed xordxrdp?

Thanks

@matt335672
Copy link
Member

@Mahdi-Slr79 - do you need more help with this?

@spitzd
Copy link

spitzd commented Oct 7, 2021

Hi Matt,

I'm hoping you can help with the below.

I'm encountering the same issue (enter non-root credentials, accept certificate warning, nothing happens) as above after running an update on my virtual machine. I am connecting to my VM using Microsoft Remote Desktop on MacOS. The below is the output of the log from the connection attempt.

[20211007-10:44:52] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.104 port 64126
[20211007-10:44:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.1.158 port 3389)
[20211007-10:44:52] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20211007-10:44:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20211007-10:44:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20211007-10:44:52] [DEBUG] TLSv1.3 enabled
[20211007-10:44:52] [DEBUG] TLSv1.2 enabled
[20211007-10:44:52] [DEBUG] Security layer: requested 11, selected 1
[20211007-10:44:58] [INFO ] connected client computer name: OBFUSCATED
[20211007-10:44:58] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20211007-10:44:58] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20211007-10:44:58] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20211007-10:44:58] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20211007-10:44:58] [INFO ] TLS connection established from ::ffff:192.168.1.104 port 64126: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20211007-10:44:58] [DEBUG] xrdp_00000970_wm_login_mode_event_00000001
[20211007-10:44:58] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20211007-10:44:58] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20211007-10:44:58] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20211007-10:44:58] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20211007-10:44:58] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20211007-10:44:58] [DEBUG] return value from xrdp_mm_connect 0
[20211007-10:44:58] [INFO ] xrdp_wm_log_msg: login successful for display 15
[20211007-10:44:58] [DEBUG] xrdp_wm_log_msg: started connecting
[20211007-10:44:59] [INFO ] lib_mod_log_peer: xrdp_pid=2416 connected to X11rdp_pid=2441 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.1.104 client_port=64126
[20211007-10:44:59] [DEBUG] xrdp_wm_log_msg: connected ok
[20211007-10:44:59] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20211007-10:44:59] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 35192)
[20211007-10:44:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.1.158 port 3389)
[20211007-10:44:59] [DEBUG] xrdp_mm_module_cleanup
[20211007-10:44:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20211007-10:44:59] [DEBUG] Closed socket 20 (AF_UNIX)

Been researching this and looks similar to this maybe, #1490? I could not try the suggestion "Glyph Cache" cause I don't see it on the Microsoft Remote Desktop client.

Any help would be greatly appreciated.

Many Thanks,
Denver

@matt335672
Copy link
Member

Your log looks clean to me.

A few questions:-

  • What do you mean by 'nothing happens'. Are you at a blue screen?
  • What OS are you running?
  • What does ~/.xorgxrdp.15.log contain?

Thanks.

@spitzd
Copy link

spitzd commented Oct 7, 2021

  • Nothing happens in the sense that the authentication prompt disappears and no RDP session is opened. Just returns back to the Microsoft Remote Desktop app
  • MacOS Catalina v10.15.7
  • Please see attached

xorgxrdp.13.log
xsession-errors.log

Please let me know if you need anything else and thank you for the quick response!!

@matt335672
Copy link
Member

Sorry - I meant what OS are you running on your VM.

Your problem seems to be here:-

[  8687.838] expected xrdp client_info version 20210723, got 32
[  8687.838] (EE) 
Fatal server error:
[  8687.838] (EE) Incompatible xrdp version detected  - please recompile(EE) 
[  8687.838] (EE) 

It looks like your version of xorgxrdp was built against v0.9.17 of xrdp. However the version of xrdp you are running seems to be older than v0.9.16. Does that make sense at all?

@spitzd
Copy link

spitzd commented Oct 7, 2021

That makes sense and I've now updated it.

OLD
dspitz@kali-server:~# sudo apt list xrdp -a
Listing... Done
xrdp/kali-rolling 0.9.17-1 amd64 [upgradable from: 0.9.12-1.1]
xrdp/now 0.9.12-1.1 amd64 [installed,upgradable to: 0.9.17-1]

NEW
dspitz@kali-server:~# sudo apt list xrdp -a
Listing... Done
xrdp/kali-rolling,now 0.9.17-1 amd64 [installed]

It's now working as expected! Thank you very much Matt, appreciate your quick response on this.

@matt335672
Copy link
Member

Thanks for the swift response - it really helps with the house-keeping.

I'm closing this issue now, as the OP hasn't responded since the initial issue was raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question or troubleshoot question or trouble shoot, not confirmed as xrdp bug or issue yet
Projects
None yet
Development

No branches or pull requests

4 participants