You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Halil Karakose <ka...@gmail.com> on 2019/09/01 15:40:39 UTC

guacd rdp support

Hello
I built guacamole-server. I am able to run guacd and it accepts connections
from 4899.

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?

Thanks.

Re: guacd rdp support

Posted by ivanmarcus <iv...@yahoo.com.INVALID>.
Guacd may be logging to syslog, so check that out when attempting a 
connect. Here's an example of a successful connection:

Sep  2 07:19:05 guac-server guacd[1117]: Creating new client for 
protocol "rdp"
Sep  2 07:19:05 guac-server guacd[1117]: Connection ID is 
"$a2e9c5a9-01ce-4176-869f-2dd6f4d622c2"
Sep  2 07:19:05 guac-server guacd[13269]: No security mode specified. 
Defaulting to RDP.
Sep  2 07:19:05 guac-server guacd[13269]: Resize method: none
Sep  2 07:19:05 guac-server guacd[13269]: User 
"@d590bf5d-58f2-45cb-b90a-b3f96e95f947" joined connection 
"$a2e9c5a9-01ce-4176-869f-2dd6f4d622c2" (1 users now present)
Sep  2 07:19:05 guac-server guacd[13269]: Loading keymap "base"
Sep  2 07:19:05 guac-server guacd[13269]: Loading keymap "en-us-qwerty"
Sep  2 07:19:05 guac-server guacd[13269]: guacdr connected.
Sep  2 07:19:05 guac-server guacd[13269]: guacsnd connected.
Sep  2 07:19:05 guac-server guacd[13269]: Connected to RDPDR 1.12 as 
client 0x0002
Sep  2 07:19:05 guac-server guacd[13269]: Ignoring server capability set 
type=0x0001, length=44
Sep  2 07:19:05 guac-server guacd[13269]: Ignoring server capability set 
type=0x0002, length=8
Sep  2 07:19:05 guac-server guacd[13269]: Ignoring server capability set 
type=0x0003, length=8
Sep  2 07:19:05 guac-server guacd[13269]: Ignoring server capability set 
type=0x0004, length=8
Sep  2 07:19:05 guac-server guacd[13269]: Ignoring server capability set 
type=0x0005, length=8
Sep  2 07:19:05 guac-server guacd[13269]: Sending capabilities...
Sep  2 07:19:05 guac-server guacd[13269]: Capabilities sent.
Sep  2 07:19:05 guac-server guacd[13269]: Client ID confirmed


On 2/09/2019 7:10 a.m., Halil Karakose wrote:
> Thanks Mike. Where can I find guacd logs?
>
> 1 Eyl 2019 Paz, saat 21:46 tarihinde Mike Jumper 
> <mike.jumper@glyptodon.com <ma...@glyptodon.com>> ??unu yazd??:
>
>     On Sun, Sep 1, 2019 at 11:37 AM Halil Karakose <karhal83@gmail.com
>     <ma...@gmail.com>> wrote:
>
>         Here is my observation about the installation:
>
>         I installed both guacd and guacamole web application on the
>         same machine.
>
>         I can telnet to 4899.
>
>
>     Are you sure you don't mean 4822?
>
>         ...
>         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.
>         ...
>         So, is my rdp credentials wrong?
>
>
>     You need to check your guacd logs. Only guacd is aware of anything
>     RDP-specific, not Tomcat or the web application. The error you're
>     seeing from the web application suggests that it simply cannot
>     connect to guacd, not necessarily that there is a problem with the
>     configuration of the RDP connection. The logs from guacd should
>     provide the details you need.
>
>     - Mike
>


Re: guacd rdp support

Posted by Halil Karakose <ka...@gmail.com>.
Thanks Mike. Where can I find guacd logs?

1 Eyl 2019 Paz, saat 21:46 tarihinde Mike Jumper <mi...@glyptodon.com>
şunu yazdı:

> On Sun, Sep 1, 2019 at 11:37 AM Halil Karakose <ka...@gmail.com> wrote:
>
>> Here is my observation about the installation:
>>
>> I installed both guacd and guacamole web application on the same machine.
>>
>> I can telnet to 4899.
>>
>
> Are you sure you don't mean 4822?
>
> ...
>> 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.
>> ...
>> So, is my rdp credentials wrong?
>>
>
> You need to check your guacd logs. Only guacd is aware of anything
> RDP-specific, not Tomcat or the web application. The error you're seeing
> from the web application suggests that it simply cannot connect to guacd,
> not necessarily that there is a problem with the configuration of the RDP
> connection. The logs from guacd should provide the details you need.
>
> - Mike
>
>

Re: guacd rdp support

Posted by Mike Jumper <mi...@glyptodon.com>.
On Sun, Sep 1, 2019 at 11:37 AM Halil Karakose <ka...@gmail.com> wrote:

> Here is my observation about the installation:
>
> I installed both guacd and guacamole web application on the same machine.
>
> I can telnet to 4899.
>

Are you sure you don't mean 4822?

...
> 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.
> ...
> So, is my rdp credentials wrong?
>

You need to check your guacd logs. Only guacd is aware of anything
RDP-specific, not Tomcat or the web application. The error you're seeing
from the web application suggests that it simply cannot connect to guacd,
not necessarily that there is a problem with the configuration of the RDP
connection. The logs from guacd should provide the details you need.

- Mike

Re: guacd rdp support

Posted by Halil Karakose <ka...@gmail.com>.
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 <mi...@glyptodon.com>
wrote:

> On Sun, Sep 1, 2019 at 8:40 AM Halil Karakose <ka...@gmail.com> 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
>
>

Re: guacd rdp support

Posted by Mike Jumper <mi...@glyptodon.com>.
On Sun, Sep 1, 2019 at 8:40 AM Halil Karakose <ka...@gmail.com> 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