# Cannot login to dashboards

**URL:** <https://forum.opensearch.org/t/cannot-login-to-dashboards/17199>\
**Category:** OpenSearch Dashboards\
**Tags:** troubleshoot\
**Created:** [December 20, 2023, 6:18pm UTC](https://forum.opensearch.org/t/cannot-login-to-dashboards/17199 "2023-12-20T18:18:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdevelek](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@gdevelek](https://forum.opensearch.org/u/gdevelek)\
**Post date:** [December 20, 2023, 6:18pm UTC](https://forum.opensearch.org/t/cannot-login-to-dashboards/17199/1 "2023-12-20T18:18:24Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
OS is 2.11.1, OS-D is 2.11.0, browser is Firefox 115.5.0

**Describe the issue** :  
I’m using OS without SSL. Dashboards is running but I can’t login with default admin/admin credentials.

The error is:

`opensearch-dashboards | {"type":"log","@timestamp":"2023-12-20T18:09:37Z","tags":["error","plugins","securityDashboards"],"pid":1,"message":"Failed authentication: Error: no handler found for uri [/_plugins/_security/authinfo] and method [GET]"}`

My docker-compose yaml looks like this for Dashboards:

```auto
  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:2.11.0
    container_name: opensearch-dashboards
    environment:
      OPENSEARCH_HOSTS: '["http://opensearch-node1:9200","http://opensearch-node2:9200","http://opensearch-node3:9200"]'
      # - OPENSEARCH_DASHBOARDS_SERVER_USERNAME=admin
      # - OPENSEARCH_DASHBOARDS_SERVER_PASSWORD=qowieu3q3-2gr
    ports:
      - "5601:5601"
    networks:
      - graylog
    depends_on:
      - opensearch-node1
      - opensearch-node2
      - opensearch-node3

```

For OS itself it looks like this (just the 1st node of the three):

```auto
  opensearch-node1: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/)
    image: opensearchproject/opensearch:2.11.1 # Specifying the latest available image - modify if you want a specific version
    container_name: opensearch-node1
    environment:
      - plugins.security.disabled=true
      - cluster.name=opensearch-cluster # Name the cluster
      - node.name=opensearch-node1 # Name the node that will run in this container
      - discovery.seed_hosts=opensearch-node1,opensearch-node2,opensearch-node3 # Nodes to look for when discovering the cluster,opensearch-node3,opensearch-node3
      - cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2,opensearch-node3 # Nodes eligible to serve as cluster manager
      - bootstrap.memory_lock=true # Disable JVM heap memory swapping
      - "OPENSEARCH_JAVA_OPTS=-Xms2g -Xmx2g" # Set min and max JVM heap sizes to at least 50% of system RAM
    ulimits:
      memlock:
        soft: -1 # Set memlock to unlimited (no soft or hard limit)
        hard: -1
      nofile:
        soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
        hard: 65536
    volumes:
      - /data/opensearch_data_1:/usr/share/opensearch/data # Creates volume called opensearch-data1 and mounts it to the container
      # - opensearch-data1:/usr/share/opensearch/data # Creates volume called opensearch-data1 and mounts it to the container
    ports:
      - 9200:9200 # REST API
      - 9600:9600 # Performance Analyzer
    networks:
      - graylog # All of the containers will join the same Docker bridge network

```

Please help, I bet it’s an easy fix.

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![gaobinlong](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gaobinlong/32/5242_2.png) [@gaobinlong](https://forum.opensearch.org/u/gaobinlong)\
**Post date:** [December 21, 2023, 5:35am UTC](https://forum.opensearch.org/t/cannot-login-to-dashboards/17199/2 "2023-12-21T05:35:41Z")

</div>

The authentication of OpenSearch Dashboards depends on the security plugin of OpenSearch, you cannot disable the security plugin if you still want to use username&password to login OpenSearch Dashboards.

---

<div class="post-metadata">

**Author:** ![gdevelek](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@gdevelek](https://forum.opensearch.org/u/gdevelek)\
**Post date:** [December 21, 2023, 7:13am UTC](https://forum.opensearch.org/t/cannot-login-to-dashboards/17199/3 "2023-12-21T07:13:05Z")

</div>

Thanks,

How can I then disable username/password for the dashboards? Enabling the security plugin complicates the entire setup for no good reason for me, this is not a publicly accessible platform.

---

<div class="post-metadata">

**Author:** ![gaobinlong](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gaobinlong/32/5242_2.png) [@gaobinlong](https://forum.opensearch.org/u/gaobinlong)\
**Post date:** [December 21, 2023, 7:36am UTC](https://forum.opensearch.org/t/cannot-login-to-dashboards/17199/4 "2023-12-21T07:36:09Z")

</div>

Removing security plugin under the sub-directory `plugins` in OpenSearch Dashboards will work, notice you are using docker, you can follow this documentation to create a new image: [Disabling security - OpenSearch documentation](https://opensearch.org/docs/latest/security/configuration/disable/)

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [January 16, 2024, 1:30am UTC](https://forum.opensearch.org/t/cannot-login-to-dashboards/17199/5 "2024-01-16T01:30:43Z")

</div>

> [@gdevelek](#):
>
> `- plugins.security.disabled=true`

@gdevelek You must place this option inside the opensearch.yml or use the below environmental option if you’d like to disable the security plugin in the OpenSearch node.

```auto
      - "DISABLE_SECURITY_PLUGIN=true"

```
