Archived Forum Post

Index of archived forum posts

Question:

NTLM authentication using Windows based credentials

Dec 10 '15 at 10:15

Dear all,

Is it possible to configure the Sftp component to authenticate through a NTLM proxy by using the currently logged in windows credentials?

I have seen a blog post suggesting that you can do this with

Sftp.HttpProxyUsername = "default";

However I receive the following

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

Unfortunately our client does not want the user to have to update the password every time password policy is enforced.

Many thanks

Paul.


Answer

Unfortunately, this is no longer possible. A long time ago, Chilkat implemented NTLM using Microsoft's SSPI (https://msdn.microsoft.com/en-us/library/bb742535.aspx#EEAA) Unfortunately, Chilkat needed to support other operating systems (Mac OS X, Linux, iOS, Android, Solaris, etc.) so Chilkat implements NTLM directly. The Microsoft NTLM implementation is tangled up in too many other things that prevent it's use within Chilkat. Therefore, the ability to use the current logged-in user credentials is no longer possible (because it was only possible with the Microsoft SSPI).