SASL LOGIN authentication failed: Connection lost to authentication server

Does following command work?

account-provider-test dump

Does restarting NSDC solve the problem?

systemctl restart nsdc

Maybe machines.target is not running/enabled?

A config restore may solve the problem too: