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

Unable to log in when using a different domain name #2981

Open
blaizmannen opened this issue Mar 7, 2024 · 6 comments
Open

Unable to log in when using a different domain name #2981

blaizmannen opened this issue Mar 7, 2024 · 6 comments
Labels

Comments

@blaizmannen
Copy link

xrdp version

0.9.17

Detailed xrdp version, build options

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

Operating system & version

Ubuntu 22.04.4 LTS

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

xorg

What desktop environment do you use?

GNOME

Environment xrdp running on

AWS EC2 instance

What's your client?

macOS Sonoma 14.3

Area(s) with issue?

No response

Steps to reproduce

Our users should be able to log in with username format of user.name or user.name@mydomain.com. A user's very first log in will work, because there are no sessions stored prior. (We use this open source script to detect active/disconnected sessions in xrdp).

Let us say we log in as user.name:

    PID USERNAME             START_TIME          STATUS      
   6516 user.name            2024-03-06 09:00    active

If we log out and log back in again using the same user format, it is still fine. XRDP remembers this old disconnected process and lets us use this for our next login.

But, when we log in as user.name@company.com:

    PID USERNAME             START_TIME          STATUS      
   8759 user.name            2024-03-06 10:33    disconnected
   9364 user.name           2024-03-06 10:34    active

It spawns a new session and we are met with a black screen on log in. Which I assume is because there is already an existing session with the same username.

✔️ Expected Behavior

New xrdp session to be successfully started anytime a user logs in.

❌ Actual Behavior

Black screen when a different user name format has been used, when there is a disconnected session of that same user.

Anything else?

Logs

sssd_domain.com.log

