I am trying to login kibana by using Active Directory users.I am done with settings in elasticsearch.yml file and I am able to login kibana page by using Ad users but it shows the {"statusCode":403,"error":"Forbidden","message":"Forbidden"} error but can't open the kibana page.
Here is my configuration file elasticsearch.yml
xpack:
security:
authc:
realms:
active_directory:
my_ad:
order: 1
domain_name: sgpltech.com
url: ldap://sgplad.sgpltech.com:389
user_search:
base_dn: "dc=sgpltech,dc=com"
group_search:
base_dn: "dc=sgpltech,dc=com"
files:
role_mapping: "/etc/elasticsearch-7.4.0/config/role_mapping.yml"
and my role_mapping.yml file is
user:
- "cn=Users,dc=sgpltech,dc=com"
- "cn=hr086,cn=hr082,ou=Users,ou=SGPL-Production,dc=sgpltech,dc=com"
Please help me to fix this issue.
Thank you