Disable the basic user authentication in kibana: 7.17

Hi,
I have integrated AD to authenticate users to kibana. So, I want to disable the basic user authentication page.
I tried setting xpack.security.enabled: false but I am getting below error. Can anyone please help me how to disable basic authentication.

{
    "statusCode": 401,
    "error": "Unauthorized",
    "message": "[missing authentication credentials for REST request [/.kibana_7.17.18/_search?from=0&rest_total_hits_as_int=true&size=1000]: security_exception: [security_exception] Reason: missing authentication credentials for REST request [/.kibana_7.17.18/_search?from=0&rest_total_hits_as_int=true&size=1000]]: missing authentication credentials for REST request [/.kibana_7.17.18/_search?from=0&rest_total_hits_as_int=true&size=1000]"
}

Hi, Can anyone please help me with my query?

That's not possible, if you enabled security and authentication in Elasticsearch, then you will need to authenticate in Kibana as Kibana is a client to to Elasticsearch and the authentication is done by Elasticsearch.

1 Like