You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Thamm, Russell" <ru...@dsto.defence.gov.au> on 2003/10/23 06:29:42 UTC
NTLM Question
Hi,
I am interested in using NTLM for authentication on my Apache based webdav server.
I am using the Slide client (based on httpclient)
I understand that HttpClient supports NTLM but requires me to supply the user
credentials.
I want to obtain the user's logon credentials from the OS and avoid requiring the
user to reenter his userid and password.
Any ideas on how I do that under java.
thanks
Russell Thamm
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
Re: NTLM Question
Posted by Adrian Sutton <ad...@intencha.com>.
On 23/10/03 2:29 PM, "Thamm, Russell" <ru...@dsto.defence.gov.au>
wrote:
> Hi,
>
> I am interested in using NTLM for authentication on my Apache based webdav
> server.
> I am using the Slide client (based on httpclient)
>
> I understand that HttpClient supports NTLM but requires me to supply the user
> credentials.
>
> I want to obtain the user's logon credentials from the OS and avoid requiring
> the
> user to reenter his userid and password.
>
> Any ideas on how I do that under java.
You can't. You will have to write native code to do this as it's inherently
platform specific. Having said that, Java 1.4.2_02 released recently does
include support for NTLM authentication without prompting the user for their
password so if you can work out how they did that and find a way to take
advantage of it with pure Java it would make a superb addition to the
contrib package.
Personally, I haven't revisited the problem since 1.4.2 came out so I can't
shed too much light on it.
>
> thanks
> Russell Thamm
Regards,
Adrian Sutton.
----------------------------------------------
Intencha "tomorrow's technology today"
Ph: 38478913 0422236329
Suite 8/29 Oatland Crescent
Holland Park West 4121
Australia QLD
www.intencha.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
Re: NTLM Question
Posted by Roland Weber <RO...@de.ibm.com>.
Hello Russell,
the functionality to retrieve the logon credentials from the
operating system is very specific to Windows. On Linux,
some projects (Samba client?) implement an extra PAM
(Pluggable Authentication Module) to mimic this behavio.
It's not good style for the OS itself to remember credentials
longer than absolutely required.
In short, you will have to use OS (Windows) specific code,
which will probably have to be plugged in via JNI, the Java
Native Interface.
regards,
Roland
"Thamm, Russell" <ru...@dsto.defence.gov.au>
23.10.2003 06:29
Please respond to "Commons HttpClient Project"
To: Commons HttpClient Project
<co...@jakarta.apache.org>
cc:
Subject: NTLM Question
Hi,
I am interested in using NTLM for authentication on my Apache based webdav
server.
I am using the Slide client (based on httpclient)
I understand that HttpClient supports NTLM but requires me to supply the
user
credentials.
I want to obtain the user's logon credentials from the OS and avoid
requiring the
user to reenter his userid and password.
Any ideas on how I do that under java.
thanks
Russell Thamm
---------------------------------------------------------------------
To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org