Laure
Laure

Reputation: 551

NTLM Authentication with GetHttpConnection

I have a VC++ (6.0) app. We want to use NTLM Authentication to access a server. I prompt for the URL, ID, and Password and send these in my internetSession.GetHttpConnection call, and if you enter the domain\id and the password, it works fine, using NTLM.

We want users who are currently logged in on the same domain as the server to not have to enter their ID and password. How do we do this? I think it has to do with "passthrough authentication" or WindowsIdentity. Been Googling for it, but if anyone has a quick answer, I'd sure appreciate it.

Upvotes: 2

Views: 1141

Answers (1)

Brian Lyttle
Brian Lyttle

Reputation: 14579

Can you use WinHTTP instead of WinInet? Take a look at this library which wraps WinHTTP. I think it uses WinHttpGetIEProxyConfigForCurrentUser() to get this info for you. I made requests through a Microsoft ISA proxy configured to use NTLM without any issues, so I'd assume it would identify as you against another server with NTLM.

Upvotes: 1

Related Questions