EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Connection error 96269

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#26500
Posted: 09/17/2013 15:59:01
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

I have been playing with an error "Connection error 96269".

After research the web, I have seen some issues in older version of SecureBlackBox components in the proxy área.

I am using the following code to "pass throught" a proxy:

FHttpsClient.UseHttpProxy := False;
FHttpsClient.UseWebtunneling := True;
FHttpsClient.WebTunnelAddress := ProxyHost;
FHttpsClient.WebTunnelPort := StrToIntDef(ProxyPort,0);
if ProxyUserName <> '' then begin
FHttpsClient.WebTunnelAuthentication := wtaBasic;
FHttpsClient.WebTunnelUserId := ProxyUserName;
FHttpsClient.WebTunnelPassword := ProxyPassword;
end else begin
FHttpsClient.WebTunnelAuthentication := wtaNoAuthentication;
end;

Is there anything I can do to solve this connection error ? I have already checked the certificates, the connection with the webservice and both of them are working so good.

The proxy is ISA server and I suspect the problem is with Authentication but I am not on the site and can not test it. What do you suggest ?
#26501
Posted: 09/18/2013 00:35:03
by Eugene Mayevski (EldoS Corp.)

1) Enable UseNTLM property
2) try SecureBlackbox 11. We've made a workaround for some not-very-adequate proxy servers there.


Sincerely yours
Eugene Mayevski
#26512
Posted: 09/18/2013 04:30:24
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

1) I have changed my code for user inform the method of proxy authentication:

FHttpsClient.UseHttpProxy := False;
FHttpsClient.UseWebtunneling := True;
FHttpsClient.WebTunnelAddress := ProxyHost;
FHttpsClient.WebTunnelPort := StrToIntDef(ProxyPort,0);
if ProxyUserName <> '' then begin
if ProxyMethod = '' then begin
FHttpsClient.WebTunnelAuthentication := wtaBasic;
end else if ProxyMethod = 'Windows' then begin
FHttpsClient.WebTunnelAuthentication := wtaNTLM;
end else if ProxyMethod = 'Digest' then begin
FHttpsClient.WebTunnelAuthentication := wtaDigest;
end else if ProxyMethod = 'None' then begin
FHttpsClient.WebTunnelAuthentication := wtaNoAuthentication;
end;
FHttpsClient.WebTunnelUserId := ProxyUserName;
FHttpsClient.WebTunnelPassword := ProxyPassword;
end else begin
FHttpsClient.WebTunnelAuthentication := wtaNoAuthentication;
end;

One of my customers is using proxy with "Basic" authentication and it is working very well. The use of UseNTLMAuth property is optional in this case or I have to use to allow this kind of authentication ? The same idea of UseDigestAuth.
#26513
Posted: 09/18/2013 04:31:57
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

And I am waiting for final version 11 to update my code.
#26514
Posted: 09/18/2013 04:34:13
by Vsevolod Ievgiienko (EldoS Corp.)

Quote
The use of UseNTLMAuth property is optional in this case or I have to use to allow this kind of authentication ? The same idea of UseDigestAuth.

Both properties should be turned on if you expect these authentication types to be used by users.
#26515
Posted: 09/18/2013 04:41:36
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

Ok. But I have one more doubt.

Should I use:

FHttpsClient.WebTunnelAuthentication := wtaNTLM;
FHttpsClient.UseNTLMAuth := True;

or if I drop the code about WebTunnelAuthentication and just use:

UseNTLMAuth := True;
UseDigestAuth := True;

In other words, Do I need to be worried about what method proxy is using allowing the user inform it to the code or just use the above two lines ?
#26516
Posted: 09/18/2013 04:53:32
by Vsevolod Ievgiienko (EldoS Corp.)

Sorry, I've missed that we are talking about proxy authentication but not about authentication on the end-point that we reach through this proxy.

In case when authentication is set for the end-point you should use UseNTLMAuth/UseDigestAuth propeties.

In case when you need to adjust authentication for a proxy you should set FHttpsClient.WebTunnelAuthentication/HTTPProxyAuthentication property.
#26517
Posted: 09/18/2013 05:02:25
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

No problem.

I will update the application at customer site and let you know about the results.

Thanks for always fast and complete answers. I have been learning a lot with our conversations.
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 1107 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!