Re: problem using NTLM authentication with default OS credentials
Date: Fri, 11 Jul 2014 10:47:17 +0100
On Fri, 2014-07-11 at 11:24 +0200, Michael Osipov wrote:
> Am 2014-07-10 17:17, schrieb David Woodhouse:
> > On Fri, 2014-05-30 at 10:21 +0200, Michael-O wrote:
> >> Providing ':' will only work with SSPI, on Linux/Unix, there is not
> >> NTLM password cache. ':' works only with a Kerberos credential cache.
> > That isn't strictly true. Samba/winbind has an NTLM password cache, and
> > it works fine via the /usr/bin/ntlm_auth helper tool or libwbclient.
> > Firefox uses this to authenticate to HTTP servers, as does libsoup.
> That is correct on Unix. Though, I do not have this setup running at
> work. That is feature NTLM_WB. Did you actually try that with curl?
FWIW you can test with a trivial replacement for ntlm_auth with your
password compiled in. http://david.woodhou.se/ntlm_auth_v2.c should do
I just tested it here and it's broken though, since the auth response is
usually larger than the 200 bytes that the curl expects. This fixes it
for me: http://git.infradead.org/users/dwmw2/curl.git/commitdiff/655d313
- application/x-pkcs7-signature attachment: smime.p7s