cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: integrated windows authentication not supported?

From: <Andy.D.Loechler_at_wellsfargo.com>
Date: Thu, 30 Mar 2006 07:42:01 -0600

Yes thanks that worked.

I'm used to writing win32 console stuff. The security context is always
(almost always) the current user. The only reason you would specify a
--user is if you wanted to become somebody else.

I should have just looked at the source code. Me bad.

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Ralph Mitchell
Sent: Wednesday, March 29, 2006 3:39 PM
To: the curl tool; Dan Fandrich
Subject: Re: integrated windows authentication not supported?

On 3/29/06, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Wed, Mar 29, 2006 at 01:27:14PM -0600,
Andy.D.Loechler_at_wellsfargo.com wrote:
> > Both --anyauth and --ntlm give the same content back to me.
> >
> > Curl --ntlm https://servername/
> >
> > Right?
> >
> > No matter what option I use I get the same 401.2
>
> That was assuming you were already using --user to set your user ID
and
> password. The server is complaining that it doesn't know who you are.
>

I had a similar problem one time - the server didn't understand when I
sent the authentication *before* it had demanded it. I had to send a
request for the page, then re-send the exact same request with "-U
userid:passwd".

I think what broke on the server side was that it wanted to give me a
cookie first, *then* do the authentication, *then* exchange more
cookies. The first thing my script did was delete the cookie file so
there would be no lingering session info to mess things up.

Ralph Mitchell
Received on 2006-03-30