Hi, thanks for the reply.
The server uses Ubuntu version 14.04.3 LTS. The error I get from the client is “Authentication failed. Please try again. When joining a domain, don’t forget to specify the username as domain\user”. But after log in from the server, I stop getting this message and can connect with no problems with NoMachine.