BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Upgrade from 9 to 10 error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Bob Nudd
Guest





PostPosted: Wed Sep 27, 2006 4:40 pm    Post subject: Upgrade from 9 to 10 error Reply with quote



I orignally had this code working for indy 9 :

procedure TfrmMain.idHTTP1SelectAuthorization(Sender: TObject;
var AuthenticationClass: TIdAuthenticationClass;
AuthInfo: TIdHeaderList);
begin
if (pos('Proxy-Authenticate: NTLM', idHTTP1.Response.RawHeaders.Text) >
0) then
begin
idHTTP1.ProxyParams.Clear;
idHTTP1.ProxyParams.BasicAuthentication := false;
AuthenticationClass := TIdSSPINTLMAuthentication;
end
else
begin
// Next check for Basic
if (pos('Proxy-Authenticate: Basic',idHTTP1.Response.RawHeaders.Text) >
0) then
begin
AuthenticationClass := TIdBasicAuthentication;
idHTTP1.ProxyParams.BasicAuthentication := true;
idHTTP1.ProxyParams.ProxyUsername:=proxyusername;
idHTTP1.ProxyParams.ProxyPassword:=proxypassword;
end
else
begin
// Then Digest
if (pos('Proxy-Authenticate:
Digest',idHTTP1.Response.RawHeaders.Text) > 0) then
AuthenticationClass := TIdDigestAuthentication;
end;
end;
end;

When i upgraded to v10 the line : AuthenticationClass :=
TIdSSPINTLMAuthentication; gives me a error: And i cannot find teh
replacement code for v10

Can anyone help?
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Sep 27, 2006 10:47 pm    Post subject: Re: Upgrade from 9 to 10 error Reply with quote



"Bob Nudd" <Bob.Nudd (AT) gmail (DOT) com> wrote in message
news:451a6331$1 (AT) newsgroups (DOT) borland.com...

Quote:
When i upgraded to v10 the line : AuthenticationClass :=
TIdSSPINTLMAuthentication; gives me a error:

What is the actual error? Please be more specific.


Gambit
Back to top
Bob Nudd
Guest





PostPosted: Thu Sep 28, 2006 2:05 am    Post subject: Re: Upgrade from 9 to 10 error Reply with quote



error is :
[Fatal Error] main.pas(11): File not found: 'IdAuthenticationSSPI.dcu'

I have replace that with IdAuthenticationNTLM

Which gives me this error:

Undeclared identifier: 'TIdSSPINTLMAuthentication'


"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:451ab9bb (AT) newsgroups (DOT) borland.com...
Quote:

"Bob Nudd" <Bob.Nudd (AT) gmail (DOT) com> wrote in message
news:451a6331$1 (AT) newsgroups (DOT) borland.com...

When i upgraded to v10 the line : AuthenticationClass :=
TIdSSPINTLMAuthentication; gives me a error:

What is the actual error? Please be more specific.


Gambit

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Sep 28, 2006 4:32 am    Post subject: Re: Upgrade from 9 to 10 error Reply with quote

"Bob Nudd" <Bob.Nudd (AT) gmail (DOT) com> wrote in message
news:451ae77e$1 (AT) newsgroups (DOT) borland.com...

Quote:
error is :
[Fatal Error] main.pas(11): File not found: 'IdAuthenticationSSPI.dcu'

You don't have Indy installed properly, or your IDE paths are not configured
properly. The dAuthenticationSSPI unit does exist in Indy 10.

Quote:
I have replace that with IdAuthenticationNTLM

Which gives me this error:

Undeclared identifier: 'TIdSSPINTLMAuthentication'

As it should be, because TIdSSPINTLMAuthentication is not declared in the
IdAuthenticationNTLM unit. That unit defines the TIdNTLMAuthentication
class instead.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.