You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by jotwe <ja...@esa.int> on 2019/01/23 08:19:12 UTC

Log in failed/Password authentication failed

Hello everyone,

I am trying to set up Guacamole 1.0.0 with x11vnc and Tomcat 8 on a fresh
Lubuntu 16.04 installation in a VM. After logging in, it seems like the user
is connected for the fraction of a second and then kicked out with a log in
failed message. This can also be seen in the logs. In the syslog, there is a
password authentication failed message.

It also happens when I log in directly from the VM (no proxy, no anti
virus). x11vnc and Tomcat seem to work fine but there is an
IllegalStateException. Currently, I have no idea why this happens and would
be very thankful for any hint.

Thanks!

<http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/file/t799/Screen1.png> 

<http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/file/t799/Screen2.png> 

user-mappings.xml



guacamole.properties



/var/log/syslog | grep guacd



catalina.out





--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Log in failed/Password authentication failed

Posted by jotwe <ja...@esa.int>.
Dear Mike,

Thank you for the quick reply. I added the enable-sftp parameter just for
test reasons. Removing it solved my problem for now :) I will try to
integrate SFTP later again.

Thanks a lot!
Janis



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Log in failed/Password authentication failed

Posted by Mike Jumper <mj...@apache.org>.
Is that your entire, current user-mapping.xml?

If enabling SFTP, you will also at a minimum need the "sftp-username"
parameter, as well as any other required credentials. Lacking that, there
should be a different error refusing to connect and noting that a username
is required.

- Mike


On Wed, Jan 23, 2019, 00:29 jotwe <janis.wojtusch@esa.int wrote:

