Get NTUser for internal application

Dear all,

I am looking for a way to get the NT user on the client side of an internal web application with Vaadin.
The aim is to set username automatically on a login form when the user start the application.

Any help will be highly appreciate.


I assume that by “NT user” you mean the Windows user?

As far as I know, that is not possible. I believe that it is an browser privacy feature that it doesn’t tell the user identity to websites. See for example
. Even if it were, it would be specific to IE and Windows.

If you want automation for the login, the basic techniques are:

  1. use the
    , which enables the form autocompletion in browsers,
  2. use an
    external non-Ajax login page
    for the same purpose, or
  3. use
    cookies to track users across sessions

Thanx for your help.

Yes with NTUser I mean Windows User.
I think I willl take the cookie option or the login form Vaadin.