I've built a patched version in a PPA:

https://launchpad.net/~jasimioni/+archive/ubuntu/xrdp-lp1960174

The diff is available here:

https://launchpadlibrarian.net/781065312/xrdp_0.9.17-2ubuntu2_0.9.17-2ubuntu3.diff.gz

The patched version address the issue.

** Description changed:

- After updating to development branch of Ubuntu Jammy the xrdp package
- was updated from version 0.9.15 to 0.9.17 and I started getting the
- following error in xrdp log:
+ SRU:
+ ----
+ 
+ [ Impact ]
+ 
+ Xvnc sessions are unusable in Jammy
+ 
+ When Debian took 0.9.17 from upstream, one file was missing:
+ 
+ vnc/rfb.c
+ 
+ A merge request [1] was proposed in Debian, but newer versions were not
+ affected, and it was closed.
+ 
+ This package was introduced upstream in fe28af9 [2] and a function name
+ error was fixed in ce27e2 [3].
+ 
+ The proposed Debian patch addresses both issues.
+ 
+ [1] https://salsa.debian.org/debian-remote-team/xrdp/-/merge_requests/5
+ [2] 
https://github.com/neutrinolabs/xrdp/commit/fe28af93e888e2617d310f4bded7ae468095124c
+ [3] 
https://github.com/neutrinolabs/xrdp/commit/ce27e25dcc2d9a647d41e3609211dca2fe4fb136
+ 
+ [ Test Plan ]
+ 
+ Install and start the xrdp daemon:
+ 
+ sudo apt install xrdp -y
+ sudo systemctl start xrdp
+ 
+ Use some RDP client (remmina for example) and connect to the system
+ 
+ In the Session field, select Xvnc, and provide the user credentials
+ 
+ Inspect /var/log/syslog in the server, and the log message will be there
+ 
+ sudo grep libvnc /var/log/syslog
+ 
+ Mar  9 23:41:01 localhost xrdp[49375]: [ERROR] xrdp_wm_log_msg: error
+ loading libvnc.so specified in xrdp.ini, please add a valid entry like
+ lib=libxrdp-vnc.so or similar
+ 
+ The patched package will not display this error message. Instead, the
+ Xvnc session initialization logs will appear:
+ 
+ Mar 10 15:30:40 nvidia-xrdp xrdp-sesman[691]: [INFO ] starting Xvnc session...
+ Mar 10 15:30:40 nvidia-xrdp xrdp[1092]: [INFO ] loaded module 'libvnc.so' ok, 
interface size 4072, version 4
+ Mar 10 15:30:40 nvidia-xrdp xrdp[1092]: [INFO ] VNC started connecting
+ 
+ 
+ [ Where problems could occur ]
+ 
+ This should not interfere with the working features, but since it fixes
+ the issue with Xvnc, users that didn't expect this to be enabled would
+ need to specifically disable it.
+ 
+ 
+ Original description:
+ ---------------------
+ After updating to development branch of Ubuntu Jammy the xrdp package was 
updated from version 0.9.15 to 0.9.17 and I started getting the following error 
in xrdp log:
  
  [ERROR] xrdp_wm_log_msg: error loading libvnc.so specified in xrdp.ini,
  please add a valid entry like lib=libxrdp-vnc.so or similar
  
  Looks like it is connected with this issue:
  https://github.com/neutrinolabs/xrdp/issues/1986
  
  which is fixed in xrdp 0.9.18:
  https://github.com/neutrinolabs/xrdp/pull/1989
  https://github.com/neutrinolabs/xrdp/releases/tag/v0.9.18

** Description changed:

  SRU:
  ----
  
  [ Impact ]
  
- Xvnc sessions are unusable in Jammy
+ Xvnc sessions are unusable in Jammy when using the xrdp server
  
  When Debian took 0.9.17 from upstream, one file was missing:
  
  vnc/rfb.c
  
  A merge request [1] was proposed in Debian, but newer versions were not
  affected, and it was closed.
  
  This package was introduced upstream in fe28af9 [2] and a function name
  error was fixed in ce27e2 [3].
  
  The proposed Debian patch addresses both issues.
  
  [1] https://salsa.debian.org/debian-remote-team/xrdp/-/merge_requests/5
  [2] 
https://github.com/neutrinolabs/xrdp/commit/fe28af93e888e2617d310f4bded7ae468095124c
  [3] 
https://github.com/neutrinolabs/xrdp/commit/ce27e25dcc2d9a647d41e3609211dca2fe4fb136
  
  [ Test Plan ]
  
  Install and start the xrdp daemon:
  
  sudo apt install xrdp -y
  sudo systemctl start xrdp
  
  Use some RDP client (remmina for example) and connect to the system
  
  In the Session field, select Xvnc, and provide the user credentials
  
  Inspect /var/log/syslog in the server, and the log message will be there
  
  sudo grep libvnc /var/log/syslog
  
  Mar  9 23:41:01 localhost xrdp[49375]: [ERROR] xrdp_wm_log_msg: error
  loading libvnc.so specified in xrdp.ini, please add a valid entry like
  lib=libxrdp-vnc.so or similar
  
  The patched package will not display this error message. Instead, the
  Xvnc session initialization logs will appear:
  
  Mar 10 15:30:40 nvidia-xrdp xrdp-sesman[691]: [INFO ] starting Xvnc session...
  Mar 10 15:30:40 nvidia-xrdp xrdp[1092]: [INFO ] loaded module 'libvnc.so' ok, 
interface size 4072, version 4
  Mar 10 15:30:40 nvidia-xrdp xrdp[1092]: [INFO ] VNC started connecting
  
- 
  [ Where problems could occur ]
  
  This should not interfere with the working features, but since it fixes
  the issue with Xvnc, users that didn't expect this to be enabled would
  need to specifically disable it.
- 
  
  Original description:
  ---------------------
  After updating to development branch of Ubuntu Jammy the xrdp package was 
updated from version 0.9.15 to 0.9.17 and I started getting the following error 
in xrdp log:
  
  [ERROR] xrdp_wm_log_msg: error loading libvnc.so specified in xrdp.ini,
  please add a valid entry like lib=libxrdp-vnc.so or similar
  
  Looks like it is connected with this issue:
  https://github.com/neutrinolabs/xrdp/issues/1986
  
  which is fixed in xrdp 0.9.18:
  https://github.com/neutrinolabs/xrdp/pull/1989
  https://github.com/neutrinolabs/xrdp/releases/tag/v0.9.18

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1960174

Title:
  Getting error during login attempt: "error loading libvnc.so specified
  in xrdp.ini"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/1960174/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to