> Somehow the listings of the files disapeared. The raw tag does not seem to
> work properly. Here is a second try:
>
> user-mappings.xml
>
> &lt;user-mapping&gt;
>     &lt;authorize username="TEST" password="1234"&gt;
>         &lt;connection name="Lubuntu"&gt;
>                 &lt;protocol&gt;vnc&lt;/protocol&gt;
>                 &lt;param name="hostname"&gt;localhost&lt;/param&gt;
>                 &lt;param name="port"&gt;5901&lt;/param&gt;
>                 &lt;param name="password"&gt;VNCPASSWORD&lt;/param&gt;
>                 &lt;param name="enable-sftp"&gt;true&lt;/param&gt;
>         &lt;/connection&gt;
>     &lt;/authorize&gt;
> &lt;/user-mapping&gt;
>
> guacamole.properties
>
> guacd-hostname: localhost
> guacd-port: 4822
>
> /var/log/syslog | grep guacd
>
> [...]
> Jan 22 15:21:10 Lubuntu guacd[22542]: Guacamole proxy daemon (guacd)
> version
> 1.0.0 started
> Jan 22 15:21:10 Lubuntu guacd[22538]: Starting guacd: guacd[22542]:
> INFO:#011Guacamole proxy daemon (guacd) version 1.0.0 started
> Jan 22 15:21:10 Lubuntu guacd[22544]: Listening on host 127.0.0.1, port
> 4822
> Jan 22 15:21:10 Lubuntu guacd[22538]: SUCCESS
> Jan 22 15:21:11 Lubuntu guacd[22544]: Creating new client for protocol
> "vnc"
> Jan 22 15:21:11 Lubuntu guacd[22544]: Connection ID is
> "$af5ea434-24fa-4e8e-80df-71a928db6473"
> Jan 22 15:21:11 Lubuntu guacd[22548]: Cursor rendering: local
> Jan 22 15:21:11 Lubuntu guacd[22548]: User
> "@0c35929f-0a20-46e3-a460-a6bb5d643c25" joined connection
> "$af5ea434-24fa-4e8e-80df-71a928db6473" (1 users now present)
> Jan 22 15:21:11 Lubuntu guacd[22548]: VNC server supports protocol version
> 3.8 (viewer 3.8)
> Jan 22 15:21:11 Lubuntu guacd[22548]: We have 1 security types to read
> Jan 22 15:21:11 Lubuntu guacd[22548]: 0) Received security type 2
> Jan 22 15:21:11 Lubuntu guacd[22548]: Selecting security type 2 (0/1 in the
> list)
> Jan 22 15:21:11 Lubuntu guacd[22548]: Selected Security Scheme 2
> Jan 22 15:21:11 Lubuntu guacd[22548]: VNC authentication succeeded
> Jan 22 15:21:11 Lubuntu guacd[22548]: Desktop name "Lubuntu:0"
> Jan 22 15:21:11 Lubuntu guacd[22548]: Connected to VNC server, using
> protocol version 3.8
> Jan 22 15:21:11 Lubuntu guacd[22548]: VNC server default format:
> Jan 22 15:21:11 Lubuntu guacd[22548]:   32 bits per pixel.
> Jan 22 15:21:11 Lubuntu guacd[22548]:   Least significant byte first in
> each
> pixel.
> Jan 22 15:21:11 Lubuntu guacd[22548]:   TRUE colour: max red 255 green 255
> blue 255, shift red 16 green 8 blue 0
> Jan 22 15:21:11 Lubuntu guacd[22548]: No known host keys provided, host
> identity will not be verified.
> Jan 22 15:21:11 Lubuntu guacd[22548]: Password authentication failed:
> Authentication failed (username/password)
> Jan 22 15:21:11 Lubuntu guacd[22548]: User
> "@0c35929f-0a20-46e3-a460-a6bb5d643c25" disconnected (0 users remain)
> Jan 22 15:21:11 Lubuntu guacd[22548]: Last user of connection
> "$af5ea434-24fa-4e8e-80df-71a928db6473" disconnected
> Jan 22 15:21:16 Lubuntu guacd[22544]: Connection
> "$af5ea434-24fa-4e8e-80df-71a928db6473" removed.
> [...]
>
> catalina.out
>
> [...]
> 15:21:11.287 [http-nio-80-exec-5] INFO  o.a.g.environment.LocalEnvironment
> -
> GUACAMOLE_HOME is "/etc/guacamole".
> 15:21:11.341 [http-nio-80-exec-5] INFO  o.a.g.tunnel.TunnelRequestService -
> User "TEST" connected to connection "Lubuntu".
> 15:21:11.726 [http-nio-80-exec-10] INFO  o.a.g.tunnel.TunnelRequestService
> -
> User "TEST" disconnected from connection "Lubuntu". Duration: 385
> milliseconds
> Exception in thread "Thread-1355" java.lang.IllegalStateException: Message
> will not be sent because the WebSocket session has been closed
>         at
>
> org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:384)
>         at
>
> org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:340)
>         at
>
> org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:755)
>         at
>
> org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
>         at
>
> org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
>         at
>
> org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
>         at
>
> org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
>         at
>
> org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
>         at
>
> org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
> 15:21:26.836 [http-nio-80-exec-7] INFO  o.a.g.environment.LocalEnvironment
> -
> GUACAMOLE_HOME is "/etc/guacamole".
> [...]
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>

Re: Log in failed/Password authentication failed

Posted by jotwe <ja...@esa.int>.
Somehow the listings of the files disapeared. The raw tag does not seem to
work properly. Here is a second try:

user-mappings.xml

&lt;user-mapping&gt;
    &lt;authorize username="TEST" password="1234"&gt;
        &lt;connection name="Lubuntu"&gt;
                &lt;protocol&gt;vnc&lt;/protocol&gt;
                &lt;param name="hostname"&gt;localhost&lt;/param&gt;
                &lt;param name="port"&gt;5901&lt;/param&gt;
                &lt;param name="password"&gt;VNCPASSWORD&lt;/param&gt;
                &lt;param name="enable-sftp"&gt;true&lt;/param&gt;
        &lt;/connection&gt;
    &lt;/authorize&gt;
&lt;/user-mapping&gt;

guacamole.properties

guacd-hostname: localhost
guacd-port: 4822

/var/log/syslog | grep guacd

