Re: Getting access to connection information from balancing groups

2024-09-13 Thread Nick Couchman
On Tue, Aug 20, 2024 at 5:52 AM David Lomas wrote: > Hi Nick & Mike, > > So, some progress, and I'm also a bit confused by what I had to do to get > this to work. This is my custom connect() method, and the various calls to > get configuration information: > > @Override > public GuacamoleTunnel c

Re: Getting access to connection information from balancing groups

2024-08-20 Thread David Lomas
Hi Nick & Mike, So, some progress, and I'm also a bit confused by what I had to do to get this to work. This is my custom connect() method, and the various calls to get configuration information: @Override public GuacamoleTunnel connect(GuacamoleClientInformation info, Map tokens) throws Guacamol

Re: Getting access to connection information from balancing groups

2024-08-11 Thread David Lomas
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 t

Re: Getting access to connection information from balancing groups

2024-08-11 Thread Nick Couchman
On Fri, Aug 9, 2024 at 4:58 PM Michael Jumper 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: > > >

Re: Getting access to connection information from balancing groups

2024-08-09 Thread Michael Jumper
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/guacam

Re: Getting access to connection information from balancing groups

2024-08-09 Thread David Lomas
Thanks Nick—getPrivileged() solved the problem in our override for UserContext. I still wasn't able to get that to work via the listener, which I thought might be a simpler solution, but never mind that for now. What I can get to now is the ActiveConnection identifier, which appears to be just an

Re: Getting access to connection information from balancing groups

2024-08-01 Thread Nick Couchman
On Thu, Aug 1, 2024 at 4:04 PM David Lomas wrote: > Thanks Nick. When I imported the jdbc jar as a dependency, everything > compiled, but then at runtime if complained that the objects were not the > same (I can't remember exactly what the error was now, and have removed all > the jars and depend

Re: Getting access to connection information from balancing groups

2024-08-01 Thread David Lomas
Thanks Nick. When I imported the jdbc jar as a dependency, everything compiled, but then at runtime if complained that the objects were not the same (I can't remember exactly what the error was now, and have removed all the jars and dependencies, thinking it wasn't going to help us). I actually sp

Re: Getting access to connection information from balancing groups

2024-08-01 Thread Nick Couchman
On Thu, Aug 1, 2024 at 7:10 AM David Lomas wrote: > Hi Nick, > > I see from the dev group there's a lot of focus on the 1.6.0 release right > now, but just wanted to post my progress here, and if you or anyone has > time to confirm, that will at least save me the effort of continuing down a > bli

Re: Getting access to connection information from balancing groups

2024-08-01 Thread David Lomas
Hi Nick, I see from the dev group there's a lot of focus on the 1.6.0 release right now, but just wanted to post my progress here, and if you or anyone has time to confirm, that will at least save me the effort of continuing down a blind alley. I've been able to create an auth extension which pro

Re: Getting access to connection information from balancing groups

2024-07-15 Thread David Lomas
Thanks Nick—shame it's not possible to get that information from the listener... I tried looking at the code you mentioned around DelegatingConnection and DelegatingConnectionGroup but I'm not sure if that's still within the confines of an authentication plugin or a more significant change to the

Re: Getting access to connection information from balancing groups

2024-07-05 Thread Nick Couchman
On Thu, Jul 4, 2024 at 11:29 AM David Lomas wrote: > 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

Getting access to connection information from balancing groups

2024-07-04 Thread David Lomas
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, a