> Joerg,
> 
> We have looked into this issue at some length.  Getting session zero
> reconnected to the console is really only a workaround, albeit one that is
> certainly worth providing for now.  We have code that will do this, but it
> requires that session zero be automatically logged off if that session is
> not connected to the console when a VNC connection comes in...
> 
> Cheers,
> 
> Wez @ RealVNC Ltd.

well okay

 again i kept on looking through the things and
now i am able to activate session zero without
session zero being logged out automatically.

 as i m running xp pro which does not provide
more than one person logged on to the terminal
server (at least with my non fast user switching
config) i do not know exactly what will happen
on a real terminal server with lot of sessions.

 but as i understand vnc and its core structure
its like vnc is like a parasite (a good symbiotic
one of course) that needs a "host". and this
host to "jump on its back" can be an *active*
console or its display adapter *or* it can be
(and i want to offer you my deep and honest
respect for making this possible) an *active*
ts session.

 in my case the "active hosts" that i can use
to connect are always ts session id 0.

 so now i found that ts command "tscon" and
now it s really easy and i would say that it
is not a "big hack" anymore.

 (this one i found on
http://www.robvanderwoude.com/termserv.html )

 based on what i wrote before i need a
webserver that is running whithout a user
logged on that will trigger the commands.
this time the webserver even could be user
session depending but i havent tested it.

 so i call this script from the outside
when ts session zero was disconnected:
(if it s not then it will be forced to)

#!/usr/bin/perl

print "Content-Type: text\/plain\n\n";

if (substr($ENV{'REMOTE_ADDR'},0,10) ne "192.168.0.") {
  print "[STATUS]\nstatus=error\n\n[ERROR]\nerror=noauth\n"
} else {
  system("tscon 0 /DEST:console /PASSWORD:iwonttellyou");
  print "[STATUS]\nstatus=success\n\n[ACTION]\nsessions id 0 is on
console\n"
}

ok ok this time i need the password of the
logged on user...

 i m sure it can even be run from a script
that you trigger manually befor you disconnect
from remote desktop (having a sleep(30) command
built in before it fires tscon) or probably
a script that checks evers hour if there are
disconnected active sessions zero but then it
becomes a security issue as one never knows
who sits in front of the monitor then.

 well any other or further solutions would
be something more like the linux vnc solution
where we have an x server which here on
windows is the terminal server right now.
and that one will not speak directly to a
vnc client i m pretty sure as daddy wont
let you drive his brand new car. but if he
would then vncclient would just be another
remote desktop client...

 cheers again and a lovely weekend
/joerg

ps. and onother one: you can use this
for a simple perl script to log out
and being able to logon directly after
that with vnc without any other service
or server (apart from vnc server ;D) :

system("tscon 0 /DEST:console");
system("logoff");

now that was REALLY easy :)
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to