Admin user password with LDAP

I have just set up LDAP which is working fine. However, after attempting to change the default admin password I am getting a 401 unauthorised when using the Grafana APIs with the error: Invalid username or password.

I can still log in using the GUI. I changed the password using the grafana-cli, and have also attempted to change it in the SQLite DB.

How can I change the password of the admin user?


It was a problem with our Ansible script and password variables, so it is resolved now