Hi,
I am unable to login to Kibana by using an LDAP user who is having a superuser role. Getting below the exception.
{"statusCode":401,"error":"Unauthorized","message":"[security_exception] unable to authenticate user [******] for REST request [/_xpack/security/user/_has_privileges], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } }"}
When trying to authenticate the same user using API getting below output.
curl -XGET -u ****** http://:9200/_xpack/security/_authenticate
Enter host password for user '':
{"username":"***","roles":["superuser"],"full_name":null,"email":null,"metadata":{},"enabled":true,"authentication_realm":{"name":"ldap1","type":"ldap"},"lookup_realm":{"name":"ldap1","type":"ldap"}}
GET /_security/role/superuser
{
"superuser" : {
"cluster" : [
"all"
],
"indices" : [
{
"names" : [
""
],
"privileges" : [
"all"
],
"allow_restricted_indices" : true
}
],
"applications" : [
{
"application" : "",
"privileges" : [
""
],
"resources" : [
""
]
}
],
"run_as" : [
"*"
],
"metadata" : {
"_reserved" : true
},
"transient_metadata" : { }
}
}
Assigned a role to a user by using below API
POST /_xpack/security/role_mapping/mapping1
{
"roles": [ "superuser"],
"enabled": true,
"rules": {
"field" : { "username" : "*" }
},
"metadata" : {
"version" : 1
}
}
Looks like I am missing something here, can someone help me.
Thanks
GRR