Article View: borland.public.cppbuilder.internet.socket
Article #462Re: TIdHTTP and Windows Authentication
From: Aladin J.
Date: Wed, 20 Feb 2008 11:44
Date: Wed, 20 Feb 2008 11:44
58 lines
4108 bytes
4108 bytes
Anybody help ?? "Aladin J." <j_aladin@hotmail.com> wrote in message news:47b38c15@newsgroups.borland.com... >I try changing to use TIdSSPINTLMAuthentication instead BUT caused by the >package of Indy 9.0.xx does not provide for C++. > > I have to add IdAuthenticationSSPI.pas and IdSSPI.pas in Indy60.dpk first > and the build new package which it works OK, no error found. > > But when I complied program by including <IdAuthenticationSSPI.hpp> there > generates too many errors and I cannot fix them (Most in file IdSSPI.hpp > and IdAuthenticationSSPI.hpp which automatically generated from compiler). > > Example error: > IdSSPI.hpp(866): E2040 Declaration terminated incorrectly. > IdSSPI.hpp(867): E2040 Declaration terminated incorrectly. > IdAuthenticationSSPI.hpp(866): E2238 Multiple declaration for '_fastcall > ESSPIException::ESSPIException(AnsiString,int)' > > Is this a right way to handle this task? > > Aladin J. > > "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message > news:47b37b92$1@newsgroups.borland.com... >> >> "Aladin J." <j_aladin@hotmail.com> wrote in message >> news:47b3658e@newsgroups.borland.com... >> >>> WWW-Authenticate: Negotiate >>> WWW-Authenticate: NTLM >> >> The server is asking for "Negotiate" first. You have to use >> TIdSSPINTLMAuthentication instead of TIdNTLMAuthentication for that. >> However, since the server is also stating that "NTLM" is supported, then >> TIdNTLMAuthentication should have worked ok. Something else has to be >> happening. Since TIdNTLMAuthentication's constructor loads the OpenSSL >> DLLs, you probably don't have the right version installed. That is the >> only thing I can think of that would cause the constructor to throw an >> exception. >> >>> I supprise in request caused by it should have more tag liked >>> "Authorization: NTLM TlRMTVNTUAA..........." but it's gone. >> >> TIdHTTP does not send authorization credentials unless the server >> explicitally asks for them first. In this case, you sent a request, and >> the server replied asking for the credentials. There should have been a >> second request sent automatically after that which included the >> credentials that TIdNTLMAuthentication generates. Of course, if you >> can't create the TIdNTLMAuthentication object to begin with, then it >> won't be available to generate that data. >> >> >> Gambit >> >> >
Technical Details
Message-ID:
<47bc1261@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47ab27fc@newsgroups.borland.com> <47ab4352$1@newsgroups.borland.com> <47abc8cd@newsgroups.borland.com> <47b08ae4$1@newsgroups.borland.com> <47b19477@newsgroups.borland.com> <47b1d8a6$1@newsgroups.borland.com> <47b2604f@newsgroups.borland.com> <47b27339$1@newsgroups.borland.com> <47b28f19@newsgroups.borland.com> <47b29d49$1@newsgroups.borland.com> <47b2f1f8$1@newsgroups.borland.com> <47b32b3f$2@newsgroups.borland.com> <47b3658e@newsgroups.borland.com> <47b37b92$1@newsgroups.borland.com> <47b38c15@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ecad3022b25c513d X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Aladin J." <j_aladin@hotmail.com> From: "Aladin J." <j_aladin@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47ab27fc@newsgroups.borland.com> <47ab4352$1@newsgroups.borland.com> <47abc8cd@newsgroups.borland.com> <47b08ae4$1@newsgroups.borland.com> <47b19477@newsgroups.borland.com> <47b1d8a6$1@newsgroups.borland.com> <47b2604f@newsgroups.borland.com> <47b27339$1@newsgroups.borland.com> <47b28f19@newsgroups.borland.com> <47b29d49$1@newsgroups.borland.com> <47b2f1f8$1@newsgroups.borland.com> <47b32b3f$2@newsgroups.borland.com> <47b3658e@newsgroups.borland.com> <47b37b92$1@newsgroups.borland.com> <47b38c15@newsgroups.borland.com> In-Reply-To: <47b38c15@newsgroups.borland.com> Subject: Re: TIdHTTP and Windows Authentication Date: Wed, 20 Feb 2008 18:44:42 +0700 Lines: 59 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-874"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 202.57.179.42 Message-ID: <47bc1261@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1203507809 202.57.179.42 (20 Feb 2008 03:43:29 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail