# Kibana 6.2.4 unauthorized exception with elasticsearch 6.2.4 for basic authentication\*not X-pack Plugin\*

**URL:** <https://discuss.elastic.co/t/kibana-6-2-4-unauthorized-exception-with-elasticsearch-6-2-4-for-basic-authentication-not-x-pack-plugin/135585>\
**Category:** Kibana\
**Created:** [June 12, 2018, 6:57pm UTC](https://discuss.elastic.co/t/kibana-6-2-4-unauthorized-exception-with-elasticsearch-6-2-4-for-basic-authentication-not-x-pack-plugin/135585 "2018-06-12T18:57:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saiksrm](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@saiksrm](https://discuss.elastic.co/u/saiksrm)\
**Post date:** [June 12, 2018, 6:57pm UTC](https://discuss.elastic.co/t/kibana-6-2-4-unauthorized-exception-with-elasticsearch-6-2-4-for-basic-authentication-not-x-pack-plugin/135585/1 "2018-06-12T18:57:21Z")

</div>

Hello,  
I have setup kibana 6.2.4 with elasticsearch 6.2.4. Elasticsearch cluster has basic authentication. I am supplying the creds through kibana.yml file. However still i am facing Authorization error. The same settings were working fine with Kibana 5.6.5 and Elasticsearch 5.6.5. Can somehelp help where am going wrong? Let me know if more details are required.  
Thanks  
Narasimha

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [June 13, 2018, 1:17pm UTC](https://discuss.elastic.co/t/kibana-6-2-4-unauthorized-exception-with-elasticsearch-6-2-4-for-basic-authentication-not-x-pack-plugin/135585/2 "2018-06-13T13:17:02Z")

</div>

Hey @saiksrm have you ensured that the username/password that you're setting in your kibana.yml for `elasticsearch.username` and `elasticsearch.password` are the correct username/password?

You can test them out by executing a curl similar to the following against Elasticsearch:

```auto
curl -u elastic:changeme http://localhost:9200

```

---

<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:** [July 11, 2018, 1:17pm UTC](https://discuss.elastic.co/t/kibana-6-2-4-unauthorized-exception-with-elasticsearch-6-2-4-for-basic-authentication-not-x-pack-plugin/135585/3 "2018-07-11T13:17:09Z")

</div>

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