login about faq

I have an application that connects to an sFTP site with no problems, that is until a proxy is used that requires NTLM authentication.

19/11/2015 12:14:34 : Connection failed, : ChilkatLog: Connect_SFtp:

DllDate: Dec  5 2014
ChilkatVersion: 9.5.0.46
UnlockPrefix: BROADRSSH
Username: *:*
Architecture: Little Endian; 32-bit
Language: .NET 4.0
VerboseLogging: 0
SftpVersion: 0
hostname: *.*.*.*
port: 22
httpProxyConnect:
  proxyHostname: *.*.*.*
  proxyPort: 8080
  proxyAuthMethod: NTLM
  proxyUsername: pricep
  proxyConnectNtlm:
    t1_flags: 0x8a207
    ConnectRequest: CONNECT 193.36.1.56:22 HTTP/1.1

Connection: Keep-Alive Proxy-Connection: Keep-Alive Host: 193.36.1.56 Proxy-Authorization: NTLM TlRMTVNTUAABAAAAB6IIAAAAAAAAAAAADgAOACAAAABMT05EMTMzNVBSSUNFUA==

Sending CONNECT with NTLM Type1 message to proxy... Receiving NTLM TYPE2 message from proxy... NtlmChallenge: TlRMTVNTUAACAAAAAAAAAAAAAAAFgokA5n178cNKcPgAAAAAAAAAAAAAAAAAAAAA

    genType3:
      TargetName: 
      nbComputer: 
      nbDomain: 
      dnsComputer: 
      dnsDomain: 
      t2_flags: 0x898205
      t3_flags: 0x88205
      ntlmDomain: 
      ntlmUsername: pricep
      workstation: LOND1335PRICEP
      Generating random client challenge.
      ClientChallenge: 4172 B7D8 307A 45D1
      NtlmVersion: 1
      ntlmVersion1:
        LmResponse: 4172 B7D8 307A 45D1 0000 0000 0000 0000

0000 0000 0000 0000

        NtResponse: A5CA AA69 484D 658B 780F FD42 4A6F 2BDA

D226 ECCC 738B EA1A

      --ntlmVersion1
    --genType3
    Sending CONNECT with NTLM Type3 message to proxy...
    Type3Response: HTTP/1.1 407 authenticationrequired

Via: 1.1 10.32.22.20 (McAfee Web Gateway 7.5.2.2.0.19971) Date: Thu, 19 Nov 2015 12:14:34 GMT

Content-Type: text/html

Cache-Control: no-cache

Content-Length: 2548

Proxy-Connection: Keep-Alive

Proxy-Authenticate: NTLM

Proxy-Authenticate: Basic realm="McAfee Web Gateway"

  --proxyConnectNtlm
--httpProxyConnect
Failed to establish initial TCP/IP connection
Failed.

--Connect_SFtp --ChilkatLog

The code I use to configure the proxy for Http / Ntlm is as follows

            case ProxyType.Http:
                _audit.Audit("Configuring proxy settings for Http");
                _sftp.HttpProxyHostname = proxyHostname;
                _sftp.HttpProxyPort = proxyPort;
                _sftp.HttpProxyUsername = proxyUserName;
                _sftp.HttpProxyPassword = PasswordEncrypt.Decode(proxyPassword);

                if (!string.IsNullOrWhiteSpace(proxyUserName))
                {
                    _audit.Audit("Configuring proxy Authentication for Http as " + authMode);
                    _sftp.HttpProxyAuthMethod = authMode == ProxyHttpAuthMode.Ntlm ? "NTLM" : "Basic";
                }
                break;

Can anybody see what I have missed or I am doing wrong? (the ip addresses have been masked)

asked Nov 19 '15 at 07:51

PaulP's gravatar image

PaulP
11

Is this issue possibly related to the "ntlmDomain:" being blank?

If so how do I set this value? I have obtained the latest version from nuget and set the HttpProxyDomain value but it appears to make no difference.

Thanks

Paul.

(Nov 20 '15 at 07:33) PaulP

I would recommend first testing with the latest version of Chilkat to see if the status of the problem changes..

link

answered Nov 20 '15 at 14:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

That occurred to me a few moments after posting my original message. unfortunately the results did not change after updating via nuget

(Nov 23 '15 at 04:23) PaulP
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×24
×9

Asked: Nov 19 '15 at 07:51

Seen: 1,290 times

Last updated: Nov 23 '15 at 04:23

powered by OSQA