Ankh25-zz / cassia

Automatically exported from code.google.com/p/cassia
0 stars 0 forks source link

feature request or just info #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. VmWare View Environment
2. Install Client, Connect to Windows7 Session
3. Run Cassia, read value ITerminalServicesSession.ClientIPAddress

ITerminalServicesSession.ClientIPAddress is null.
of course this will work with windows RDP, but not with WmWare View.

To be honest i expected that result and i think vmware is probably not handling 
the WTSClientAddress proper.

There isn't much info, but what i found was this:
http://communities.vmware.com/thread/201130

Thank you for all the wunderful work that has been done in cassia
Greets
Philipp

Original issue reported on code.google.com by GrungeB...@gmail.com on 10 Dec 2012 at 5:04

GoogleCodeExporter commented 9 years ago
I'm not familiar with VMware, so I don't have a test setup I could use to try 
to reproduce this issue. If you could step into the code with a debugger and 
provide more details, like the return code and data provided by 
WTSQuerySessionInformation, that would help.

Original comment by danports on 10 Dec 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Hi

I don't have any knowledge about VmWare View. We are working at a school and 
plan to use VmWare View as replacement for fat clients (personal computers). I 
coded a Client/Server App that is registering logins and logouts of all users 
in a DB. I'm using Cassia to read the session values in the client service.

I tried to get some information together, but I don't think this is much help.
I believe the problem is, that VmWare View isn't setting the WTS values in 
windows.

-value of clientAddress in GetClientIPAddress()::GetClientIPAddress():
clientAddress    {Cassia.Impl.WTS_CLIENT_ADDRESS} Cassia.Impl.WTS_CLIENT_ADDRESS
-         AddressFamily    0    int
-        Address    {byte[20]}    byte[]
        [0]    0    byte
        [1]    7    byte
        [2]    0    byte
        [3]    0    byte
        [4]    1    byte
        [5]    0    byte
        [6]    0    byte
        [7]    0    byte
        [8]    0    byte
        [9]    0    byte
        [10]    0    byte
        [11]    0    byte
        [12]    0    byte
        [13]    4    byte
        [14]    0    byte
        [15]    0    byte
        [16]    0    byte
        [17]    0    byte
        [18]    0    byte
        [19]    0    byte
forced into IPAddress:     {0.0.1.0}

- registry entries from VmWare View.
i think the best way, to detect that we are on a vmware view machine, is to 
check the registry for this keys:
[HKEY_CURRENT_USER\Volatile Environment]
"ViewClient_MAC_Address"="00-AF-09-66-E6-05"
"ViewClient_Machine_Name"="CP-PR-01"
"ViewClient_Type"="Windows"
"ViewClient_Broker_Remote_IP_Address"="192.168.1.151"
"ViewClient_Machine_Domain"="domain"
"ViewClient_TZID"="Europe/Italy"
"ViewClient_IP_Address"="192.168.1.151"
"ViewClient_Broker_DNS_Name"="viewconnection.domain"
"ViewClient_Windows_Timezone"="W. Europe Standard Time"
"ViewClient_LoggedOn_Username"="pr"
"ViewClient_Broker_Tunneled"="false"
"ViewClient_Broker_URL"="https://viewconnection.domain:443"
"ViewClient_LoggedOn_Domainname"="domain"
"ViewClient_Broker_UserName"="pr"
"ViewClient_Broker_DomainName"="domain"
"ViewClient_Protocol"="PCOIP"
-(address/names have been changed for security reason)-

All the best & Thanks
Philipp 

Original comment by GrungeB...@gmail.com on 11 Dec 2012 at 3:01

GoogleCodeExporter commented 9 years ago
Yes, based on that info, it sounds like your diagnosis that this issue is a 
VMware one is correct. Glad you were able to find another way to get the 
information you needed.

Original comment by danports on 12 Dec 2012 at 3:39