set Elasticsearch 7.15 using Windows AD to verify account, and mapping AD group into xinc_user
role, and it is working,
but now I met problem, not sure if it is issue.
- login with AD account by kibana
- check account privileges, found this account beyond two roles,
GET /_security/_authenticate
{
"username" : "elastic-test",
"roles" : [
"xinc_user",
"superuser"
],
"full_name" : null,
"email" : null,
"metadata" : {
"ldap_dn" : "CN=elastic-test,CN=Users,DC=xinc,DC=lan",
"ldap_groups" : [
"CN=Domain Users,CN=Users,DC=xinc,DC=lan",
"CN=Users,CN=Builtin,DC=xinc,DC=lan",
"CN=sod,CN=Users,DC=xinc,DC=lan"
]
},
"enabled" : true,
"authentication_realm" : {
"name" : "my_ad",
"type" : "active_directory"
},
"lookup_realm" : {
"name" : "my_ad",
"type" : "active_directory"
},
"authentication_type" : "realm"
}
I wounder why this account has two role xinc_user
and superuser
.
my question:
- how to remove
superuser
role from this account, I search many documents, no any help. - before I set
xinc_user
role have allCluster privileges
, but later I removedall
privilleges from this role, seemed no working, elasticseach did not frefresh this account role after move outall
form cluser privileges.