Hi,

I've been able to build our authentication extension which returns a group
assigned to a set of potential endpoints (all windows RDP servers), and
these are allocated based on availability as people log in. But now we'd
like to do some housekeeping on those target machines as people connect,
and I'm struggling to get the eventual target host that is returned as part
of that flow.

I'd hoped to use the TunnelConnectEvent (and TunnelCloseEvent) using
something like:

    public void handleEvent(Object event) throws GuacamoleException {

        if (event instanceof TunnelConnectEvent) {
            TunnelConnectEvent tce = (TunnelConnectEvent) event;
            AuthenticatedUser user = tce.getAuthenticatedUser();
            GuacamoleTunnel tunnel = tce.getTunnel();
            GuacamoleSocket socket = tunnel.getSocket();

but at that point, the socket is a FailoverGuacamoleSocket which doesn't
appear to support getting it's configuration. Is there some other way to
get the hostname from that point?

For reference, I'd been following
https://github.com/atcomputing/guacamole-trigger and that extension
specifically doesn't support non-configured sockets.

Many thanks,

David

PS—I'm aware this is quite a long way from 'user', but I wasn't sure if
this kind of question is appropriate for dev@ Is there a better place for
this?

Reply via email to