Re: getting hostname from NT machine via Citrix

From: Tilman Bohn (myfirstname_at_gmx.net)
Date: 02/23/05


Date: Wed, 23 Feb 2005 20:07:08 GMT

In message <iY4Td.127548$68.76255@fe1.news.blueyonder.co.uk>,
PerfectDayToChaseTornados wrote on Wed, 23 Feb 2005 19:37:50 GMT:

[...]
>| > LDAP lookup. What we are stuck on is the following. We would like to be
> able
>| > to get the hostname of the NT machine which is logging on. Someone has
>|
>| Please define `hostname'.
>
> The machine name on the NT network. Failing that the I.P. address of the
> machine will do. We just need to be able to identify which machine the login
> came from.

  That's why I asked. Hostname is an overloaded term, especially in a
heterogeneous environment. You mentioned tomcat so you are alreay doing
servlets. The client IP address should be available through
[Http]ServletRequest[Wrapper]'s getRemoteAddress() method. Similarly,
you get the _DNS_ hostname through getRemoteHost(). This may or may not
coincide with its NetBIOS name (which I wouldn't know how to retrieve).

-- 
Cheers, Tilman
`Boy, life takes a long time to live...'      -- Steven Wright


Relevant Pages

  • Re: Suse 9.0 slooowness
    ... And fix it. ... Similarly you have EIGHT processes stuck trying to log to your syslog. ... >> What does your machie's hostname resolve to? ...
    (comp.os.linux.setup)
  • Re: changing hosts to get my machine name ?
    ... William Case wrote: ... This is an old stupid question but I am stuck nonetheless. ... although you should prbably set your hostname there as well. ...
    (Fedora)
  • Re: HTTPS hostname wrong
    ... the hostname in the CN does match the hostname in the request. ... am stuck in this issue. ... Anyone knows how to esclate the issue to SUN? ...
    (comp.lang.java.programmer)