# User Authentication

**URL:** <https://discuss.elastic.co/t/user-authentication/151897>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 10, 2018, 4:36pm UTC](https://discuss.elastic.co/t/user-authentication/151897 "2018-10-10T16:36:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 10, 2018, 4:36pm UTC](https://discuss.elastic.co/t/user-authentication/151897/1 "2018-10-10T16:36:40Z")

</div>

Can I use NIS authentication for Kibana using x-pack?

I don't see a that as an option in document.

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [October 11, 2018, 11:03am UTC](https://discuss.elastic.co/t/user-authentication/151897/2 "2018-10-11T11:03:07Z")

</div>

NIS isn't supported natively like LDAP and Active Directory, but authentication realms can be extended: [https://www.elastic.co/guide/en/x-pack/current/custom-realms.html](https://www.elastic.co/guide/en/x-pack/current/custom-realms.html)

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 11, 2018, 4:49pm UTC](https://discuss.elastic.co/t/user-authentication/151897/3 "2018-10-11T16:49:26Z")

</div>

Thank you. will look in to it.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 12, 2018, 5:54pm UTC](https://discuss.elastic.co/t/user-authentication/151897/4 "2018-10-12T17:54:06Z")

</div>

Anyone has any sample configuration for file base authentication. for god's love I can't find any sample  
I am trying all different combination but missing something  
this is my elasticsearch.yml file

I try all kind of combination with following lines but it won't let elasticsearch start  
xpack.security.enabled: true

xpack.security.authc.realms:  
type:file

#xpack:

# security:

# authc:

# realms:

# file1:

# type: file

# order: 0

# # enable: true

---

<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:** [October 12, 2018, 7:01pm UTC](https://discuss.elastic.co/t/user-authentication/151897/5 "2018-10-12T19:01:53Z")

</div>

> [@elasticforme](#):
>
> I try all kind of combination with following lines but it won't let elasticsearch start

Can you provide the error message from the logs?  
If Elasticsearch isn't starting, it will tell you what's going wrong.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 12, 2018, 7:37pm UTC](https://discuss.elastic.co/t/user-authentication/151897/6 "2018-10-12T19:37:16Z")

</div>

Alright after more test. I was able to start that here is config file for it

xpack.security.enabled: true  
xpack.security.authc.realms:  
realm1:  
type: file

now I restarted ELK stack. but I still don't see user setup option in kibana.

GET /\_xpack?human=false

"features": {  
"graph": {  
"available": false,  
"enabled": true  
},  
"logstash": {  
"available": false,  
"enabled": true  
},  
"ml": {  
"available": false,  
"enabled": true  
},  
"monitoring": {  
"available": true,  
"enabled": true  
},  
"rollup": {  
"available": true,  
"enabled": true  
},  
"security": {  
"available": false,  
"enabled": true  
},  
"watcher": {  
"available": false,  
"enabled": true  
}  
}  
}

What am I missing?

I have created two test user  
[root@houelktst01 elasticsearch]# /usr/share/elasticsearch/bin/elasticsearch-users list  
sachin\_kibana : kibana\_dashboard\_only\_user  
sachin : superuser

I know I must be missing something in kibana side but can't find it yet.

---

<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:** [October 12, 2018, 7:53pm UTC](https://discuss.elastic.co/t/user-authentication/151897/7 "2018-10-12T19:53:44Z")

</div>

It looks like you are running with a "basic" license. That does not support security.

You can switch to a 30 day trial of all commercial features using an API call, or in the Kibana UI

- [https://www.elastic.co/guide/en/elastic-stack-overview/6.4/license-management.html](https://www.elastic.co/guide/en/elastic-stack-overview/6.4/license-management.html)

---

<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:** [November 9, 2018, 7:53pm UTC](https://discuss.elastic.co/t/user-authentication/151897/8 "2018-11-09T19:53:44Z")

</div>

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