neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.62k stars 1.73k forks source link

can not login use krdc but rdesktop can login success #2606

Closed tangpostkarte closed 1 year ago

tangpostkarte commented 1 year ago

image

tangpostkarte commented 1 year ago

os is ubuntu22.04

and here is the xrdp version

xrdp --version
xrdp 0.9.17 A Remote Desktop Protocol Server. Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors. See https://github.com/neutrinolabs/xrdp for more information.

Configure options: --enable-ipv6 --enable-jpeg --enable-fuse --enable-rfxcodec --enable-opus --enable-painter --enable-vsock --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --with-socketdir=/run/xrdp/sockdir build_alias=x86_64-linux-gnu CFLAGS=-g -O2 -ffile-prefix-map=/build/xrdp-asBei3/xrdp-0.9.17=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -Wl,--as-needed CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=deprecated-declarations PKG_CONFIG_PATH=/build/xrdp-asBei3/xrdp-0.9.17/pkgconfig

Compiled with OpenSSL 3.0.2 15 Mar 2022

tangpostkarte commented 1 year ago

[20230324-10:54:02] [INFO ] Connected client computer name: uos [20230324-10:54:02] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409] [20230324-10:54:02] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options [] [20230324-10:54:02] [INFO ] TLS connection established from ::ffff:192.168.3.152 port 32996: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 [20230324-10:54:02] [ERROR] libxrdp_force_read: header read error [20230324-10:54:02] [ERROR] libxrdp_process_data: libxrdp_force_read failed [20230324-10:54:02] [ERROR] xrdp_process_data_in: xrdp_process_loop failed [20230324-10:54:02] [ERROR] xrdp_iso_send: trans_write_copy_s failed [20230324-10:54:02] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.3.152 port 32998 [20230324-10:54:02] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed [20230324-10:54:02] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20230324-10:54:02] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20230324-10:54:02] [INFO ] Connected client computer name: uos [20230324-10:54:02] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409] [20230324-10:54:02] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options [] [20230324-10:54:02] [INFO ] TLS connection established from ::ffff:192.168.3.152 port 32998: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 [20230324-10:54:02] [ERROR] libxrdp_force_read: header read error [20230324-10:54:02] [ERROR] libxrdp_process_data: libxrdp_force_read failed [20230324-10:54:02] [ERROR] xrdp_process_data_in: xrdp_process_loop failed [20230324-10:54:02] [ERROR] xrdp_iso_send: trans_write_copy_s failed [20230324-10:54:02] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed [20230324-11:10:05] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.3.152 port 38484 [20230324-11:10:05] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20230324-11:10:05] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20230324-11:10:05] [ERROR] SSL_accept: Failure in SSL library (protocol error?) [20230324-11:10:05] [ERROR] SSL: error:0A000102:SSL routines::unsupported protocol [20230324-11:10:05] [ERROR] trans_set_tls_mode: ssl_tls_accept failed [20230324-11:10:05] [ERROR] xrdp_sec_incoming: trans_set_tls_mode failed [20230324-11:10:05] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed

matt335672 commented 1 year ago

Looks like the client is disconnecting for some reason, so it doesn't like something xrdp is sending it.

Can you find client-side logs?

Also either try removing the cached copy of the TLS certificate on the client side. If you can't find it, temporarily wind the security back to rdp and see what happens.

tangpostkarte commented 1 year ago

Looks like the client is disconnecting for some reason, so it doesn't like something xrdp is sending it.

Can you find client-side logs?

Also either try removing the cached copy of the TLS certificate on the client side. If you can't find it, temporarily wind the security back to rdp and see what happens.

Thank you very much! I find if i use the new version of remmina everything going all right,Maybe it is the client error