You could get the current user's domain and name from:

http://docs.oracle.com/javase/1.5.0/docs/guide/security/jaas/spec/com/sun/security/auth/module/NTSystem.html

Good luck getting the password.

-----Original Message-----
From: yuanyun.cn [mailto:[email protected]] 
Sent: Wednesday, April 03, 2013 8:50 AM
To: [email protected]
Subject: How to get the default windows user/password and the domain name for 
the current logined user?

Hi, all:

When use httpcomponents protected web resource in intranet, we can provide 
NTCredentials with windows user/password and the domain name.
But is there a way to get the default windows user/password and the domain name 
for the current logined user in this machine.
So I can use these info to access the protected resource.

Thanks very much for any reply and help.



--
View this message in context: 
http://httpcomponents.10934.n7.nabble.com/How-to-get-the-default-windows-user-password-and-the-domain-name-for-the-current-logined-user-tp19675.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to