Hi Jochen,

I found a possible solution for the problem, by adding following line to 
the "Basic Authentication" section of my Apache HTTPD .htaccess file:

RequestHeader set Authorization "Basic non"


that solves the problem of the JAVA exceptions!


Thank you!
Klaus.

Am Donnerstag, 5. November 2015 15:19:24 UTC+1 schrieb Jochen Schalanda:
>
> Hi Klaus,
>
> simple answer is: This currently can't be disabled in the Graylog web 
> interface.
>
> If the web interface discovers that there's a Basic Auth happening "in 
> front" of Graylog, it tries to use those credentials to log in and the 
> error messages you've posted simply show those login attempts using your 
> Basic Auth credentials.
>
>
> Cheers,
> Jochen
>
> On Thursday, 5 November 2015 14:25:28 UTC+1, [email protected] wrote:
>>
>> Hi,
>>
>> I use the *apache httpd web server* with a virtual host and *.htacess* 
>> with *Basic Authentication Dialog before enetering the graylog-web java 
>> play application*.
>>
>> I use the user Klaus to authenticate against .htaccess and later I have 
>> another user for login to graylog-web application. 
>>
>> But when I'm doing this, in */var/log/graylog-server/server.log* 
>> following Java exception are done, *lot's of times*:
>>
>> 2015-11-05T14:19:23.608+01:00 WARN  [SessionsResource] Unable to log in 
>> user Klaus
>> org.apache.shiro.authc.AuthenticationException: No account information 
>> found for authentication token 
>> [org.apache.shiro.authc.UsernamePasswordToken - Klaus, rememberMe=false] by 
>> this Authenticator instance.  Please check that it is configured correctly.
>>         at 
>> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:202)
>>         at 
>> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
>>         at 
>> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
>>         at 
>> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
>>         at 
>> org.graylog2.rest.resources.system.SessionsResource.newSession(SessionsResource.java:93)
>>         at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:497)
>>         at 
>> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
>>         at 
>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
>>         at 
>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
>>         at 
>> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
>>         at 
>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
>>         at 
>> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
>>         at 
>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
>>         at 
>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>>         at 
>> org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:308)
>>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
>>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
>>         at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
>>         at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
>>         at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
>>         at 
>> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
>>         at 
>> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:291)
>>         at 
>> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1140)
>>         at 
>> org.graylog2.jersey.container.netty.NettyContainer.messageReceived(NettyContainer.java:356)
>>         at 
>> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
>>         at 
>> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
>>         at 
>> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
>>         at 
>> org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
>>         at 
>> org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
>>         at 
>> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
>>         at 
>> org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:606)
>>         at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>         at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>         at java.lang.Thread.run(Thread.java:745)
>>
>>
>> How could this be solved?
>>
>> Thank you.
>> Klaus.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/a126a470-6a4e-413f-9982-12155fabd310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to