Hi I am working on a module in Java web application where I have to get username of the active windows user on the remote pc, I had used a couple of existing method such as:
System.getenv().get("USERNAME");
com.sun.security.auth.module.NTSystem nsys = new com.sun.security.auth.module.NTSystem(); nsys.getName();
request.getUserPrincipal();
System.getProperty("user.name")
but all giving the username of the server.