Oh my you actually implemented what i was going to build (time restrictions)! How awesome!
Steve On Fri, Sep 1, 2023 at 10:24 AM Nick Couchman <[email protected]> wrote: > On Fri, Sep 1, 2023 at 9:33 AM Steven Barnhart <[email protected]> > wrote: > > > > Hello, > > > > I am interested in building an event listener that would depend on some > > settings/parameters that would be specific to the connection being > > connected to. Is it possible to add custom settings or extend in some way > > for connections? > > It depends on what you're trying to do, but it is likely possible > through the addition of connection attributes. In Guacamole, there > are, in general two types of settings that apply to connections: > * Connection Parameters: These are settings for the connections that > ultimately are passed on to guacd to tell guacd how to perform the > connection. Things like the destination hostname, port, authentication > information, etc. > * Connection Attributes: These are settings for the connections that > are generally considered internal to the client and not necessarily > expected to be passed on to guacd, although some might. Things like > concurrency limits and load balancing are examples of this. > > Adding connection parameters would be a bit more involved, because > these are expected to impact how guacd performs the connections, which > means that you have to change both the Guacamole Client side and the > Guacamole Server (guacd) side. Attributes are easier since they're > generally limited to the client, but there haven't been very many > extensions that implement additional attributes for connections. > However, I happen to have one in review status right now where I've > added fields for limiting things like when connections can be used and > from what IPs: > > https://github.com/apache/guacamole-client/pull/830 > > You're welcome to have a look at that and see if it makes any sense, > or post back any questions if things don't make sense. You might > clarify what it is you're wanting to implement and we may be able to > better help you. > > -Nick >
