Here is the log from Elasticsearch
[2016-10-06 11:21:28,564][DEBUG][shield.authc.ldap ] [node-1] authenticated user [kserver], with roles [[kibana4_server]]
[2016-10-06 11:21:28,865][DEBUG][shield.authc.ldap ] [node-1] user not found in cache, proceeding with normal authentication
[2016-10-06 11:21:28,871][DEBUG][shield.authc.support ] [node-1] the roles [[isp]], are mapped from these [ldap] groups [[cn=isp,ou=groups,dc=alefmobitech,dc=com]] for realm [ldap/ldap1]
[2016-10-06 11:21:28,871][DEBUG][shield.authc.support ] [node-1] the roles [[]], are mapped from the user [ldap] for realm [cn=uday kona,ou=users,dc=alefmobitech,dc=com/ldap]
[2016-10-06 11:21:28,871][DEBUG][shield.authc.ldap ] [node-1] authenticated user [ukona], with roles [[isp]]
[2016-10-06 11:21:29,088][DEBUG][shield.authc.ldap ] [node-1] authenticated user [ukona], with roles [[isp]]
[2016-10-06 11:21:29,340][DEBUG][shield.authc.ldap ] [node-1] authenticated user [ukona], with roles [[isp]]
[2016-10-06 11:21:30,831][TRACE][shield.authc.esnative ] [node-1] starting polling of user index to check for changes
[2016-10-06 11:21:31,068][DEBUG][shield.authc.ldap ] [node-1] authenticated user [kserver], with roles [[kibana4_server]]
[2016-10-06 11:21:31,075][DEBUG][shield.authc.ldap ] [node-1] authenticated user [kserver], with roles [[kibana4_server]]
[2016-10-06 11:21:31,471][DEBUG][shield.authc.ldap ] [node-1] authenticated user [ukona], with roles [[isp]]
[2016-10-06 11:21:31,474][DEBUG][shield.authc.ldap ] [node-1] authenticated user [ukona], with roles [[isp]]
this log is no stop appearing on the log file, i have set up Shield TRACE
here is the log from Kibana
{"type":"response","@timestamp":"2016-10-06T05:51:50Z","tags":[],"pid":17815,"method":"get","statusCode":200,"req":{"url":"/login","method":"get","headers":{"host":"192.168.3.104:5601","connection":"keep-alive","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8","referer":"https://192.168.3.104:5601/logout","accept-encoding":"gzip, deflate, sdch, br","accept-language":"en-GB,en-US;q=0.8,en;q=0.6"},"remoteAddress":"192.168.4.198","userAgent":"192.168.4.198","referer":"https://192.168.3.104:5601/logout"},"res":{"statusCode":200,"responseTime":2,"contentLength":9},"message":"GET /login 200 2ms - 9.0B"}
{"type":"response","@timestamp":"2016-10-06T05:51:50Z","tags":[],"pid":17815,"method":"get","statusCode":200,"req":{"url":"/bundles/commons.style.css?v=10146","method":"get","headers":{"host":"192.168.3.104:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36","accept":"text/css,/;q=0.1","referer":"https://192.168.3.104:5601/login","accept-encoding":"gzip, deflate, sdch, br","accept-language":"en-GB,en-US;q=0.8,en;q=0.6"},"remoteAddress":"192.168.4.198","userAgent":"192.168.4.198","referer":"https://192.168.3.104:5601/login"},"res":{"statusCode":200,"responseTime":10,"contentLength":9},"message":"GET /bundles/commons.style.css?v=10146 200 10ms - 9.0B"}
{"type":"response","@timestamp":"2016-10-06T05:51:50Z","tags":[],"pid":17815,"method":"get","statusCode":200,"req":{"url":"/bundles/login.style.css?v=10146","method":"get","headers":{"host":"192.168.3.104:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36","accept":"text/css,/;q=0.1","referer":"https://192.168.3.104:5601/login","accept-encoding":"gzip, deflate, sdch, br","accept-language":"en-GB,en-US;q=0.8,en;q=0.6"},"remoteAddress":"192.168.4.198","userAgent":"192.168.4.198","referer":"https://192.168.3.104:5601/login"},"res":{"statusCode":200,"responseTime":8,"contentLength":9},"message":"GET /bundles/login.style.css?v=10146 200 8ms - 9.0B"}
as long as the screen is logged in this keeps appearing on the log file.
Here is my Elasticsearch shield yml
shield.dls_fls.enabled: true
shield.authc.ldap.files.role_mapping: "/etc/elasticsearch"
shield:
authc:
realms:
ldap1:
type: ldap
order: 0
url: "ldap://192.168.3.104:389"
bind_dn: "cn=admin,dc=xxxxxx,dc=com"
bind_password: xxxxxx
user_search:
base_dn: "dc=xxxxxx,dc=com"
group_search:
base_dn: "dc=xxxxxx,dc=com"
filter: "(&(objectClass=posixGroup)(memberUid={0}))"
user_attribute: "uid"
files:
role_mapping: "/etc/elasticsearch/shield/role_mapping.yml"
unmapped_groups_as_roles: false