Good morning,
I have built a Guacamole server on Ubuntu 16.04 LTS (pre prod) and is currently
running successfully and the web client interface is working fine. I am looking
to integrate this application into some of our corporate applications which are
mainly built on multiple ASP.net <http://asp.net/> backend with various front
end including Angular and React.
My aims is to to utilise the Javascript library and implement into our
frontends, I would like to be able to configure the frontend to connect to one
of the connections on the server. I would request the server details from one
of API for the address and username and passwords?
For example I have three servers for test purposes, Server 1, 2, and 3. They
will have different usernames passwords and Ip addresses. I will like to be
able to create a tunnel into one of the machine depending on what data I
request from our APIs?
I have concat all the Js and minified. - guacamole.min.js and have the .css file
The javascript I am implementing is :
<!-- Init -->
<script type="text/javascript">
/* <![CDATA[ */
// Get display div from document
var display = document.getElementById("display");
// Instantiate client, using an HTTP tunnel for communications.
var guac = new Guacamole.Client(
new Guacamole.HTTPTunnel("https://10.0.1.102:8443/guacamole",
true)
);
// Add client to display div
display.appendChild(guac.getDisplay().getElement());
// Error handler
guac.onerror = function(error) {
alert(error);
};
// Connect
guac.connect();
// Disconnect on close
window.onunload = function() {
guac.disconnect();
}
// Mouse
var mouse = new Guacamole.Mouse(guac.getDisplay().getElement());
mouse.onmousedown =
mouse.onmouseup =
mouse.onmousemove = function(mouseState) {
guac.sendMouseState(mouseState);
};
// Keyboard
var keyboard = new Guacamole.Keyboard(document);
keyboard.onkeydown = function (keysym) {
guac.sendKeyEvent(1, keysym);
};
keyboard.onkeyup = function (keysym) {
guac.sendKeyEvent(0, keysym);
};
/* ]]> */
</script>
I have tried various parameters into the tunnel but I cannot find any
documentation and not even sure what I am trying to do is achievable?
My questions are:
Is it possible to connect to a designated machine using the tunnel? Maybe
another library?
Can I pass username password into connection?
Do I have setup a user within the client (server) and setup the machines
connections and then connect via them?
Apologies for all the questions, I just trying to understand the feasibility of
utilising Guacamole in our existing applications?
Many thanks for your time reading over my email and look forward to your reply.
Lastly I would like to say fantastic job on this implementation and very
impressed with the network utilisation of the application.
Craig Jones - [email protected] <mailto:[email protected]>