I am using ELK and x-pack 5.4.1 version. I am using AD authentication using x-pack. System is allowing me to login But getting this error.
Config: Error 403 Forbidden: [security_exception] action [indices:data/write/update] is unauthorized for user <user name error>"
I have defined roles in Kibana and Role mapping in "/config/x-pack/role_mapping.yml" file. These roles are not getting applied when login.
PFB the elasticsearch.yml configuration.
xpack.security.audit.enabled: true
xpack:
security:
authc:
realms:
active_directory:
type: active_directory
order: 0
domain_name: "<domain_name>"
url: ldap://<ldaphost>:389
unmapped_groups_as_roles: true
#follow_referrals: false
user_search:
filter: "(&(objectClass=user)(sAMAccountName={0}))"
files:
role_mapping: "<Config Dir>/x-pack/role_mapping.yml"
role_mapping.yml
superuser:
- "cn=<user name>,cn=Users,dc=<domain>,dc=com"
Access Logs:
[2017-07-06T12:21:44,998] [transport] [access_granted] origin_type=[rest], origin_address=[<IP>], principal=[<user name>], action=[cluster:admin/xpack/security/user/authenticate], request=[AuthenticateRequest]
[2017-07-06T12:21:45,000] [transport] [access_denied] origin_type=[rest], origin_address=[<IP>], principal=[<user name>], action=[indices:data/read/search], indices=[.reporting-*], request=[SearchRequest]
Any help appreciated. Thanks in advance.
Regards
Venu