From unknown Tue May 19 06:58:18 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#1426: [pulseaudio]: Denied access to client with invalid authentication data
Reply-To: Walid MOGHRABI <w.moghrabi@travaux.com>, 1426@bugs.x2go.org
Resent-From: Walid MOGHRABI <w.moghrabi@travaux.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: owner@bugs.x2go.org
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 11 Dec 2019 18:20:02 +0000
Resent-Message-ID: <handler.1426.B.157608833226297@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1426
X-X2Go-PR-Package: x2gothinclient-displaymanager
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.157608833226297
          (code B); Wed, 11 Dec 2019 18:20:02 +0000
Received: (at submit) by bugs.x2go.org; 11 Dec 2019 18:18:52 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	DKIM_VALID,HTML_MESSAGE,SPF_HELO_NONE autolearn=ham autolearn_force=no
	version=3.4.2
Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 21C3E5DAEA
	for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 19:18:45 +0100 (CET)
Received: by mail-ot1-x344.google.com with SMTP id 59so676304otp.12
        for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 10:18:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=travaux-com.20150623.gappssmtp.com; s=20150623;
        h=mime-version:from:date:message-id:subject:to;
        bh=mpaarg2Aeciqhv/EzlkqoJvVeIFXGTY0FCAJluLC37o=;
        b=i8wD4hQvEGsYEI0JgX1SWJHnGv7IhlAL4M22W8NwdEvyIUYvl9Yswv3QBAgTRWAx4F
         GRs0dX2lcyNVoSYKjxsmdjBQlFYIUuv7AjkFSvkIHR0Ek7rbzEDtCLEFVjBmq7wM2/ms
         SoyBa6yhPQIhz/enlsAEUF4sxOL1ZgtYK8iBvKvC7NWLwOopT868VTXxM3tRG5CwicD1
         +HRQLNlUDA6J2fHzMijI0ugHAfTtsZR+YMwxMCLneWidBMYgbmpIeSU5o/aV/tpWmmnf
         SjxsqsdA6G6J+thbPrKQgkn798Qs94fHPAZSDnOudRyR76kn3pKG1vE8oCDycZDcInNe
         77Ww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=mpaarg2Aeciqhv/EzlkqoJvVeIFXGTY0FCAJluLC37o=;
        b=Ytt6Ia1cw/k2/yapgzH4isLDfzVeZ0JodV/QMXucI+7QJylogByOfI7YyDdBY5YlPH
         LvV37sO8xqtwQX9wWQG3DVzVAGMuvFvviqeJeuUjwNPeiOoNoYd49hsyvtalQg65vjOr
         gHh0DLmoYff7l/+MHMPHevkgK50FlvMFVRUnlMmua7H3mnXXGZz1HcR7pUvBUylkUUL7
         CTWX7Z+piDrnLLBIU2p72bLThdTHUskP1jKgffdQU6ZYsJ97BlwYoh+LpixQOy5GvTSL
         AtCHPq9FAMCTPF1KHu87zDgDZKL8HXnUaV4JU1ii16aFSTjZ8g6jmY5gbHXakA/ctiGm
         KyCw==
X-Gm-Message-State: APjAAAVdzeFmjVQXdOfHiQ3VZqpRnSSdo0xKcMYgG+SiK5c9fQjfGrno
	To+24s1tkLI9fogJsyJa838TEK4dQgnnE5BnHLIIzzLDWCZeFA==
X-Google-Smtp-Source: APXvYqyLHzAovqrK5YnlaDo8n92QUWHnBYVnFzPsG+CLG83JL1Bvq1Wzh8m29AvmyRCU+tLQrncbkU6Ijz7pvv6SSwY=
X-Received: by 2002:a05:6830:22ee:: with SMTP id t14mr3167101otc.236.1576088323258;
 Wed, 11 Dec 2019 10:18:43 -0800 (PST)
MIME-Version: 1.0
From: Walid MOGHRABI <w.moghrabi@travaux.com>
Date: Wed, 11 Dec 2019 19:18:32 +0100
Message-ID: <CAEsAe8Oq2cySDsOe6OnCOcZcAjiqkz5++LsPQm2RTYCUeYo=hQ@mail.gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary="000000000000a52229059971a830"

--000000000000a52229059971a830
Content-Type: text/plain; charset="UTF-8"

package: x2gothinclient-displaymanager
priority: bug

Hi,
Since very recent pulseaudio updates on Ubuntu 18.04, when opening a new
X2Go session in thinclient mode, I get no sound inside the session.
I'm using XFCE as my desktop on a Ubuntu 16.04 x2go server setup and in
pavucontrol, it says that it can't contact the pulseaudio server, retrying
every 5s.

I managed to find the solution to this issue, this is the pulseaudio server
that is spawned by the /usr/sbin/x2gothinclientd script.
Apparently, we need now to explicitly authorize anonymous connections to
the server and thus, here is a quick patch I did to make things work again
as before.

This is a very simple one, I hope you apply it soon so that I can remove
that patch from my build process.

Cheers !

--- /usr/sbin/x2gothinclientd
+++ /usr/sbin/x2gothinclientd
@@ -182,7 +182,7 @@
  if ( !check_pulse() )
  {
  system("su - x2gothinclient -c \"DISPLAY=:0 pulseaudio -D " .
-       "-L 'module-native-protocol-tcp port=4713 ' " .
+       "-L 'module-native-protocol-tcp port=4713 auth-anonymous=1' " .
        "--exit-idle-time=65535\"");
  }

--000000000000a52229059971a830
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">package: x2gothinclient-displaymanager<div>priority: bug</=
div><div><br></div><div>Hi,</div><div>Since very recent pulseaudio updates =
on Ubuntu 18.04, when opening a new X2Go session in thinclient=C2=A0mode, I=
 get no sound inside the session.</div><div>I&#39;m using XFCE as my deskto=
p on a Ubuntu 16.04 x2go server setup and in pavucontrol, it says that it c=
an&#39;t contact the pulseaudio server, retrying every 5s.</div><div><br></=
div><div>I managed to find the solution to this issue, this is the pulseaud=
io server that is spawned by the /usr/sbin/x2gothinclientd=C2=A0script.</di=
v><div>Apparently, we need now to explicitly authorize anonymous connection=
s to the server and thus, here is a quick patch I did to make things work a=
gain as before.</div><div><br></div><div>This is a very simple one, I hope =
you apply it soon so that I can remove that patch from my build process.</d=
iv><div><br></div><div>Cheers !</div><div><br></div><div>--- /usr/sbin/x2go=
thinclientd<br>+++ /usr/sbin/x2gothinclientd<br>@@ -182,7 +182,7 @@<br>=C2=
=A0		if ( !check_pulse() )<br>=C2=A0		{<br>=C2=A0			system(&quot;su - x2got=
hinclient -c \&quot;DISPLAY=3D:0 pulseaudio -D &quot; .<br>-			 =C2=A0 =C2=
=A0 =C2=A0 &quot;-L &#39;module-native-protocol-tcp port=3D4713 &#39; &quot=
; .<br>+			 =C2=A0 =C2=A0 =C2=A0 &quot;-L &#39;module-native-protocol-tcp p=
ort=3D4713 auth-anonymous=3D1&#39; &quot; .<br>=C2=A0			 =C2=A0 =C2=A0 =C2=
=A0 &quot;--exit-idle-time=3D65535\&quot;&quot;);<br>=C2=A0		}<br>=C2=A0<br=
></div></div>

--000000000000a52229059971a830--
