Fix server logon challenge handling