You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Neil Canham <ne...@gmail.com> on 2018/04/04 17:25:53 UTC

Custom page to show shared connection Guacamole

 I've been working through understanding how Guacamole hangs together.
Having tried out the connection sharing (using and RDP connection) via the
out-of-the-box GUI, I have proceeded to extending the example html page and
servlet example in the manual to create my own customised view.  All
working well with VNC - so the obvious next question is how can I extend
the example to show a shared RDP connection, assuming that I've got the
link?

What I see from the example and documentation is that the javascript
Client() requires a tunnel servlet to connect to, identified by URL. For a
shared connection, how would I obtain the URL of the relevant tunnel?  Or
is that the wrong approach?  I'm not quite sure where to start so any
pointers appreciated.

Cheers

Re: Custom page to show shared connection Guacamole

Posted by NeilC <ne...@gmail.com>.
Ah - excellent - thanks Mike, I'll give that a look



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Custom page to show shared connection Guacamole

Posted by NeilC <ne...@gmail.com>.
Just to round this out in case others try to do the same thing:

1. Create the initial connection as in the example in the manual
2. Call getConnectionID() on the ConfiguredGuacamoleSocket (as Mike said)
3. Store connectionID string somewhere
4. On connect next time, create new GuacamoleConfiguration() (empty)
5. Call setConnectionID() on the new config, passing the previously stored
connectionID
6. Use the resulting config with the original guacd host/port to create a
new ConfiguredGuacamoleSocket
7. Use that as before to create the tunnel

Voila - a shared RDP connection

Thanks again Mike



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Custom page to show shared connection Guacamole

Posted by Mike Jumper <mi...@guac-dev.org>.
On Wed, Apr 4, 2018, 10:26 Neil Canham <ne...@gmail.com> wrote:

> I've been working through understanding how Guacamole hangs together.
> Having tried out the connection sharing (using and RDP connection) via the
> out-of-the-box GUI, I have proceeded to extending the example html page and
> servlet example in the manual to create my own customised view.  All
> working well with VNC - so the obvious next question is how can I extend
> the example to show a shared RDP connection, assuming that I've got the
> link?
>

Just as it's your code that determines the details of the connection when
it's initially established, it's also your code that dictates how/if
connections are shared, and even if a concept like "share links" are
involved.

The ConfiguredGuacamoleSocket class provides a function called
getConnectionID() which returns the unique ID of the connection generated
by guacd at the time it was established. If you supply this value to
another instance of ConfiguredGuacamoleSocket that uses the same instance
of guacd, the resulting connection will share the original.

How you store/retrieve/track that ID, and when you choose to use such an ID
instead of creating a new connection, are entirely up to you.

- Mike