Locked user fails authentication (issue from davidgrudek)
Symptom.
If a computer is set with query accept/deny and the pc goes into a locked state and I am using MS2 authentication, it will always say authentication failure. If you go unlock it manually then after that it log in with no problems.
solution of Rudi
edit ultravnc.ini
*timeout/screensaver -> Use default, in your case reject
Timeout default == screensaver action.
QuerySetting=4
QueryTimeout=10
QueryAccept=1 <<< Action after timeout/screensaver/logon
QueryIfNoLogon=1 <<< no popup when logon/screensaver