首页 > 解决方案 > 绕过 Guacamole 1.2.0 中的登录页面

问题描述

我已经在 Ubuntu 服务器 20.04 上设置了 Guacamole 1.2.0,效果很好。是否可以使用之前 Guacamole 版本中的 auth-noauth 组件绕过 Guacamole 1.2.0 中的登录页面?1.2.0 中的发行说明说旧组件是兼容的。我使用了 guacamole-auth-noauth-0.9.14.tar.gz,但仍然出现了 Guacamole 登录页面。

这就是我所做的。

  1. 已下载guacamole-auth-noauth-0.9.14.tar.gz
  2. 使用提取 .jar 文件tar xzf guacamole-auth-noauth-0.9.14.tar.gz
  3. guacamole-auth-noauth-0.9.14.ja将文件r复制到/etc/guacamole/[extensions,lib]
  4. 将我的guacamole.properties文件修改为:
      guacd-hostname: localhost
      guacd-port:     4822
      user-mapping:   /etc/guacamole/noauth-config.xml
      auth-provider:  net.sourceforge.guacamole.net.auth.noauth.NoAuthenticationProvider
      noauth-config: /etc/guacamole/noauth-config.xml
  1. 用内容创建了一个新noauth-config.xml文件
<configs>

    <config name="myconfig" protocol="rdp">
        <param name="SVxxxx01" value="rdp-server" />
        <param name="port" value="3389" />
    </config>
</configs>
  1. 然后我将 guacamole-auth-noauth-0.9.14.jar 复制到我创建的类路径目录cp guacamole-auth-noauth-0.9.14.jar /var/lib/guacamole/classpath

任何绕过登录页面的建议和提示将不胜感激。

标签: guacamole

解决方案


您应该检查插件是否正确加载。tomcat 日志(catalina.out)应该写类似“INFO oagextension.ExtensionModule - Extension “My guacamole extension” loaded.”。

如果没有加载,请检查插件的位置是否正确。通常,插件位于 GUACAMOLE_HOME/extensions 目录中。您可能会在此处看到 GUACAMOLE_HOME 的默认值:https ://guacamole.apache.org/doc/gug/configuring-guacamole.html

我通常在 ~tomcat/.guacamole/extensions 中创建扩展目录,但是您应该可以使用文档中指定的任何其他位置。


推荐阅读