I want to develop an Java application that can detect the user logged on a Window Domain. These credentials are going to be used to logging on the Java application.
I noticed that the topicstarter asks afterwards in comments if s/he can use it in a Java webapp which was answered with "no" everytime. This is true if you run the particular code at the server side, but not if you run it at the client side in flavor of an applet or jnlp which is embedded in the requested jsp/html page. It however has to send the needed information to the server side afterwards.