# Authenticating with built-in users

**URL:** https://discuss.elastic.co/t/authenticating-with-built-in-users/321246
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [December 15, 2022, 2:35am UTC](https://discuss.elastic.co/t/authenticating-with-built-in-users/321246 "2022-12-15T02:35:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zirota](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zirota/32/109876_2.png) [@zirota](https://discuss.elastic.co/u/zirota)
#### Post date: [December 15, 2022, 2:35am UTC](https://discuss.elastic.co/t/authenticating-with-built-in-users/321246/1 "2022-12-15T02:35:07Z")

</div>

Hello, I ran into some problems with authenticating with built-in users (in this case `elastic`) on my cluster nodes other than the master.

I have a cluster setup on **8.5.3** :

- 3 master nodes
- 4 data nodes
- 2 coordinator nodes

I have done:

1. First time interactive password setup for built in users
2. Added `xpack.security.authc.realms.native.native1.order: 0` in config

**Other than the master, none of the other nodes are able to authenticate the `elastic` user.**  
The log shows that:

`Authentication of [elastic] was terminated by realm [reserved] was terminated by realm [reserved] - failed to authenticate user [elastic]`

This is tested via simple http requests to `https://<node-hostname>:9200` with the `elastic` user credentials.

Is this behavior intended?

* * *

I have also tested that the nodes are able to authenticate these other types of users with no issues:

1. Native users - created via `/\_security/name/
2. AD users (after adding license)

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [December 15, 2022, 4:30am UTC](https://discuss.elastic.co/t/authenticating-with-built-in-users/321246/2 "2022-12-15T04:30:29Z")

</div>

No it's not the intended behaviour especially if you have done "First time interactive password setup for built in users".

What version are you using? If it is 8.0+, you can reset `elastic`'s password with the [elasticsearch-reset-password](https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-password.html) CLI.

---

<div class="post-metadata">

### Author: ![zirota](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zirota/32/109876_2.png) [@zirota](https://discuss.elastic.co/u/zirota)
#### Post date: [December 15, 2022, 4:55am UTC](https://discuss.elastic.co/t/authenticating-with-built-in-users/321246/3 "2022-12-15T04:55:08Z")

</div>

Very thankful for the suggestion, which helped to resolve the issue. I am running v8.5.3.

In my case, I created a new superuser account via api.  
Then sign in to Kibana using said user and performed a password reset for all built-in users.  
Tested and verified that built-in users is able to authenticate correctly from other nodes.

Any idea what might be the root cause?

---

<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 12, 2023, 4:55am UTC](https://discuss.elastic.co/t/authenticating-with-built-in-users/321246/4 "2023-01-12T04:55:33Z")

</div>

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