diff --git a/guacamole-tunnel/src/main/java/org/openuds/guacamole/TunnelServlet.java b/guacamole-tunnel/src/main/java/org/openuds/guacamole/TunnelServlet.java index 2b4a51471..c65f91038 100644 --- a/guacamole-tunnel/src/main/java/org/openuds/guacamole/TunnelServlet.java +++ b/guacamole-tunnel/src/main/java/org/openuds/guacamole/TunnelServlet.java @@ -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. diff --git a/guacamole-tunnel/src/main/webapp/index.html b/guacamole-tunnel/src/main/webapp/index.html index 34e8c50e2..c56b5dd9b 100644 --- a/guacamole-tunnel/src/main/webapp/index.html +++ b/guacamole-tunnel/src/main/webapp/index.html @@ -6,11 +6,12 @@