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