Authentication fails with "error='user already exists'" in Healthwatch 2
search cancel

Authentication fails with "error='user already exists'" in Healthwatch 2

book

Article ID: 297506

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Healthwatch 2 is configured to use authentication mechanism LDAP for Grafana.

Authentication fails with the following error:
userId=0 orgID=0 uname= error="user already exists"


Resolution

The error is caused by the missing server attribute "username".

To fix the issue navigate to Healthwatch > Grafana ConfigurationServer attributes.

You will see something similar to:
member_of = "memberOf"
email =  "email"

Add "username" to the the box mapped to any unique attribute that exists for the user in LDAP.

For example:
member_of = "memberOf"
email =  "email"
username = "mail"

Save the changes and Apply Changes for the Healthwatch 2 tile.

For more information, refer to LDAP Authentication - Troubleshooting.