Guys help me, I can't log in kibana, error 401, my settings are in Elasticsearch
xpack.security.enabled: true
xpack:
security:
authc:
realms:
active_directory:
my_ad:
domain_name: mgc.local
url: ldap://mck-dc1.mgc.local:389
bind_dn: CN=s-kibn,OU=SERVERS-MONITORING,OU=DC,DC=mgc,DC=local
bind_password: 123456
files.role_mapping: /etc/elasticsearch/role_mappings.yml
My Role Mapping Settings
superuser:
- cn=kibana-superuser,ou=Groups,ou=DC,dc=mgc,dc=local
- cn=DDenisov,ou=Users,ou=MIGCRDIT,dc=mgc,dc=local
user:
- "cn=kibana-users,cn=Groups,cn=DC,dc=mgc,dc=local"
I do curl -k -u DDenisov@domain:pass'http://10.102.59.41:9200/_xpack/security/_authenticate?pretty'
and get the correct answer
{
"username" : "DDenisov@domain",
"roles" : [
"monitoring_user",
"superuser"
],
I also created two rules for the mapping role in Kibana, one of them is monitoring_user and it is displayed correctly, but when I try to log in under an account in Kibana, I get an error 401
I don't know what to do now, please help
{"statusCode":401,"error":"Unauthorized","message":"[security_exception] unable to authenticate user [DDenisov@domain] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate=\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\" } }"}