Ubuntu Apache鳄梨酱登录无效

Ubuntu Apache鳄梨酱登录无效,ubuntu,ubuntu-16.04,tomcat8,guacamole,Ubuntu,Ubuntu 16.04,Tomcat8,Guacamole,对鳄梨酱很陌生,但我确实了解它的工作原理。我很确定我已经正确安装和配置了所有内容,但是当我尝试登录时,即使使用默认的user-mapping.xml,也会收到一条无效的登录消息 我已将$GUACAMOLE_HOME变量设置为以下值: /etc/guacamole/ guacamole.properties -> /etc/guacamole/guacamole.properties 鳄梨酱的特性如下: # Hostname and port of guacamole proxy gua

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

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

/etc/guacamole/
guacamole.properties -> /etc/guacamole/guacamole.properties
鳄梨酱的特性如下:

# 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>

<!-- 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>
我的user-mapping.xml如下:

# 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>

<!-- 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>
日志文件显示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和用户名&密码,我仍然会得到相同的错误

环境如下:

Ubuntu 16.04

Tomcat8

openjdk版本“1.8.0_222”

OpenJDK运行时环境(构建1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10)

OpenJDK 64位服务器虚拟机(构建25.222-b10,混合模式)


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

您的user-mapping.xml不包含有效的用户。您的用户已被评论(介于之间)

您只需取消对所需用户的注释