0

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

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

/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.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>

~/tomcat8/.guacamole/ 上的 ls -la 给了我以下信息:

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

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

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

正如我所说,即使我使用带有 USERNAME 和 PASSWORD 的默认 user-mapping.xml,我仍然会遇到同样的错误。

环境如下:

Ubuntu 16.04

雄猫8

openjdk 版本“1.8.0_222”

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

OpenJDK 64 位服务器 VM(内部版本 25.222-b10,混合模式)

鳄梨酱代理守护程序(guacd)版本 0.8.3

4

1 回答 1

0

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

您只需要取消注释您需要的用户。

于 2020-07-10T10:15:12.420 回答