# Kibana autorisation by username and password

**URL:** <https://discuss.elastic.co/t/kibana-autorisation-by-username-and-password/244990>\
**Category:** Kibana\
**Tags:** elastic-stack-security, docker\
**Created:** [August 14, 2020, 10:34am UTC](https://discuss.elastic.co/t/kibana-autorisation-by-username-and-password/244990 "2020-08-14T10:34:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zakabluk](https://avatars.discourse-cdn.com/v4/letter/z/8baadc/32.png) [@zakabluk](https://discuss.elastic.co/u/zakabluk)\
**Post date:** [August 14, 2020, 10:34am UTC](https://discuss.elastic.co/t/kibana-autorisation-by-username-and-password/244990/1 "2020-08-14T10:34:11Z")

</div>

I have 3 master node, 3 data node, one coordinator and one kibana.  
I added to every config for all nodes option:  
xpack.security.enabled=true  
And for kibana:  
"--elasticsearch.username=kibana\_system2",  
"--elasticsearch.password=monreal",  
"--elasticsearch.ssl.verificationMode=none",  
"--xpack.apm.ui.enabled=false",  
"--xpack.graph.enabled=false",  
"--xpack.ml.enabled=false",  
"--xpack.security.enabled=true",  
"--xpack.encryptedSavedObjects.encryptionKey=tryrhdbdjfhvl9ijngklo8rhfjgnvkgfkklo",  
"--xpack.security.encryptionKey=somethzak\_at\_least\_32\_characters"

Then restart my containers and got in kibana web:  
Kibana server is not ready yet  
in logs  
`{"type":"log","@timestamp":"2020-08-14T10:21:36Z","tags":["warning","plugins","licensing"],"pid":7,"message":"License information could not be obtained from Elasticsearch due to [security_exception] unable to authenticate user ...`

In coordinator log when user kibana\_system  
`"type": "server", "timestamp": "2020-08-14T09:57:22,461Z", "level": "INFO", "component": "o.e.l.LicenseService", "cluster.name": "admitad-cluster-demo", "node.name": "logging-elk-coordinating[0]", "message": "license [6e6e0cdc-af21-4a49-8779-a264ddf6f242] mode [basic] - valid" } {"type": "server", "timestamp": "2020-08-14T09:57:22,468Z", "level": "INFO", "component": "o.e.x.s.s.SecurityStatusChangeListener", "cluster.name": "admitad-cluster-demo", "node.name": "logging-elk-coordinating[0]", "message": "Active license is now [BASIC]; Security is enabled" } "Authentication of [kibana_system] was terminated by realm [reserved] - failed to authenticate user [kibana_system]",`

and

`,"message":"License information could not be obtained from Elasticsearch due to [security_exception] unable to authenticate user [kibana_system2]`

---

<div class="post-metadata">

**Author:** ![zakabluk](https://avatars.discourse-cdn.com/v4/letter/z/8baadc/32.png) [@zakabluk](https://discuss.elastic.co/u/zakabluk)\
**Post date:** [August 16, 2020, 8:39pm UTC](https://discuss.elastic.co/t/kibana-autorisation-by-username-and-password/244990/2 "2020-08-16T20:39:39Z")

</div>

> [@zakabluk](#):
>
> Authentication of [kibana\_system] was terminated by realm

Fixed by bin/elasticsearch-setup-passwords -auto

---

<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:** [September 13, 2020, 8:39pm UTC](https://discuss.elastic.co/t/kibana-autorisation-by-username-and-password/244990/3 "2020-09-13T20:39:53Z")

</div>

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