After Update to 1.2.0-rcgit.29+dfsg-1ubuntu1.1 reconnection loop to xrdp-servers

Bug #1881799 reported by Michael Hass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
remmina (Ubuntu)
Fix Released
Critical
Marc Deslauriers

Bug Description

yesterday 1.2.0-rcgit.29+dfsg-1ubuntu1.1 replaced 2 year old "1.2.0-rcgit.29+dfsg-1ubuntu1" which works fine. But since the update, RDP connections to xrdp-servers (like from Ubuntu 18.04) end up in a reconnection loop. Except if you provide full credentials.

Revision history for this message
Michael Hass (ccmha) wrote :

Partly confirmed! Using Ubuntu 18.04 Server Package: xrdp Version: 0.9.5-2

When trying to connect without saved credentials I don't even get the login-screen from the server. It interrupts immediately and tries to reconnect.

The problem seems to live in libfreerdp2.2. Because if you don't upgrade libfreerdp with remmina, it just works fine.

Revision history for this message
Michael Hass (ccmha) wrote :

looks like with this update there was a switch from freerdp1 to freerdp2 - and remminas support for freerdp in this "jurassic version" (as I've been told) is not (yet) working.

Using the ppa from remmina as suggested fixes the problem:

sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt update
sudo apt install remmina remmina-plugin-rdp remmina-plugin-secret

Version then:
#remmina --full-version

Remmina plugin glibsecret (type=Secret) has registered but not yet initialized/activated. Initialization order is 2000.
Secret plugin glibsecret has been successfully initialized and will be your default secret plugin

org.remmina.Remmina - 1.4.5 (git n/a)

NAME TYPE DESCRIPTION PLUGIN AND LIBRARY VERSION
RDP Protokoll RDP – Remote Desktop Protokoll RDP plugin: 1.4.5 (Git n/a), Compiled with libfreerdp: 2.1.1 (n/a), Running with libfreerdp: 2.1.1 (rev n/a), H.264: No
RDPF Datei RDP – RDP‐Import/Export RDP plugin: 1.4.5 (Git n/a), Compiled with libfreerdp: 2.1.1 (n/a), Running with libfreerdp: 2.1.1 (rev n/a), H.264: No
RDPS Einstellung RDP – Einstellungen RDP plugin: 1.4.5 (Git n/a), Compiled with libfreerdp: 2.1.1 (n/a), Running with libfreerdp: 2.1.1 (rev n/a), H.264: No
SPICE Protokoll SPICE - Simple Protocol for Independent Computing Environments 1.4.5
VNC Protokoll Remmina VNC-Plugin 1.4.5
VNCI Protokoll Remmina VNC-Server Plugin 1.4.5
glibsecret Geheimnis Sicheres Speichern von Passwörtern im GNOME Schlüsselbund 1.4.5

Build configuration: HAVE_ARPA_INET_H=1 HAVE_ERRNO_H=1 HAVE_FCNTL_H=1 HAVE_NETDB_H=1 HAVE_NETINET_IN_H=1 HAVE_NETINET_TCP_H=1 HAVE_SYS_SOCKET_H=1 HAVE_SYS_UN_H=1 HAVE_TERMIOS_H=1 HAVE_UNISTD_H=1 WITH_APPINDICATOR=ON WITH_AVAHI=ON WITH_CUPS=ON WITH_FREERDP_MASTER=OFF WITH_GCRYPT=ON WITH_GETTEXT=ON WITH_ICON_CACHE=ON WITH_IPP=OFF WITH_KF5WALLET=ON WITH_LIBRARY_VERSIONING=ON WITH_LIBSECRET=ON WITH_LIBSSH=ON WITH_LIBVNCSERVER=ON WITH_MANPAGES=ON WITH_SPICE=ON WITH_SSE2=ON WITH_TRANSLATIONS=ON WITH_UPDATE_DESKTOP_DB=ON WITH_VTE=ON WITH_WWW=ON
Build type: None
CFLAGS: -g -O2 -fdebug-prefix-map=/build/remmina-Tudmrs/remmina-1.4.5+ppa202005242201.r3604445.d9a00d12~ubuntu18.04.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -g
Compiler: GNU, 7.5.0
Target architecture: x64

Changed in remmina (Ubuntu):
assignee: nobody → Marc Deslauriers (mdeslaur)
importance: Undecided → Critical
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

I have uploaded a remmina fix to the security team PPA here:

https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+packages

Once it has finished building, could someone please test it in their environment to see if it resolves the issue for them and comment back here?

I'll publish it once someone other than me has given it a try. Thanks!

Revision history for this message
Michael Hass (tux73-t) wrote :

Works like charm now!

tux73@linux ~ $ remmina --full-version
StatusNotifier/Appindicator support: not supported by desktop. libappindicator will try to fallback to GtkStatusIcon/xembed
Remmina - 1.2.0-rcgit-29 (git rcgit-29)
NAME TYPE DESCRIPTION PLUGIN AND LIBRARY VERSION
NX Protokoll NX – NX-Technologie 1.2.0-rcgit-29
RDP Protokoll RDP – Remote Desktop Protokoll RDP Plugin: 1.2.0-rcgit-29 (git rcgit-29), FreeRDP lib: 2.1.1 (git n/a)
RDPF Datei RDP – RDP-Import/-Export RDP Plugin: 1.2.0-rcgit-29 (git rcgit-29), FreeRDP lib: 2.1.1 (git n/a)
RDPS Einstellungen RDP-Einstellungen RDP Plugin: 1.2.0-rcgit-29 (git rcgit-29), FreeRDP lib: 2.1.1 (git n/a)
SFTP Protokoll SFTP – Sichere Dateiübertragung 1.2.0-rcgit-29
SSH Protokoll SSH – Secure Shell 1.2.0-rcgit-29
VNC Protokoll VNC – Virtual Network Computing 1.2.0-rcgit-29
XDMCP Protokoll XDMCP – Entfernte X-Sitzung 1.2.0-rcgit-29
glibsecret Geheimnis GNOME libsecret 1.2.0-rcgit-29

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for testing it! I'll release it as an update now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package remmina - 1.2.0-rcgit.29+dfsg-1ubuntu1.2

---------------
remmina (1.2.0-rcgit.29+dfsg-1ubuntu1.2) bionic-security; urgency=medium

  * Fix compatibility with FreeRDP 2.1.1 and xrdp. (LP: #1881799)
    - debian/patches/xrdp-compat1.patch: added xrdp friendly options to
      plugins/rdp/rdp_plugin.c.
    - debian/patches/xrdp-compat2.patch: disable glyph cache by default in
      plugins/rdp/rdp_plugin.c.
    - debian/patches/xrdp-compat3.patch: remove unneeded OrderSupport
      struct init in plugins/rdp/rdp_plugin.c.

 -- Marc Deslauriers <email address hidden> Wed, 03 Jun 2020 09:24:50 -0400

Changed in remmina (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.