commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bindul Bhowmik <>
Subject Re: NTLM authentication - how to get domain and host.
Date Thu, 01 Sep 2005 22:10:13 GMT
Hi Alexander,

You could try gettting the value from the USERDOMAIN system property. But if 
a user has logged on locally, or if the host against which you are trying to 
authenticate is on a different domain than what the user is logging into, 
your authentication might fail. This will work in Windows only, and will not 
work for non-NT versions (Windows 98, ME, etc.)


On 9/1/05, Alexander Kitaev <> wrote:
> Hello All,
> I would like to support NTLM authentication scheme in my library when 
> httpclient is used. As I understood I have to return instance of 
> NTCredentials class in my CredentialsProvider implementation.
> My question is whether there is way to get "host" and "domain" values 
> without interaction with the user, i.e. are there any environment 
> variables or system properties (assuming Windows OS) that could contain 
> reasonable defaults for those properties?
> Thanks!
> Alexander Kitaev,
> TMate Software,
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message