I have a jsp page that will be viewed through ie on windows platform, that is a member of domain.
I need to get the domain name and logged in windows user name to use it in my page.
I've looked through similar topics. Found no answer.
1.
System.parameter("user.name")
is not ok. it returns user that runs jvm.
2.
import com.sun.security.auth.module.NTSystem;
NTSystem system = new NTSystem();
system.getDomain()
system.getName()
that didn't work through jsp, though the answer is correct.
3. I found some api at http://www.sinotar.com/download/swin/doc/index.html
it did the right thing, but it's not free.
Could anyone advice me smth?
I've looked