guacamole - 绕过 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 登录页面。
这就是我所做的。
- 已下载
guacamole-auth-noauth-0.9.14.tar.gz
- 使用提取 .jar 文件
tar xzf guacamole-auth-noauth-0.9.14.tar.gz
guacamole-auth-noauth-0.9.14.ja
将文件r复制到/etc/guacamole/[extensions,lib]
- 将我的
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
- 用内容创建了一个新
noauth-config.xml
文件
<configs>
<config name="myconfig" protocol="rdp">
<param name="SVxxxx01" value="rdp-server" />
<param name="port" value="3389" />
</config>
</configs>
- 然后我将 guacamole-auth-noauth-0.9.14.jar 复制到我创建的类路径目录
cp guacamole-auth-noauth-0.9.14.jar /var/lib/guacamole/classpath
任何绕过登录页面的建议和提示将不胜感激。
解决方案
您应该检查插件是否正确加载。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 中创建扩展目录,但是您应该可以使用文档中指定的任何其他位置。
推荐阅读
- javascript - Javascript - 成功验证后的 google ReCaptcha V2 执行功能
- javascript - 使用 JavaScript 创建任务调度程序
- ibm-cloud - 如何通过 Wi-Fi 连接将 cc3200launchpad 与 IBM Watson IoT Platform 连接?
- python - 使用 Python 3.7.1 在 Windows 10 中创建快捷方式文件
- android - 找不到“nativescript-angular/platform”,相对于:app/tns_modules/
- google-app-engine - Go AppEngine 不会以 goapp 开头
- r - 根据 R 中的 4 个可能的匹配条件顺序合并
- ajax - 如何在 JSF 中的 rowSelect 事件上从主视图导航到详细视图
- html - 为什么这个边距偏移不能正常工作?
- android - 工作管理器未调用 doWork() 方法