Apache Guacamole无效登录



Guacamole很新,但我了解它的工作原理。我很确定我已经正确地安装和配置了所有内容,但当我尝试登录时,即使使用默认的user-mapping.xml,我也会收到一条无效的登录消息。

我已经将$GUACAMOLE_HOME变量设置为以下值:

/etc/guacamole/

鳄梨酱属性如下:

# Hostname and port of guacamole proxy
guacd-hostname: localhost
guacd-port:     4822
# Auth provider class (authenticates user/pass combination, needed if using the provided login screen)
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
basic-user-mapping: /etc/guacamole/user-mapping.xml

我的user-mapping.xml如下所示:

<user-mapping>
<!-- Example user configurations are given below. For more information,
see the user-mapping.xml section of the Guacamole configuration
documentation: http://guac-dev.org/Configuring%20Guacamole -->
<!-- Per-user authentication and config information -->
<!--
<authorize username="USER1" password="PASSWORD">
<protocol>rdp</protocol>
<param name="hostname">192.168.1.90</param>
<param name="port">3389</param>
</authorize>
-->
<!-- Another user, but using md5 to hash the password
(example below uses the md5 hash of "PASSWORD") -->
<!--
<authorize
username="USERNAME2"
password="319f4d26e3c536b5dd871bb2c52e3178"
encoding="md5">
<protocol>vnc</protocol>
<param name="hostname">localhost</param>
<param name="port">5901</param>
<param name="password">VNCPASS</param>
</authorize>
-->
</user-mapping>

一个ls-la on ~/tomcat8/.鳄梨酱/给了我以下信息:

guacamole.properties -> /etc/guacamole/guacamole.properties

日志文件显示tomcat:正在读取user-mapping.xml文件

Nov 02, 2019 1:49:17 PM net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider info
INFO: Reading user mapping file: /etc/guacamole/user-mapping.xml
Nov 02, 2019 1:49:17 PM org.glyptodon.guacamole.net.basic.AuthenticatingHttpServlet warn
WARNING: Authentication attempt from 192.168.1.115 for user "USER1" failed.
Nov 02, 2019 1:49:17 PM org.glyptodon.guacamole.net.basic.AuthenticatingHttpServlet warn
WARNING: Permission denied: Not authenticated

正如我所说,即使我使用默认的user-mapping.xml和USERNAME&密码,我仍然收到同样的错误。

环境如下:

Ubuntu 16.04

Tomcat8

openjdk版本"1.8.0_222">

OpenJDK运行时环境(build 1.8.0_222-8u222-b10-ubuntu1~16.04.1-b10(

OpenJDK 64位服务器虚拟机(版本25.222-b10,混合模式(

Guacamole代理守护程序(guacd(版本0.8.3

您的user-mapping.xml不包含有效用户。对您的用户进行了评论(介于(。

您只需要取消对所需用户的注释即可。

最新更新