mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
* Testing guacamole with parameters (we need to pass in the url from where to get credentials, etc...)
This commit is contained in:
parent
7353155158
commit
9afbbc3efb
@ -17,12 +17,18 @@ public class TunnelServlet
|
||||
@Override
|
||||
protected GuacamoleTunnel doConnect(HttpServletRequest request)
|
||||
throws GuacamoleException {
|
||||
|
||||
String data = request.getParameter("data");
|
||||
if( data == null )
|
||||
return null;
|
||||
|
||||
System.out.println("Valor: " + data);
|
||||
|
||||
// Create our configuration
|
||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||
config.setProtocol("rdp");
|
||||
config.setParameter("hostname", "dc.ad.dkmon.com");
|
||||
config.setParameter("username", "administrador");
|
||||
config.setParameter("hostname", "w7adolfo");
|
||||
config.setParameter("username", "admin");
|
||||
config.setParameter("password", "temporal");
|
||||
|
||||
// Connect to guacd - everything is hard-coded here.
|
||||
|
@ -6,11 +6,12 @@
|
||||
<title>Simple RDP Tunneling Test</title>
|
||||
|
||||
<!-- Client core scripts -->
|
||||
<script type="text/javascript" src="guacamole-common-js/keyboard.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/mouse.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/layer.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/tunnel.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/guacamole.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/audio.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/keyboard.js"></script>
|
||||
<script type="text/javascript" src="guacamole-common-js/mouse.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
@ -39,7 +40,7 @@
|
||||
};
|
||||
|
||||
// Connect
|
||||
guac.connect();
|
||||
guac.connect("data=1");
|
||||
|
||||
// Disconnect on close
|
||||
window.onunload = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user