[...]
Jan 22 15:21:10 Lubuntu guacd[22542]: Guacamole proxy daemon (guacd) version
1.0.0 started
Jan 22 15:21:10 Lubuntu guacd[22538]: Starting guacd: guacd[22542]:
INFO:#011Guacamole proxy daemon (guacd) version 1.0.0 started
Jan 22 15:21:10 Lubuntu guacd[22544]: Listening on host 127.0.0.1, port 4822
Jan 22 15:21:10 Lubuntu guacd[22538]: SUCCESS
Jan 22 15:21:11 Lubuntu guacd[22544]: Creating new client for protocol "vnc"
Jan 22 15:21:11 Lubuntu guacd[22544]: Connection ID is
"$af5ea434-24fa-4e8e-80df-71a928db6473"
Jan 22 15:21:11 Lubuntu guacd[22548]: Cursor rendering: local
Jan 22 15:21:11 Lubuntu guacd[22548]: User
"@0c35929f-0a20-46e3-a460-a6bb5d643c25" joined connection
"$af5ea434-24fa-4e8e-80df-71a928db6473" (1 users now present)
Jan 22 15:21:11 Lubuntu guacd[22548]: VNC server supports protocol version
3.8 (viewer 3.8)
Jan 22 15:21:11 Lubuntu guacd[22548]: We have 1 security types to read
Jan 22 15:21:11 Lubuntu guacd[22548]: 0) Received security type 2
Jan 22 15:21:11 Lubuntu guacd[22548]: Selecting security type 2 (0/1 in the
list)
Jan 22 15:21:11 Lubuntu guacd[22548]: Selected Security Scheme 2
Jan 22 15:21:11 Lubuntu guacd[22548]: VNC authentication succeeded
Jan 22 15:21:11 Lubuntu guacd[22548]: Desktop name "Lubuntu:0"
Jan 22 15:21:11 Lubuntu guacd[22548]: Connected to VNC server, using
protocol version 3.8
Jan 22 15:21:11 Lubuntu guacd[22548]: VNC server default format:
Jan 22 15:21:11 Lubuntu guacd[22548]:   32 bits per pixel.
Jan 22 15:21:11 Lubuntu guacd[22548]:   Least significant byte first in each
pixel.
Jan 22 15:21:11 Lubuntu guacd[22548]:   TRUE colour: max red 255 green 255
blue 255, shift red 16 green 8 blue 0
Jan 22 15:21:11 Lubuntu guacd[22548]: No known host keys provided, host
identity will not be verified.
Jan 22 15:21:11 Lubuntu guacd[22548]: Password authentication failed:
Authentication failed (username/password)
Jan 22 15:21:11 Lubuntu guacd[22548]: User
"@0c35929f-0a20-46e3-a460-a6bb5d643c25" disconnected (0 users remain)
Jan 22 15:21:11 Lubuntu guacd[22548]: Last user of connection
"$af5ea434-24fa-4e8e-80df-71a928db6473" disconnected
Jan 22 15:21:16 Lubuntu guacd[22544]: Connection
"$af5ea434-24fa-4e8e-80df-71a928db6473" removed.
[...]

catalina.out

[...]
15:21:11.287 [http-nio-80-exec-5] INFO  o.a.g.environment.LocalEnvironment -
GUACAMOLE_HOME is "/etc/guacamole".
15:21:11.341 [http-nio-80-exec-5] INFO  o.a.g.tunnel.TunnelRequestService -
User "TEST" connected to connection "Lubuntu".
15:21:11.726 [http-nio-80-exec-10] INFO  o.a.g.tunnel.TunnelRequestService -
User "TEST" disconnected from connection "Lubuntu". Duration: 385
milliseconds
Exception in thread "Thread-1355" java.lang.IllegalStateException: Message
will not be sent because the WebSocket session has been closed
        at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:384)
        at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:340)
        at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:755)
        at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
        at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
        at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
        at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
        at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
        at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
15:21:26.836 [http-nio-80-exec-7] INFO  o.a.g.environment.LocalEnvironment -
GUACAMOLE_HOME is "/etc/guacamole".
[...]



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/