Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

get Windows domain name and user through jsp

807607Jan 18 2007 — edited Jan 18 2007
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2007
Added on Jan 18 2007
1 comment
1,342 views