On Tue, Feb 25, 2025 at 10:36 AM Benjamin Lanfranca <
benjamin.lanfra...@blue-ortho.com> wrote:

> Hello,
>
>
>
> Anyone got an idea ?
>
>
>
> Cordialement,
>
> *Benjamin Lanfranca*
>
> System & Network Administrator
>
>
>
> *Blue Ortho*, *an Exactech company*
>
> 22 Chemin du Vieux Chêne | 38240 Meylan | France
>
>
> Office: +33 (0)4 58 00 35 25
> benjamin.lanfra...@blue-ortho.com | www.blue-ortho.com
>
>
>
> *De :* Benjamin Lanfranca
> *Envoyé :* jeudi 6 février 2025 14:00
> *À :* user@guacamole.apache.org
> *Objet :* Modify the connection name on tomcat logs
>
>
>
> Hello,
>
>
>
> I would like to modify the connection name when I look up at the tomcat
> log  :
>
> [2025-02-06 13:30:36] [info] 13:30:36.404 [http-nio-8080-exec-7] INFO
> o.a.g.tunnel.TunnelRequestService - User t...@tld.com
> <admin....@blue-ortho.com> connected to connection "1".
>
> [2025-02-06 13:31:08] [info] 13:31:08.256 [http-nio-8080-exec-3] INFO
> o.a.g.tunnel.TunnelRequestService - User t...@tld.com disconnected from
> connection "1". Duration: 31849 milliseconds
>
> [2025-02-06 13:57:28] [info] 13:57:28.642 [http-nio-8080-exec-9] INFO
> o.a.g.tunnel.TunnelRequestService - User t...@tld.com connected to
> connection "3".
>
> [2025-02-06 13:58:00] [info] 13:58:00.357 [http-nio-8080-exec-9] INFO
> o.a.g.tunnel.TunnelRequestService - User t...@tld.com disconnected from
> connection "3". Duration: 31714 milliseconds
>
>
>
> To get the server’s name I configured instead of “1” “3”. Is that possible
> and if so, how do I manage to do it 😊 ?
>

Possible? Yes. Easily doable - no. This particular line gets generated in
the following location:

https://github.com/apache/guacamole-client/blob/36dedc935f923fab1223e5514831605890644325/guacamole/src/main/java/org/apache/guacamole/tunnel/TunnelRequestService.java#L215-L219

The main challenge would be that the name of the connection isn't actually
passed through to that method (createConnectedTunnel), so you'd actually
have to probably go a few steps up from that in order to get any sort of a
connection name to pass through - the tunnel code, there, doesn't really
concern itself at all with the name of the connection.
createConnectedTunnel is called further down in the file by createTunnel,
which receives a TunnelRequest. Unfortunately the TunnelRequest doesn't
really get the name of the connection, either - it gets the identifier ("1"
or "3" in your output above), and access to some parameters associated with
establishing the tunnel (the name of the connection is not among those).

Basically, there'd need to be some sort of minor change to every place the
tunnel request code is called in order to have the name be passed from
whatever part of the code actually is concerned with a connection name
(generally the authentication extension) down to the tunnel.

So, it's completely possible, but not by the flip of a configuration switch
or anything like that.

-Nick

>

Reply via email to