我们尝试在 guacamole 上设置 no auth,但我们遇到了一些麻烦。
在下面,我们遵循的步骤:
通过带有容器的 docker 安装 Guacamole 0.9.8:
- 鳄梨酱-0.9.8
- mysql
- guacd-0.9.8
使用 guacamole 界面创建 Guacamole 用户。
从https://github.com/aiden0z/guacamole-auth-hmac/添加脚本 auth hmac
在添加以下属性时开始修改文件:
set_property "auth-provider" "com.stephensugden.guacamole.net.hmac.HmacAuthenticationProvider"
set_property "密钥" "xxxxxxxxxxxxxxxxxx"
set_property "时间戳年龄限制" "600000"
添加清单文件(guac-manifest.json):
{ "guacamoleVersion" : "0.9.8", "name" : "HMAC Authentication", "namespace" : "guac-hmac", "authProviders" : [ "com.stephensugden.guacamole.net.hmac.HmacAuthenticationProvider" ] }
使用以下签名的 url 和参数调用 url guacamole:
id timestamp guac.hostname guac.protocol guac.usename guac.password guac.port signature
此调用导致白页。
日志让我登录是正确的:
15:03:08.026 [http-nio-8080-exec-5] 调试 oggnbrest.auth.TokenRESTService - 用户“0fd88008-26b9-4003-a310-d3408333e871”登录成功。
但是java日志返回:
22-Oct-2015 15:03:08.027 SEVERE [http-nio-8080-exec-5] com.sun.jersey.spi.container.ContainerResponse.mapMa
ppableContainerException The exception contained within MappableContainerException could not be mapped to a
response, re-throwing to the HTTP container
java.lang.AbstractMethodError: com.stephensugden.guacamole.net.hmac.HmacAuthenticationProvider.getIdentifier()Ljava/lang/String;
at org.glyptodon.guacamole.net.basic.rest.auth.TokenRESTService.createToken(TokenRESTService.java:510)
at org.glyptodon.guacamole.net.basic.rest.AuthProviderRESTExceptionWrapper.invoke(AuthProviderRESTExceptionWrapper.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
有人可以告诉我更多关于这个错误的信息吗?