# Authenticate AD users with kibana

**URL:** <https://discuss.elastic.co/t/authenticate-ad-users-with-kibana/212777>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [December 22, 2019, 12:42pm UTC](https://discuss.elastic.co/t/authenticate-ad-users-with-kibana/212777 "2019-12-22T12:42:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arvind\_Jha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvind_jha/32/59844_2.png) [@Arvind\_Jha](https://discuss.elastic.co/u/Arvind_Jha)\
**Post date:** [December 22, 2019, 12:42pm UTC](https://discuss.elastic.co/t/authenticate-ad-users-with-kibana/212777/1 "2019-12-22T12:42:07Z")

</div>

Hi,

i am able to authenticate and authorize AD user with elasticsearch

[root@elastic1 ~]# curl -u abhay -k "[http://192.168.58.174:9200/\_cluster/health?pretty](http://192.168.58.174:9200/_cluster/health?pretty)"  
Enter host password for user 'abhay':  
{  
"cluster\_name" : "els-cluster",  
"status" : "green",  
"timed\_out" : false,  
"number\_of\_nodes" : 3,  
"number\_of\_data\_nodes" : 3,  
"active\_primary\_shards" : 36,  
"active\_shards" : 72,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 100.0  
}  
[root@elastic1 ~]#

but using this user i am not be able to login with kibana

{"statusCode":401,"error":"Unauthorized","message":"[security\_exception] unable to authenticate user [ratan] for REST request [/\_security/\_authenticate], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } }"}

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [December 23, 2019, 12:17am UTC](https://discuss.elastic.co/t/authenticate-ad-users-with-kibana/212777/2 "2019-12-23T00:17:29Z")

</div>

I'm sorry but you haven't provided anywhere near enough information for us to be able to help you.

What is the relationship between the `abhay` and then `ratan` users?  
I don't understand why you are showing us the `curl` login for 1 user and then talk about Kibana for the other user.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 20, 2020, 12:17am UTC](https://discuss.elastic.co/t/authenticate-ad-users-with-kibana/212777/3 "2020-01-20T00:17:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
