Here is my observation about the installation:
I installed both guacd and guacamole web application on the same machine.
I can telnet to 4899.
I see following message on guacamole web application:
"Connected to Guacamole. Waiting for response..."
Following exception is displayed in Tomcat logs:
18:31:14.918 [http-nio-8080-exec-4] DEBUG
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Error connecting WebSocket
tunnel.
org.apache.guacamole.GuacamoleUpstreamTimeoutException: Connection to guacd
timed out.
at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:180)
~[guacamole-common-1.0.0.jar:na]
at
org.apache.guacamole.io.ReaderGuacamoleReader.readInstruction(ReaderGuacamoleReader.java:195)
~[guacamole-common-1.0.0.jar:na]
at
org.apache.guacamole.protocol.ConfiguredGuacamoleSocket.expect(ConfiguredGuacamoleSocket.java:74)
~[guacamole-common-1.0.0.jar:na]
at
org.apache.guacamole.protocol.ConfiguredGuacamoleSocket.<init>(ConfiguredGuacamoleSocket.java:136)
~[guacamole-common-1.0.0.jar:na]
at
org.apache.guacamole.net.auth.simple.SimpleConnection.connect(SimpleConnection.java:124)
~[guacamole-ext-1.0.0.jar:na]
at
org.apache.guacamole.tunnel.TunnelRequestService.createConnectedTunnel(TunnelRequestService.java:219)
~[classes/:na]
at
org.apache.guacamole.tunnel.TunnelRequestService.createTunnel(TunnelRequestService.java:393)
~[classes/:na]
at
org.apache.guacamole.tunnel.websocket.RestrictedGuacamoleWebSocketTunnelEndpoint.createTunnel(RestrictedGuacamoleWebSocketTunnelEndpoint.java:113)
~[classes/:na]
at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.onOpen(GuacamoleWebSocketTunnelEndpoint.java:200)
~[guacamole-common-1.0.0.jar:na]
at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:133)
~[tomcat-websocket.jar:8.5.45]
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:856)
~[tomcat-coyote.jar:8.5.45]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
~[tomcat-coyote.jar:8.5.45]
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
~[tomcat-coyote.jar:8.5.45]
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
~[na:na]
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
~[na:na]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
~[tomcat-util.jar:8.5.45]
at java.base/java.lang.Thread.run(Thread.java:835) ~[na:na]
Following is my user-mapping.xml
<user-mapping>
<!-- Per-user authentication and config information -->
<authorize username="user" password="pass">
<connection name="Windows">
<protocol>rdp</protocol>
<param name="hostname">localhost</param>
<param name="port">3389</param>
<param name="username">Administrator</param>
<param name="password">*********</param>
<param name="security">rdp</param>
<param name="ignore-cert">true</param>
<param name="server-layout">tr-qwerty</param>
<param name="resize-method">display-update</param>
</connection>
</authorize>
</user-mapping>
I am able to login to guacamole web application. So, user-mapping.xml is
accessible.
So, is my rdp credentials wrong?
On Sun, Sep 1, 2019 at 8:13 PM Mike Jumper <[email protected]>
wrote:
> On Sun, Sep 1, 2019 at 8:40 AM Halil Karakose <[email protected]> wrote:
>
>> Hello
>> I built guacamole-server. I am able to run guacd and it accepts
>> connections from 4899.
>>
>
> The default port is 4822.
>
> Although I have freerdp dependencies, I am not sure rdp support is
>> enabled. How can I verify, rdp support is enabled in my local environment?
>>
>
> The configure script would have logged a summary listing this at the end
> of its output, just before you ran make:
>
>
> http://guacamole.apache.org/doc/gug/installing-guacamole.html#guacamole-server-build-process
>
> If you don't recall whether it said RDP support was being built, the most
> direct way to check would be to simply try establishing an RDP connection
> using Guacacamole. If RDP support is not installed, there will be a message
> stating exactly this within the guacd logs.
>
> Assuming that the libraries built by guacamole-server were installed to
> /usr/local/lib, you can also check whether support for a protocol is
> present by looking for the existence of the corresponding
> "libguac-client-*.so" library. For RDP, the library would be
> libguac-client-rdp.so.
>
> - Mike
>
>