| View previous topic :: View next topic |
| Author |
Message |
Bob Nudd Guest
|
Posted: Wed Sep 27, 2006 4:40 pm Post subject: Upgrade from 9 to 10 error |
|
|
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
|
Posted: Wed Sep 27, 2006 10:47 pm Post subject: Re: Upgrade from 9 to 10 error |
|
|
"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
|
Posted: Thu Sep 28, 2006 2:05 am Post subject: Re: Upgrade from 9 to 10 error |
|
|
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
|
Posted: Thu Sep 28, 2006 4:32 am Post subject: Re: Upgrade from 9 to 10 error |
|
|
"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 |
|
 |
|