when i enter my ldap credentials it gives these(it authenticates me but not authorizes):
`[2017-05-26T09:27:28,528][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [xxx] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:28,529][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] user [xxx] not found in cache for realm [ldap1], proceeding with normal authentication
...
[2017-05-26T09:27:34,001][DEBUG][o.e.x.s.a.s.DnRoleMapper ] [node1] the roles [[]], are mapped from these [ldap] groups [[]] for realm [ldap/ldap1]
[2017-05-26T09:27:34,002][DEBUG][o.e.x.s.a.s.DnRoleMapper ] [node1] the roles [[]], are mapped from the user [uid=xxx,ou=xxx,o=xxx] for realm [ldap/ldap1]
[2017-05-26T09:27:34,003][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [xxx], with roles [[]]
[2017-05-26T09:27:34,043][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [netikocak] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,045][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [xxx], with roles [[]]
[2017-05-26T09:27:34,054][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [netikocak] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,057][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [xxx], with roles [[]]
[2017-05-26T09:27:34,058][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [xxx] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,073][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [netikocak], with roles [[]]
[2017-05-26T09:27:34,073][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] realm [reserved] authenticated user [elastic], with roles [[superuser]]
[2017-05-26T09:27:34,079][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [netikocak] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,080][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [netikocak], with roles [[]]
[2017-05-26T09:27:34,183][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [netikocak] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,183][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [netikocak] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,202][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [xxx], with roles [[]]
[2017-05-26T09:27:34,203][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [xxx], with roles [[]]
[2017-05-26T09:27:34,330][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [xxx] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,334][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [xxx], with roles [[]]
[2017-05-26T09:27:34,337][DEBUG][r.suppressed ] path: /.kibana/config/5.4.0, params: {index=.kibana, id=5.4.0, type=config}
org.elasticsearch.ElasticsearchSecurityException: action [indices:data/read/get] is unauthorized for user [xxx]
at org.elasticsearch.xpack.security.support.Exceptions.authorizationError(Exceptions.java:45) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.denialException(AuthorizationService.java:459) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.denial(AuthorizationService.java:430) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:244) ~[?:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$authorizeRequest$4(SecurityActionFilter.java:190) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.maybeRun(AuthorizationUtils.java:127) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.setRunAsRoles(AuthorizationUtils.java:121) ~[?:?]
at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.authorize(AuthorizationUtils.java:109) ~[?:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.authorizeRequest(SecurityActionFilter.java:205) ~[?:?]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:181) ~[?:?]
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:59) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:192) ~[?:?]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$2(AuthenticationService.java:212) ~[?:?]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:224) ~[?:?]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.authenticateAsync(AuthenticationService.java:190) ~[?:?]
...
at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.authenticateWithCache(CachingUsernamePasswordRealm.java:117) ~[?:?]
at
[2017-05-26T09:27:34,461][DEBUG][o.e.x.s.a.e.ReservedRealm] [node1] user [netikocak] not found in cache for realm [reserved], proceeding with normal authentication
[2017-05-26T09:27:34,505][DEBUG][o.e.x.s.a.l.LdapRealm ] [node1] realm [ldap1] authenticated user [netikocak], with roles [[]]`
as you see my realm name in ldap config in elasticsearch.yml is ldap1:xpack: security: authc: realms: ldap1: type: ldap order: 0 url: "xxx" bind_dn: "uid=xxx,ou=xxx,o=xxx" bind_password: "xxx." user_search: base_dn: "o=xxx" files: role_mapping: "role_mapping.yml" unmapped_groups_as_roles: false