[ 
https://issues.apache.org/jira/browse/GUACAMOLE-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239721#comment-16239721
 ] 

Michael Jumper commented on GUACAMOLE-430:
------------------------------------------

If you wish to perform tasks prior to establishing connections, or after 
connections are established, you will need to write an extension. By writing a 
Guacamole extension, you can control the manner in which Guacamole connections 
are derived, as well as what happens when each connection starts, stops, etc. 
There is no need to require your users to manually run an SSH connection, nor 
for mainline Guacamole to provide per-connection pre/post scripts.

Tasks can be performed prior to establishing a connection via your 
implementation of the 
[{{Connection.connect()}}|http://guacamole.incubator.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/Connectable.html#connect-org.apache.guacamole.protocol.GuacamoleClientInformation-]
 function, and tasks can be performed upon connection closure by overriding the 
[{{close()}} function of the returned 
{{GuacamoleTunnel}}|http://guacamole.incubator.apache.org/doc/guacamole-common/org/apache/guacamole/net/GuacamoleTunnel.html#close--].

Alternatively, support for event listeners was recently re-added to the 
extension API (see GUACAMOLE-364), allowing you to hook into connect/disconnect 
for connections provided by other extensions.

> Add pre/post connection scripts/hooks to connections
> ----------------------------------------------------
>
>                 Key: GUACAMOLE-430
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-430
>             Project: Guacamole
>          Issue Type: Wish
>          Components: guacamole, guacamole-auth-ldap
>         Environment: Users and connections are stored in an Openldap server.
>            Reporter: Fanie Riekert
>            Priority: Minor
>
> We use Apache Guacamole as a front-end to vnc desktops run on an HPC cluster; 
> this works well. One enhancement that would simplify on-boarding new users 
> would be to have Guacamole run pre/post connection scripts. In our use case a 
> preconnection script could be used to log into the cluster, as the user 
> themselves, and submit the torque job to start the vnc server before 
> attempting to connect to the vnc server. At this time users must use an ssh 
> connection to  run the script before proceeding to the vnc connection. 
> Ideally the scripts/commands could be added to the connection object as 
> connection parameters. Thanks



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to