# Shield Authentication Error

**URL:** https://discuss.elastic.co/t/shield-authentication-error/44185
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [March 11, 2016, 5:52pm UTC](https://discuss.elastic.co/t/shield-authentication-error/44185 "2016-03-11T17:52:04Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Baboune](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baboune/32/4405_2.png) [@Baboune](https://discuss.elastic.co/u/Baboune)
#### Post date: [March 31, 2016, 12:09pm UTC](https://discuss.elastic.co/t/shield-authentication-error/44185/8 "2016-03-31T12:09:29Z")

</div>

Still facing issue...

User is successfully created, /etc/elasticsearch/shield/users is modified:  
cat /etc/elasticsearch/shield/users  
lmcnise:$2a$10$OhPJkrrlu4RlV4F7/sAUOeFRxEIEcjRUbDoS/C31Y7ITeWZ.74K52

But:

> [2016-03-31 12:05:22,862][DEBUG][shield.authc.esnative] [datastorage] user not found in cache, proceeding with normal authentication  
> [2016-03-31 12:05:22,868][DEBUG][shield.authc.esusers] [datastorage] user not found in cache, proceeding with normal authentication  
> [2016-03-31 12:05:22,878][DEBUG][rest.suppressed] / Params: {}  
> ElasticsearchSecurityException[unable to authenticate user [lmcnise] for REST request [/]]  
> at org.elasticsearch.shield.support.Exceptions.authenticationError(Exceptions.java:39)  
> at org.elasticsearch.shield.authc.DefaultAuthenticationFailureHandler.unsuccessfulAuthentication(DefaultAuthenticationFailureHandler.java:35)  
> at org.elasticsearch.shield.authc.InternalAuthenticationService.authenticate(InternalAuthenticationService.java:119)  
> at org.elasticsearch.shield.rest.ShieldRestFilter.process(ShieldRestFilter.java:73)  
> at org.elasticsearch.rest.RestController$ControllerFilterChain.continueProcessing(RestController.java:263)  
> at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:176)  
> at org.elasticsearch.http.HttpServer.internalDispatchRequest(HttpServer.java:128)  
> at org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:86)  
> at org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:449)

Can not login.

Any ideas?

---

_[View the full topic](https://discuss.elastic.co/t/shield-authentication-error/44185)._