(2024-03-06 10:07:53): [be[domain.com]] [dp_attach_req] (0x0400): [RID#41] DP Request [Subdomains #41]: REQ_TRACE: New request. Flags [0000].
(2024-03-06 10:07:53): [be[domain.com]] [dp_attach_req] (0x0400): [RID#41] Number of active DP request: 1
(2024-03-06 10:07:53): [be[domain.com]] [dp_find_method] (0x0100): [RID#41] Target [subdomains] is not initialized
(2024-03-06 10:07:53): [be[domain.com]] [_dp_req_recv] (0x0400): DP Request [Subdomains #41]: Receiving request data.
(2024-03-06 10:07:53): [be[domain.com]] [dp_req_destructor] (0x0400): DP Request [Subdomains #41]: Request removed.
(2024-03-06 10:07:53): [be[domain.com]] [dp_req_destructor] (0x0400): Number of active DP request: 0
(2024-03-06 10:07:53): [be[domain.com]] [sbus_issue_request_done] (0x0200): sssd.dataprovider.getDomains: Error [1432158215]: DP target is not configured
(2024-03-06 10:07:53): [be[domain.com]] [dp_attach_req] (0x0400): [RID#42] DP Request [Subdomains #42]: REQ_TRACE: New request. Flags [0000].
(2024-03-06 10:07:53): [be[domain.com]] [dp_attach_req] (0x0400): [RID#42] Number of active DP request: 1
(2024-03-06 10:07:53): [be[domain.com]] [dp_find_method] (0x0100): [RID#42] Target [subdomains] is not initialized
(2024-03-06 10:07:53): [be[domain.com]] [_dp_req_recv] (0x0400): DP Request [Subdomains #42]: Receiving request data.
(2024-03-06 10:07:53): [be[domain.com]] [dp_req_destructor] (0x0400): DP Request [Subdomains #42]: Request removed.
(2024-03-06 10:07:53): [be[domain.com]] [dp_req_destructor] (0x0400): Number of active DP request: 0
(2024-03-06 10:07:53): [be[domain.com]] [sbus_issue_request_done] (0x0200): sssd.dataprovider.getDomains: Error [1432158215]: DP target is not configured
(2024-03-06 10:07:53): [be[domain.com]] [dp_get_account_info_send] (0x0200): Got request for [0x2][BE_REQ_GROUP][idnumber=1257699886]
(2024-03-06 10:07:53): [be[domain.com]] [dp_attach_req] (0x0400): [RID#43] DP Request [Account #43]: REQ_TRACE: New request. [sssd.nss CID #8] Flags [0x0001].
(2024-03-06 10:07:53): [be[domain.com]] [dp_attach_req] (0x0400): [RID#43] Number of active DP request: 1
(2024-03-06 10:07:53): [be[domain.com]] [sss_domain_get_state] (0x1000): [RID#43] Domain domain.com is Active
(2024-03-06 10:07:53): [be[domain.com]] [fo_resolve_service_send] (0x0100): [RID#43] Trying to resolve service 'LDAP'
(2024-03-06 10:07:53): [be[domain.com]] [get_server_status] (0x1000): [RID#43] Status of server 'ldap.google.com' is 'working'
(2024-03-06 10:07:53): [be[domain.com]] [get_port_status] (0x1000): [RID#43] Port status of port 636 for server 'ldap.google.com' is 'working'
(2024-03-06 10:07:53): [be[domain.com]] [get_server_status] (0x1000): [RID#43] Status of server 'ldap.google.com' is 'working'
(2024-03-06 10:07:53): [be[domain.com]] [be_resolve_server_process] (0x1000): [RID#43] Saving the first resolved server
(2024-03-06 10:07:53): [be[domain.com]] [be_resolve_server_process] (0x0200): [RID#43] Found address for server ldap.google.com: [216.239.32.58] TTL 300
(2024-03-06 10:07:53): [be[domain.com]] [sdap_uri_callback] (0x0400): [RID#43] Constructed uri 'ldaps://ldap.google.com:636'
(2024-03-06 10:07:53): [be[domain.com]] [sssd_async_socket_init_send] (0x0400): [RID#43] Setting 6 seconds timeout [ldap_network_timeout] for connecting
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x0400): [RID#43] calling ldap_search_ext with [(objectclass=*)][].
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [*]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [altServer]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [namingContexts]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [supportedControl]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [supportedExtension]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [supportedFeatures]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [supportedLDAPVersion]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [supportedSASLMechanisms]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [domainControllerFunctionality]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [defaultNamingContext]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [lastUSN]
(2024-03-06 10:07:53): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [highestCommittedUSN]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_parse_entry] (0x1000): [RID#43] OriginalDN: [].
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_op_finished] (0x0400): [RID#43] Search result: Success(0), no errmsg set
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_server_opts_from_rootdse] (0x0200): [RID#43] No known USN scheme is supported by this server!
(2024-03-06 10:07:55): [be[domain.com]] [sdap_cli_auth_step] (0x0100): [RID#43] expire timeout is 900
(2024-03-06 10:07:55): [be[domain.com]] [sdap_cli_auth_step] (0x1000): [RID#43] the connection will expire at 1709720575
(2024-03-06 10:07:55): [be[domain.com]] [sdap_cli_auth_step] (0x1000): [RID#43] No authentication requested or SASL auth forced off
(2024-03-06 10:07:55): [be[domain.com]] [sdap_cli_connect_recv] (0x0400): [RID#43] Connection established.
(2024-03-06 10:07:55): [be[domain.com]] [fo_set_port_status] (0x0100): [RID#43] Marking port 636 of server 'ldap.google.com' as 'working'
(2024-03-06 10:07:55): [be[domain.com]] [set_server_common_status] (0x0100): [RID#43] Marking server 'ldap.google.com' as 'working'
(2024-03-06 10:07:55): [be[domain.com]] [fo_set_port_status] (0x0400): [RID#43] Marking port 636 of duplicate server 'ldap.google.com' as 'working'
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_groups_next_base] (0x0400): [RID#43] Searching for groups with base [dc=domain,dc=com]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x0400): [RID#43] calling ldap_search_ext with [(&(gidNumber=1257699886)(objectClass=posixGroup)(cn=*)(&(gidNumber=*)(!(gidNumber=0))))][dc=domain,dc=com].
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [objectClass]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [cn]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [userPassword]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [gidNumber]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [modifyTimestamp]
(2024-03-06 10:07:55): [be[domain.com]] [sdap_get_generic_ext_step] (0x1000): [RID#43] Requesting attrs: [modifyTimestamp]
(2024-03-06 10:07:56): [be[domain.com]] [sdap_get_generic_op_finished] (0x0400): [RID#43] Search result: Success(0), no errmsg set
(2024-03-06 10:07:56): [be[domain.com]] [sdap_get_groups_process] (0x0400): [RID#43] Search for groups, returned 0 results.
(2024-03-06 10:07:56): [be[domain.com]] [sysdb_search_group_by_id] (0x0400): [RID#43] No such entry
(2024-03-06 10:07:56): [be[domain.com]] [sysdb_delete_group] (0x0400): [RID#43] Error: 2 (No such file or directory)
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_done] (0x0400): [RID#43] DP Request [Account #43]: Request handler finished [0]: Success
(2024-03-06 10:07:56): [be[domain.com]] [_dp_req_recv] (0x0400): [RID#43] DP Request [Account #43]: Receiving request data.
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_destructor] (0x0400): [RID#43] DP Request [Account #43]: Request removed.
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_destructor] (0x0400): [RID#43] Number of active DP request: 0
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_reply_std] (0x1000): [RID#43] DP Request [Account #43]: Returning [Success]: 0,0,Success
(2024-03-06 10:07:56): [be[domain.com]] [sbus_issue_request_done] (0x0400): sssd.dataprovider.getAccountInfo: Success
(2024-03-06 10:07:56): [be[domain.com]] [dp_attach_req] (0x0400): [RID#44] DP Request [Subdomains #44]: REQ_TRACE: New request. Flags [0000].
(2024-03-06 10:07:56): [be[domain.com]] [dp_attach_req] (0x0400): [RID#44] Number of active DP request: 1
(2024-03-06 10:07:56): [be[domain.com]] [dp_find_method] (0x0100): [RID#44] Target [subdomains] is not initialized
(2024-03-06 10:07:56): [be[domain.com]] [_dp_req_recv] (0x0400): DP Request [Subdomains #44]: Receiving request data.
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_destructor] (0x0400): DP Request [Subdomains #44]: Request removed.
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_destructor] (0x0400): Number of active DP request: 0
(2024-03-06 10:07:56): [be[domain.com]] [sbus_issue_request_done] (0x0200): sssd.dataprovider.getDomains: Error [1432158215]: DP target is not configured
(2024-03-06 10:07:56): [be[domain.com]] [dp_pam_handler_send] (0x0100): Got request with the following data
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): command: SSS_PAM_ACCT_MGMT
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): domain: domain.com
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): user: user.name@domain.com
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): service: xrdp-sesman
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): tty: xrdp-sesman
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): ruser:
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): rhost:
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): authtok type: 0 (No authentication token available)
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): newauthtok type: 0 (No authentication token available)
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): priv: 0
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): cli_pid: 6456
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): logon name: not set
(2024-03-06 10:07:56): [be[domain.com]] [pam_print_data] (0x0100): flags: 0
(2024-03-06 10:07:56): [be[domain.com]] [dp_attach_req] (0x0400): [RID#45] DP Request [PAM Account #45]: REQ_TRACE: New request. [sssd.pam CID #4] Flags [0000].
(2024-03-06 10:07:56): [be[domain.com]] [dp_attach_req] (0x0400): [RID#45] Number of active DP request: 1
(2024-03-06 10:07:56): [be[domain.com]] [sss_domain_get_state] (0x1000): [RID#45] Domain domain.com is Active
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_done] (0x0400): [RID#45] DP Request [PAM Account #45]: Request handler finished [0]: Success
(2024-03-06 10:07:56): [be[domain.com]] [_dp_req_recv] (0x0400): [RID#45] DP Request [PAM Account #45]: Receiving request data.
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_destructor] (0x0400): [RID#45] DP Request [PAM Account #45]: Request removed.
(2024-03-06 10:07:56): [be[domain.com]] [dp_req_destructor] (0x0400): [RID#45] Number of active DP request: 0
(2024-03-06 10:07:56): [be[domain.com]] [dp_method_enabled] (0x0400): [RID#45] Target selinux is not configured
(2024-03-06 10:07:56): [be[domain.com]] [sbus_issue_request_done] (0x0400): sssd.dataprovider.pamHandler: Success

xrdp-sesman.log

[20240306-10:07:53] [INFO ] Socket 10: AF_INET6 connection received from ::1 port 33138
[20240306-10:07:56] [DEBUG] session_get_bydata: search policy 0 U user.name@domain.com W 1920 H 1080 bpp 24 T 3 IP 10.50.1.112:51173 - socket: 12
[20240306-10:07:56] [DEBUG] session_get_bydata: try 0x5a3bb03669f0 U user.name@domain.com W 1920 H 1080 bpp 24 T 3 IP 10.50.1.112:51060 - socket: 12
[20240306-10:07:56] [DEBUG] session_get_bydata: try 0x5a3bb0351c70 U user.name@domain.com W 1920 H 1080 bpp 24 T 3 IP 10.50.1.112:50801 - socket: 12
[20240306-10:07:56] [INFO ] ++ reconnected session: username user.name@domain.com, display :14.0, session_pid 7172, ip 10.50.1.112:51173 - socket: 12
[20240306-10:07:56] [ERROR] sesman_data_in: scp_process_msg failed
[20240306-10:07:56] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20240306-10:07:56] [DEBUG] Closed socket 10 (AF_INET6 ::1 port 3350)
[20240306-10:07:56] [INFO ] Starting session reconnection script on display 14: /etc/xrdp/reconnectwm.sh
[20240306-10:07:56] [DEBUG] Calling exec (excutable: /etc/xrdp/reconnectwm.sh, arguments: /etc/xrdp/reconnectwm.sh )

xrdp.log

[20240306-10:07:46] [INFO ] Socket 12: AF_INET connection received from 10.50.1.112 port 51173
[20240306-10:07:46] [DEBUG] Closed socket 12 (AF_INET 10.51.98.17:3389)
[20240306-10:07:46] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20240306-10:07:46] [DEBUG] item ini_version, value 1
[20240306-10:07:46] [DEBUG] item fork, value true
[20240306-10:07:46] [DEBUG] item port, value tcp://:3389
[20240306-10:07:46] [DEBUG] item use_vsock, value false
[20240306-10:07:46] [DEBUG] item tcp_nodelay, value true
[20240306-10:07:46] [DEBUG] item tcp_keepalive, value true
[20240306-10:07:46] [DEBUG] item security_layer, value tls
[20240306-10:07:46] [DEBUG] item crypt_level, value fips
[20240306-10:07:46] [DEBUG] item ssl_protocols, value TLSv1.2, TLSv1.3
[20240306-10:07:46] [DEBUG] TLSv1.3 enabled
[20240306-10:07:46] [DEBUG] TLSv1.2 enabled
[20240306-10:07:46] [DEBUG] item tls_ciphers, value HIGH
[20240306-10:07:46] [DEBUG] item certificate, value /etc/le-ssl/certs/test-prd-db-jumphost.int.domain.com.pem
[20240306-10:07:46] [DEBUG] item key_file, value /etc/le-ssl/private/key.pem
[20240306-10:07:46] [DEBUG] item autorun, value
[20240306-10:07:46] [DEBUG] item allow_channels, value true
[20240306-10:07:46] [DEBUG] item allow_multimon, value true
[20240306-10:07:46] [DEBUG] item bitmap_cache, value true
[20240306-10:07:46] [DEBUG] item bitmap_compression, value true
[20240306-10:07:46] [DEBUG] item bulk_compression, value true
[20240306-10:07:46] [DEBUG] item max_bpp, value 32
[20240306-10:07:46] [DEBUG] item new_cursors, value true
[20240306-10:07:46] [DEBUG] item use_fastpath, value both
[20240306-10:07:46] [DEBUG] item blue, value 009cb5
[20240306-10:07:46] [DEBUG] item grey, value dedede
[20240306-10:07:46] [DEBUG] item ls_top_window_bg_color, value 009cb5
[20240306-10:07:46] [DEBUG] item ls_width, value 350
[20240306-10:07:46] [DEBUG] item ls_height, value 430
[20240306-10:07:46] [DEBUG] item ls_bg_color, value dedede
[20240306-10:07:46] [DEBUG] item ls_logo_filename, value
[20240306-10:07:46] [DEBUG] item ls_logo_x_pos, value 55
[20240306-10:07:46] [DEBUG] item ls_logo_y_pos, value 50
[20240306-10:07:46] [DEBUG] item ls_label_x_pos, value 30
[20240306-10:07:46] [DEBUG] item ls_label_width, value 65
[20240306-10:07:46] [DEBUG] item ls_input_x_pos, value 110
[20240306-10:07:46] [DEBUG] item ls_input_width, value 210
[20240306-10:07:46] [DEBUG] item ls_input_y_pos, value 220
[20240306-10:07:46] [DEBUG] item ls_btn_ok_x_pos, value 142
[20240306-10:07:46] [DEBUG] item ls_btn_ok_y_pos, value 370
[20240306-10:07:46] [DEBUG] item ls_btn_ok_width, value 85
[20240306-10:07:46] [DEBUG] item ls_btn_ok_height, value 30
[20240306-10:07:46] [DEBUG] item ls_btn_cancel_x_pos, value 237
[20240306-10:07:46] [DEBUG] item ls_btn_cancel_y_pos, value 370
[20240306-10:07:46] [DEBUG] item ls_btn_cancel_width, value 85
[20240306-10:07:46] [DEBUG] item ls_btn_cancel_height, value 30
[20240306-10:07:46] [DEBUG] Security layer: requested 11, selected 1
[20240306-10:07:53] [DEBUG] Using TLS security, and setting RDP security crypto to LEVEL_NONE and METHOD_NONE
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive connection request
[20240306-10:07:53] [INFO ] Connected client computer name: Johns-MacBook-P
[20240306-10:07:53] [DEBUG] Client supports 40 bit encryption
[20240306-10:07:53] [DEBUG] Client supports 128 bit encryption
[20240306-10:07:53] [DEBUG] Client supports 56 bit encryption
[20240306-10:07:53] [DEBUG] Client supports fips encryption
[20240306-10:07:53] [DEBUG] The connection is using TLS, skipping RDP crypto negotiation
[20240306-10:07:53] [DEBUG] Adding channel: name rdpdr, channel id 1004, flags 0x80800000
[20240306-10:07:53] [DEBUG] Adding channel: name rdpsnd, channel id 1005, flags 0xc0000000
[20240306-10:07:53] [DEBUG] Adding channel: name cliprdr, channel id 1006, flags 0xc0a00000
[20240306-10:07:53] [DEBUG] Adding channel: name drdynvc, channel id 1007, flags 0xc0800000
[20240306-10:07:53] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20240306-10:07:53] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] construct connection reponse
[20240306-10:07:53] [DEBUG] using no security
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send connection reponse
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive erect domain request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive attach user request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send attach user confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive channel join request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send channel join confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive channel join request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send channel join confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive channel join request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send channel join confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive channel join request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send channel join confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive channel join request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send channel join confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] receive channel join request
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] send channel join confirm
[20240306-10:07:53] [DEBUG] [MCS Connection Sequence] completed
[20240306-10:07:53] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000000]
[20240306-10:07:53] [DEBUG] keyboard_cfg_file /etc/xrdp/xrdp_keyboard.ini
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item rdp_layout_us value 0x00000409
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: skipping configuration item - rdp_layout_us, continuing to next section
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item rdp_layout_us value us
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: skipping configuration item - rdp_layout_us, continuing to next section
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item keyboard_type value 4
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item keyboard_subtype value 3
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item keyboard_type value 7
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item keyboard_subtype value 2
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item model value pc105
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item rdp_layouts value default_rdp_layouts
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item layouts_map value default_layouts_map
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: item rdp_layout_us value us
[20240306-10:07:53] [DEBUG] xrdp_load_keyboard_layout: skipping configuration item - rdp_layout_us, continuing to next section
[20240306-10:07:53] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20240306-10:07:53] [INFO ] TLS connection established from 10.50.1.112 port 51173: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20240306-10:07:53] [DEBUG] Client requested auto logon.
[20240306-10:07:53] [DEBUG] Client requested compression enabled.
[20240306-10:07:53] [DEBUG] Client supplied domain:
[20240306-10:07:53] [DEBUG] Client supplied username: user.name@domain.com
[20240306-10:07:53] [DEBUG] Client supplied password: <omitted from log>
[20240306-10:07:53] [DEBUG] Client supplied program:
[20240306-10:07:53] [DEBUG] Client supplied directory:
[20240306-10:07:53] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240306-10:07:53] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20240306-10:07:53] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20240306-10:07:53] [DEBUG] xrdp_00002134_wm_login_state_event_00000001
[20240306-10:07:53] [WARN ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20240306-10:07:53] [WARN ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20240306-10:07:53] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20240306-10:07:53] [WARN ] local keymap file for 0x00000000 found and doesn't match built in keymap, using local keymap file
[20240306-10:07:53] [DEBUG] Login state change request WMLS_RESET -> WMLS_RESET
[20240306-10:07:53] [DEBUG] xrdp_wm_login_mode_changed: login_mode is 0
[20240306-10:07:53] [DEBUG] Login state change request WMLS_RESET -> WMLS_USER_PROMPT
[20240306-10:07:53] [DEBUG] in xrdp_wm_init:
[20240306-10:07:53] [DEBUG] ini_version:             1
[20240306-10:07:53] [DEBUG] use_bitmap_cache:        1
[20240306-10:07:53] [DEBUG] use_bitmap_compression:  1
[20240306-10:07:53] [DEBUG] port:                    0
[20240306-10:07:53] [DEBUG] crypt_level:             3
[20240306-10:07:53] [DEBUG] allow_channels:          1
[20240306-10:07:53] [DEBUG] max_bpp:                 32
[20240306-10:07:53] [DEBUG] fork:                    1
[20240306-10:07:53] [DEBUG] tcp_nodelay:             1
[20240306-10:07:53] [DEBUG] tcp_keepalive:           1
[20240306-10:07:53] [DEBUG] tcp_send_buffer_bytes:   0
[20240306-10:07:53] [DEBUG] tcp_recv_buffer_bytes:   0
[20240306-10:07:53] [DEBUG] new_cursors:             1
[20240306-10:07:53] [DEBUG] allow_multimon:          1
[20240306-10:07:53] [DEBUG] grey:                    14606046
[20240306-10:07:53] [DEBUG] black:                   0
[20240306-10:07:53] [DEBUG] dark_grey:               0
[20240306-10:07:53] [DEBUG] blue:                    40117
[20240306-10:07:53] [DEBUG] dark_blue:               0
[20240306-10:07:53] [DEBUG] white:                   0
[20240306-10:07:53] [DEBUG] red:                     0
[20240306-10:07:53] [DEBUG] green:                   0
[20240306-10:07:53] [DEBUG] background:              0
[20240306-10:07:53] [DEBUG] autorun:
[20240306-10:07:53] [DEBUG] hidelogwindow:           0
[20240306-10:07:53] [DEBUG] require_credentials:     0
[20240306-10:07:53] [DEBUG] bulk_compression:        1
[20240306-10:07:53] [DEBUG] new_cursors:             1
[20240306-10:07:53] [DEBUG] nego_sec_layer:          0
[20240306-10:07:53] [DEBUG] allow_multimon:          1
[20240306-10:07:53] [DEBUG] enable_token_login:      0
[20240306-10:07:53] [DEBUG] ls_top_window_bg_color:  b59c00
[20240306-10:07:53] [DEBUG] ls_width:                350
[20240306-10:07:53] [DEBUG] ls_height:               430
[20240306-10:07:53] [DEBUG] ls_bg_color:             dedede
[20240306-10:07:53] [DEBUG] ls_title:
[20240306-10:07:53] [DEBUG] ls_logo_filename:
[20240306-10:07:53] [DEBUG] ls_logo_x_pos:           55
[20240306-10:07:53] [DEBUG] ls_logo_y_pos:           50
[20240306-10:07:53] [DEBUG] ls_label_x_pos:          30
[20240306-10:07:53] [DEBUG] ls_label_width:          65
[20240306-10:07:53] [DEBUG] ls_input_x_pos:          110
[20240306-10:07:53] [DEBUG] ls_input_width:          210
[20240306-10:07:53] [DEBUG] ls_input_y_pos:          220
[20240306-10:07:53] [DEBUG] ls_btn_ok_x_pos:         142
[20240306-10:07:53] [DEBUG] ls_btn_ok_y_pos:         370
[20240306-10:07:53] [DEBUG] ls_btn_ok_width:         85
[20240306-10:07:53] [DEBUG] ls_btn_ok_height:        30
[20240306-10:07:53] [DEBUG] ls_btn_cancel_x_pos:     237
[20240306-10:07:53] [DEBUG] ls_btn_cancel_y_pos:     370
[20240306-10:07:53] [DEBUG] ls_btn_cancel_width:     85
[20240306-10:07:53] [DEBUG] ls_btn_cancel_height:    30
[20240306-10:07:53] [DEBUG] libxrdp_query_channel - Channel 0 name rdpdr
[20240306-10:07:53] [DEBUG] xrdp_wm_init: channel rdpdr channel id 0 is disabled
[20240306-10:07:53] [DEBUG] Disabling channel 1004 (rdpdr)
[20240306-10:07:53] [DEBUG] libxrdp_query_channel - Channel 1 name rdpsnd
[20240306-10:07:53] [DEBUG] xrdp_wm_init: channel rdpsnd channel id 1 is enabled
[20240306-10:07:53] [DEBUG] Enabling channel 1005 (rdpsnd)
[20240306-10:07:53] [DEBUG] libxrdp_query_channel - Channel 2 name cliprdr
[20240306-10:07:53] [DEBUG] xrdp_wm_init: channel cliprdr channel id 2 is enabled
[20240306-10:07:53] [DEBUG] Enabling channel 1006 (cliprdr)
[20240306-10:07:53] [DEBUG] libxrdp_query_channel - Channel 3 name drdynvc
[20240306-10:07:53] [DEBUG] xrdp_wm_init: channel drdynvc channel id 3 is enabled
[20240306-10:07:53] [DEBUG] Enabling channel 1007 (drdynvc)
[20240306-10:07:53] [DEBUG] Login state change request WMLS_USER_PROMPT -> WMLS_START_CONNECT
[20240306-10:07:53] [DEBUG] out xrdp_wm_init:
[20240306-10:07:53] [DEBUG] xrdp_wm_login_mode_changed: login_mode is 2
[20240306-10:07:53] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20240306-10:07:53] [INFO ] connecting to sesman ip 127.0.0.1 port 3350
[20240306-10:07:53] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20240306-10:07:53] [INFO ] sesman connect ok
[20240306-10:07:53] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20240306-10:07:53] [INFO ] sending login info to session manager, please wait...
[20240306-10:07:53] [DEBUG] return value from xrdp_mm_connect 0
[20240306-10:07:53] [DEBUG] Login state change request WMLS_START_CONNECT -> WMLS_CONNECT_IN_PROGRESS
[20240306-10:07:53] [DEBUG] xrdp_wm_login_mode_changed: login_mode is 3
[20240306-10:07:56] [INFO ] xrdp_wm_log_msg: login successful for display 14
[20240306-10:07:56] [INFO ] login successful for display 14
[20240306-10:07:56] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20240306-10:07:56] [DEBUG] xrdp_wm_log_msg: started connecting
[20240306-10:07:56] [INFO ] started connecting
[20240306-10:07:56] [INFO ] lib_mod_connect: connecting via UNIX socket
[20240306-10:07:56] [INFO ] lib_mod_log_peer: xrdp_pid=8500 connected to X11rdp_pid=7174 X11rdp_uid=1257699886 X11rdp_gid=1257699886 client_ip=10.50.1.112 client_port=51173
[20240306-10:07:56] [DEBUG] xrdp_wm_log_msg: connected ok
[20240306-10:07:56] [INFO ] connected ok
[20240306-10:07:56] [DEBUG] Login state change request WMLS_CONNECT_IN_PROGRESS -> WMLS_CLEANUP
[20240306-10:07:56] [DEBUG] libxrdp_query_channel - Channel 0 name rdpdr
[20240306-10:07:56] [DEBUG] libxrdp_query_channel - Channel 1 name rdpsnd
[20240306-10:07:56] [DEBUG] libxrdp_query_channel - Channel 2 name cliprdr
[20240306-10:07:56] [DEBUG] libxrdp_query_channel - Channel 3 name drdynvc
[20240306-10:07:56] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20240306-10:07:56] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 33138)
[20240306-10:07:56] [DEBUG] xrdp_wm_login_mode_changed: login_mode is 4
[20240306-10:07:56] [DEBUG] Login state change request WMLS_CLEANUP -> WMLS_INACTIVE
[20240306-10:07:56] [DEBUG] xrdp_wm_login_mode_changed: login_mode is 5
[20240306-10:07:56] [DEBUG] Request to send a message to the disabled channel rdpdr (0)
@blaizmannen blaizmannen added the bug label Mar 7, 2024
@blaizmannen
Copy link
Author

Gonna answer my own issue. This was solved by putting the following lines in my startwm.sh:

unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR

@blaizmannen
Copy link
Author

Reopening this issue for a related issue (let me know if you guys would rather I open a new one). So, different username formats, i.e user.name and user.name@domain.com spawns 2 different XRDP sessions. logging out of either one and using back the same format, will reuse that same corresponding session. Is there any way we can force them to use the same session, regardless of whether they omit the domain in the username or not?

@matt335672
Copy link
Member

Thanks for raising this @blaizmannen

It's a known issue with v0.9.x, although hard to find - see #1823. The It's been fixed for the upcoming v0.10.x release, where we use a UID as the user identifier rather than the user name.

@blaizmannen
Copy link
Author

Thanks for the reply @matt335672 and sharing the appropriate link. What would the timeline be on releasing v.0.10.x?

@matt335672
Copy link
Member

At the moment 0.10.x is undergoing user acceptance testing.

I can't give you exact timings, but I'd expect it to be of the order of days/weeks rather than weeks/months.

@metalefty
Copy link
Member

@blaizmannen v0.10.0-beta.1 is out! I can't promise the date but would like to make an official release in March.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants