Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Connection get lost after logout a domain user

Post Reply
tschmidt
Posts: 4
Joined: 2008-03-18 10:51

Connection get lost after logout a domain user

Post by tschmidt »

Hi ultravnc users,

i found a bug in version 1.0.9.5.
Connection get lost after logout a domain user. After the user is logged out, a new connection is possible and works.

Is it normal ?
Thank you for update to 1.0.9.5. Great release with CAD and Performance.
csm
Posts: 3
Joined: 2010-12-28 16:02

Re: Connection get lost after logout a domain user

Post by csm »

I have the same problem. It isn't just logout as Domain user, but logout of user in general (non-domain). I have not yet found a solution, it didn't do this on earlier versions.
Carl S. Moore
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Connection get lost after logout a domain user

Post by redge »

Connection get lost after logout a domain user. After the user is logged out, a new connection is possible and works.
could you clarify little bit more...
mslogon I or II ?
OS tested ?
all are uvnc server/viewer 1.0.9.5 ?

user csm reported that also happen on workgroup, no domain.
support for mslogon is almost null (developer of mslogon leave)

http://www.uvnc.com/features/authentication.html

moved your subject to mslogon thread,
reason: mslogon feature did not change since uvnc 1.0.8.x
Last edited by redge on 2011-01-24 18:57, edited 1 time in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
csm
Posts: 3
Joined: 2010-12-28 16:02

Re: Connection get lost after logout a domain user

Post by csm »

Windows 7 Home Premium user profile logout. When logout of a profile, it also disconnects the UVNC connection.

Both Client and Server are 1.0.9.5.
Server is loaded as a Service.

Carl
Carl S. Moore
tschmidt
Posts: 4
Joined: 2008-03-18 10:51

Re: Connection get lost after logout a domain user

Post by tschmidt »

redge wrote:mslogon I or II ?
OS tested ?
all are uvnc server/viewer 1.0.9.5 ?
tested OS Windows 7 x64 with UltraVNC Server Installation 1.0.9.5
all viewers and servers are 1.0.9.5.

i didnt use mslogon I or II. we are using the classic vnc authentification.
any help ?

please move this thread back.
csm
Posts: 3
Joined: 2010-12-28 16:02

Re: Connection get lost after logout a domain user

Post by csm »

tschmidt wrote:
redge wrote:mslogon I or II ?
OS tested ?
all are uvnc server/viewer 1.0.9.5 ?
tested OS Windows 7 x64 with UltraVNC Server Installation 1.0.9.5
all viewers and servers are 1.0.9.5.

i didnt use mslogon I or II. we are using the classic vnc authentification.
any help ?

please move this thread back.

To clarify my case, I'm also connecting with VNC using password authentication. Then on the remote system, when I log out of a user profile in Windows 7, the VNC disconnects. I need to then reconnect the VNC session.

Carl
Carl S. Moore
montag
8
8
Posts: 24
Joined: 2006-04-27 09:19

Re: Connection get lost after logout a domain user

Post by montag »

I have a similar problem.

Connection is lost when the user disconnect, but i can't reconnect until login again (when i have the "ctrl+alt+del" vnc viewer hang on "negotiate protocol version).


Server (installed as a service) and viewer version are 1.0.9.5. I use MS logon II, but the problem exist using classic vnc authentication.

When i'm connected i can send "ctrl+alt+canc".

What can i do?

Thank you.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Connection get lost after logout a domain user

Post by redge »

auto switch codec on connection issue with vncviewer quick option=AUTO

try if with vncviewer quickoption=LAN work and save as default
let us kwow is solve the issue so could be fixed next test.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
montag
8
8
Posts: 24
Joined: 2006-04-27 09:19

Re: Connection get lost after logout a domain user

Post by montag »

redge wrote:auto switch codec on connection issue with vncviewer quick option=AUTO

try if with vncviewer quickoption=LAN work and save as default
let us kwow is solve the issue so could be fixed next test.
No differences between quickoption LAN and AUTO. From now on, i will always use LAN switch.

UPDATE: At boot i can connect to the "ctrl+alt+del screen", but if i login and then disconnect, connection is lost and i can't reconnect until the user is logged on again.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Connection get lost after logout a domain user

Post by redge »

tschmid,

could you do short step by step for reproduce the issue
anyway, i can't reproduce, i won't have domain or active directory for test.
but useful for others users
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
montag
8
8
Posts: 24
Joined: 2006-04-27 09:19

Re: Connection get lost after logout a domain user

Post by montag »

montag wrote:
redge wrote:auto switch codec on connection issue with vncviewer quick option=AUTO

try if with vncviewer quickoption=LAN work and save as default
let us kwow is solve the issue so could be fixed next test.
No differences between quickoption LAN and AUTO. From now on, i will always use LAN switch.

UPDATE: At boot i can connect to the "ctrl+alt+del screen", but if i login and then disconnect, connection is lost and i can't reconnect until the user is logged on again.
Setting "AllowShutdown" to 1 solved the problem that i can't reconnect.

Still disconnect after user logout. I also tested in a pc outside domain with classic vnc authentication: same problem
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

Did anyone figure this out? I have the same issue with MSLogon2 with encryption (Secure plugin). When I log off it kills the connection. Then I have to wait til the log off process finishes completely. Then it is fine.

We also use the query accept reject set to reject if not accepted.

This is very annoying.

Does anyone have a suggestion?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6831
Joined: 2004-04-23 10:21
Contact:

Re: Connection get lost after logout a domain user

Post by Rudi De Vos »

AllowShutdown bug fixed in 1095.1 update (Still in Beta)

[topic=27259][/topic]
Last edited by Rudi De Vos on 2011-01-24 20:01, edited 1 time in total.
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

I have the latest on version h. It still does this. Do you have any ideas?
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

Here is my INI file in case this will help you.


[Permissions]
[admin]
UseRegistry=0
MSLogonRequired=1
NewMSLogon=1
DebugMode=0
Avilog=0
path=C:\Program Files\UltraVNC
DebugLevel=8
DisableTrayIcon=1
LoopbackOnly=0
UseDSMPlugin=1
AllowLoopback=0
AuthRequired=1
ConnectPriority=1
DSMPlugin=SecureVNCPlugin.dsm
AuthHosts=
AllowShutdown=1
AllowProperties=1
AllowEditClients=1
FileTransferEnabled=0
FTUserImpersonation=0
BlankMonitorEnabled=1
DefaultScale=1
CaptureAlphaBlending=0
BlackAlphaBlending=1
SocketConnect=1
HTTPConnect=0
XDMCPConnect=0
AutoPortSelect=1
PortNumber=5900
HTTPPortNumber=5800
IdleTimeout=0
RemoveWallpaper=1
RemoveAero=1
QuerySetting=4
QueryTimeout=20
QueryAccept=0
QueryIfNoLogon=0
InputsEnabled=1
LockSetting=0
LocalInputsDisabled=0
EnableJapInput=0
kickrdp=1
service_commandline=
FileTransferTimeout=30
BlankIputsOnly=1
primary=1
secundary=0
BlankInputsOnly=1
secondary=0
[admin_auth]
group1=
group2=
group3=
locdom1=0
locdom2=0
locdom3=0
[ultravnc]
passwd=xxxxxxxxxxxxxxxxxx
passwd2=xxxxxxxxxxxxxxxxxx
[poll]
TurboMode=0
PollUnderCursor=0
PollForeground=0
PollFullScreen=0
OnlyPollConsole=0
OnlyPollOnEvent=0
EnableDriver=0
EnableHook=0
EnableVirtual=0
SingleWindow=0
SingleWindowName=
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6831
Joined: 2004-04-23 10:21
Contact:

Re: Connection get lost after logout a domain user

Post by Rudi De Vos »

The bug fixed was
Allowshutdown=0 ( Don't allow the user to shutdwon vnc)
Because the service was handled as user, it blocked the service to
manage vnc.


What's the OS you are using ?

kickrdp=1
This option is only used for Fast User Switching on XP, a OS bug caused
the FUS session in a unstable state with the following sequence
( logon user A, switch user B, logoff user B)
This force user logoff... only use it to fix this FUS bug.

DisableTrayIcon=1
Just make it temp appear again, to avoid that there is a code part in the
menu that can cause this, after testing you can put it back to 1

QuerySetting=4
This tell how to behave on the
AuthHosts=
but AuthHosts is empty

Usage Sample
AuthHosts=+123.123.123.123:?124.124.124.124:-125.125.125.125
QuerySetting=2
(+)viewer 123.123.123.123 -> get access
(?)viewer 124.124.124.124 -> Ask user access (accept/reject popup)
(-)viewer 125.125.125.125 -> access refused



All Polling parameters are 0
This make winvnc extreme sloooooow

Put something like this

TurboMode=1
PollForeground=1
EnableHook=1
Last edited by Rudi De Vos on 2011-01-24 21:12, edited 1 time in total.
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

I changed the

allowshutdown=1 to AllowShutdown =0

The kick rdp I was just trying because I ran out of idea's I changed it back to 0

The query settings we are only using 4 so we can reject all connections unless accept is clicked in 10 seconds. Should this be something different. That was set by the gui.

I did enable the tray icon

I changed the polling slike you said. Can the Enablehook be enabled on xp and windows 7?

After I fixed all those things it still closes the connection at logoff and reboot. And during a shutdown closes right after clicking shutdown. The last app part is not working.

Any other ideas??
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6831
Joined: 2004-04-23 10:21
Contact:

Re: Connection get lost after logout a domain user

Post by Rudi De Vos »

Allowshutdown=1 was always OK
AllowShutdown =0 had a bug in 1095
no need to change

You can keep 4 -> default is the Query user

The hook can be used on all OS's.
schook.dll or vnchook.dll ( schook detect better changes)

Strange, i tested the last app part several times.

Function:
SetProcessShutdownParameters(0x100,false);
Supported w2K>
0x100 Application reserved last shutdown range

see also
[post=83222][/post]

Areyou running winvnc as service ?
Last edited by Rudi De Vos on 2011-01-24 22:04, edited 1 time in total.
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

Yes I am running it as a service. I think I am missing the part that if it still has a prompt then it will reconnect. In my testing there was no prompt so no reason to reconnect.

The only thing I need now is the command line parm for setting the reconnect option. Is there one?

Rudi thanks for all your help with this. My boss will not allow us to roll out any beta software. Do you have any idea when this will become stable?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6831
Joined: 2004-04-23 10:21
Contact:

Re: Connection get lost after logout a domain user

Post by Rudi De Vos »

1.0.5.9.1 update willl be release within 14 days.
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

I saw on this page below that there is an option -reconnect which is exactly what we are looking for. It says this is not available at the command line yet. Is this something that will be added soon? Or is there a way to add a default vncviewer settings to the c:\Program Files\UltraVNC\ directory so it can be globally set?


http://www.uvnc.com:8080/docs/uvnc-view ... eters.html
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6831
Joined: 2004-04-23 10:21
Contact:

Re: Connection get lost after logout a domain user

Post by Rudi De Vos »

Commandlines are merged with default.
You can set it as default and use commandlines.
OR
Use a custom file
vncviewer -config myconfigfile -UseDSMPlugin ....

It could be that you need to use the full path for myconfigfile

-reconnect is not implemented
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

vncviewer.exe -config Default.vnc computername

My Default.vnc file looks like below and is located in the C;\Program Files\UltraVNC folder. The same place as the Vncviewer.exe

I added the full path and without. No matter what it does not use this file below.

Is there a way to have a global default versus only user setting?

If I double click this Default.vnc file it works just fine just not at the command line.


[connection]
host=
port=5900
proxyhost=
proxyport=-1
password=
[options]
use_encoding_0=1
use_encoding_1=1
use_encoding_2=1
use_encoding_3=0
use_encoding_4=1
use_encoding_5=1
use_encoding_6=1
use_encoding_7=1
use_encoding_8=1
use_encoding_9=1
use_encoding_10=0
use_encoding_11=0
use_encoding_12=0
use_encoding_13=0
use_encoding_14=0
use_encoding_15=0
use_encoding_16=1
use_encoding_17=1
preferred_encoding=5
restricted=0
viewonly=0
nostatus=0
nohotkeys=0
showtoolbar=1
AutoScaling=0
fullscreen=0
directx=0
autoDetect=1
8bit=0
shared=1
swapmouse=0
belldeiconify=0
emulate3=1
JapKeyboard=0
emulate3timeout=100
emulate3fuzz=4
disableclipboard=0
localcursor=1
Scaling=0
scale_num=1
scale_den=1
cursorshape=1
noremotecursor=0
compresslevel=6
quality=6
ServerScale=1
Reconnect=10
EnableCache=0
QuickOption=0
UseDSMPlugin=1
UseProxy=0
sponsor=1
DSMPlugin=SecureVNCPlugin.dsm
ExitCheck=0
FileTransferTimeout=30
KeepAliveInterval=5
SocketKeepAliveTimeout=10000
ThrottleMouse=0
AutoAcceptIncoming=0
AutoAcceptNoDSM=0
RequireEncryption=0
PreemptiveUpdates=0
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Connection get lost after logout a domain user

Post by redge »

davidgrudek

please stop uvnc_service
start uvnc_settings... tab connection
tick Query If No Logon
OK

or
manual steps.
start... run... cmd as computer administrator
sc stop uvnc_service
open notepad... load ultravnc.ini from ultravnc folder
please modify the key value below to ultravnc.ini

LockSetting=1
QueryIfNoLogon=0 (default) change to 1

is it a bug or half bug ?
popup query on logon screen should be enabled if winvnc detect service mode or should be

QuerySetting=n
0 - +:Accept, ?:Accept, -:Query
1 - +:Accept, ?:Accept, -:Reject
2 - +:Accept, ?:Query, -:Reject [Default]
3 - +:Query, ?:Query, -:Reject
4 - +:Query, ?:Reject, -:Reject

tested only on workgroup OK, i have no domain for testing.

QueryIfNoLogon=0
Authentication rejected even password is correct

QueryIfNoLogon=1
password prompt to vncviewer,
authenticate success, query appear to remote... accept, viewer connected.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

I am satisfied with the 4 - +:Query, ?:Reject, -:Reject

The software does not query at all if in logged off state.

I think there should be a way to have it with no query as well if computer is locked. The same as in logged off.

AT that point, there is no one there to accept the connection.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Connection get lost after logout a domain user

Post by redge »

Rudi

windows set screen saver
[v]On resume, display logon screen

winvnc as service system
QueryIfNoLogon=1
QuerySetting=4
LockSetting=1


host locked on screen saver activated....
viewer connect, auto rejected QueryIfNoLogon is ignored if screen saver active.
queryifnologon need to resume then execute the Queryvalue

bug confirmed:
QuerySetting=n fail won't wake up for resume screen saver to execute
Query is ignored/HIDDEN ONLY if screen saver active
Last edited by redge on 2011-01-25 23:20, edited 5 times in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Connection get lost after logout a domain user

Post by davidgrudek »

Is it possible to not pop up anything just as in the logged off state if locked?

Logged off just accepts. Maybe I am not understanding the terminology and we are talking about the same thing.
jender
Posts: 2
Joined: 2012-05-18 07:41

Re: Connection get lost after logout a domain user

Post by jender »

I am having a related problem, just the other way around. I cannot establish a connection to the server if the server is in a logged off state.
Once logged on, no problem connection works.
When logged off, If i connect via rdp and disconnect and then try to connect via uvnc viewer, then it works.
Post Reply