A Windows-based application written in C ++ (mainly an HTTP / 1.1 proxy server) listens for requests from different users. Currently, he can send 407 Basic Challenge and process the response from the headers. I know that I have to change the task headers so that client browsers make an NTLM based response for authentication purposes. But my question is: how can I create the correct markers, nonce, etc. For the Challenge Authentication Challenge 407, and then how to check the correctness of the answers received? Finally, I would like to write down the username and other LDAP / ADS properties, if possible.
Please be kind and redirect me to the correct posts if there are already any topics that discuss something like that. Most of the research on the WWW leads me only to client programming, very little, or almost no one, to the coding that should be done on an HTTP server.
All of you wonderful hacks here, BIG thanks in advance.
source share