You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by Jonathan Haché-Deschênes <JH...@infoplus.ca> on 2017/10/13 19:50:20 UTC

script before & after connecting

Is there a way to execute script on "guacamole server" before&after connecting a specific RDP, VNC, TELNET, SSH connexion.
We want to be able to execute script before connecting to session.

-          Start connexion (RDP, VPN, TELNET, SSH)
And be able to execute script when closing session.
It could be a lot of thing.

-          In our case we would like to start a openvpn connexion before connecting & close vpn when session close.



[cid:GIP.jpg@01CB24D2.6FB31310]<http://www.infoplus.ca/>
________________________________
1240 Boul. St-Joseph, Drummondville, Qc  Canada,   J2C 2E1
Tel. : 819-478-0994    Fax. : 819-478-7619    http://www.infoplus.ca<http://www.infoplus.ca/>

Solutions informatiques                                   Notre savoir-faire au service
Communications unifiées                                de vos affaires !

P Avant d'imprimer, pensez à l'environnement<http://www.materre.ca/>
Cet envoi peut contenir des renseignements confidentiels. Il est à l'usage exclusif de la personne identifiée comme destinataire.  Si vous prenez connaissance de la présente communication sans être le destinataire, vous êtes par la présente avisée que toute diffusion, distribution ou production de la présente communication est strictement interdite. Le cas échéant, veuillez nous aviser immédiatement.


Re: script before & after connecting

Posted by Mike Jumper <mi...@guac-dev.org>.
2017-10-13 12:50 GMT-07:00 Jonathan Haché-Deschênes <
JHache-Deschenes@infoplus.ca>:

> Is there a way to execute script on “guacamole server” before&after
> connecting a specific RDP, VNC, TELNET, SSH connexion.
>
> We want to be able to execute script before connecting to session.
>
> -          Start connexion (RDP, VPN, TELNET, SSH)
>
> And be able to execute script when closing session.
>
> It could be a lot of thing.
>
> -          In our case we would like to start a openvpn connexion before
> connecting & close vpn when session close.
>
>
To provide connections with additional behavior prior to establishing the
connection and after the connection is closed, you'll want to write an
extension. You can rely on existing extensions to handle authentication,
while your extension serves only to define the connections available to any
particular user. As it's the responsibility of the extension defining the
connection to establish the actual TCP connection to guacd, you will have
full control of exactly what happens prior to connecting, as well as what
cleanup occurs when the connection is closed.

- Mike