replication-manager
replication-manager copied to clipboard
authentication errors detection - how it detects authentication is faulty or ok
Hi
I have the problem that when I run the replication-manager-cli several times I get "blocked" for 3 minutes.
root@ha-c1:~# replication-manager-cli status --user root --password xxx
running
root@ha-c1:~# replication-manager-cli status --user root --password xxx
running
root@ha-c1:~# replication-manager-cli status --user root --password xxx
running
root@ha-c1:~# replication-manager-cli status --user root --password xxx
INFO[0000] ERROR in login unexpected end of JSON input
replication-manager-osc monitor
3 authentication errors for the user root, please try again in 3 minutes
How does the following function (server/api.go) decide if the authentication is faulty or ok? and only count if the authentication is faulty. 565e82b