I have recently downloaded a vbscript "plugin" called "simple COM-wrapper
for Terminal Services Manager". You can find it at
http://kentldyer.com/index.htm under "KIX scripts", look for wtsmanager.zip.
After registering the supplied DLL on a terminal server, it allows me to
list any and all information about all sessions on that server with a few
lines of VBScript, such as the session status and, what I actually wanted to
use it for, the IP-address and netbios name of the client computer. On
Win98/2k/XP workstations, this works like a charm. I can now retrieve the
current workstation name and ip-address, instead of just the workstation
that was used during the initial login.
However, when I run the script when logged in using a linux client (specs
are below), the script reports 127.0.0.1 as the IP-address. The netbios-name
is detected correctly (samba is installed for cdrom+floppy access). Although
it's not a problem for me (I can easily find the IP-address using the
DNS-entry for the netbios-name), I think that rdesktop is not reporting the
correct IP-address. If I connect to the same session using a Windows client,
then the script reports the correct address again (the name and ip-address
of the windows client).
Two servers are running using NLB. Connecting to the shared ip-address or
the private ip-address of one of the servers gives, as far as I have tested,
the same result. The linux client is a member of the same domain the
Terminal Server is in.
I have tested this on multiple (identical) linux clients with the same
results. Did I forget or misconfigure something?
- Marijn Hofstra
Here are the specs (listing all that I think is relevant).
2x Windows 2003 Terminal Server, Standard edition
Booting via DHCP
Samba version 3.02a-Debian
rdesktop version: 1.3.1
Windows-clients are booting via DHCP as well