Thanks Nick—that is correct. We hadn’t had any joy with the getConfiguration() method previously, but I haven’t tried it yet with the privileged user context. However, I suspect you know more about how that balancing connection group works and maybe we still won’t get what we need.
It seems like the tunnel or socket ought to be able to tell us what they are connected too but they don’t have any methods for that either it seems. On Sun, 11 Aug 2024 at 19:27, Nick Couchman <vn...@apache.org> wrote: > On Fri, Aug 9, 2024 at 4:58 PM Michael Jumper <mjum...@apache.org> wrote: > >> You can pull connection configuration information, including the value >> of the "hostname" parameter, by obtaining a privileged UserContext, >> retrieving the relevant Connection object, and invoking >> getConfiguration() on that object: >> >> >> https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/Connection.html#getConfiguration() >> >> > Ah, but the issue is a bit more complex than this. As I understand what > David is trying to do, he has a Connection Group fo type "Balancing", and, > within that Connection Group, several tens/dozens/hundreds of connections. > Either just before or just after a connection is used, or perhaps both, > he'd like to run a script or API or some set of tasks against the > connection that gets used. Since the connect() method that gets call is the > one for the Connection Group (which then goes and determines the actual > connection to use and connects the user), the challenge has been how to get > access to the connection information *of the connection that ends up being > chosen/used*, so that the code can be run against that specific connection > and not the connection group. Specifically, David would like to retrieve > the hostname of the connection item that is selected. > > -Nick >