kk aw wrote: > Francois, > > I can see something similar to the following in my ISAPI application: > > Authorization: NTLM TlRMTVNTUAADAAAAGAAYAGoAAAAYABgAggAAAAwADABAAA > AACAAIAEwAAAAWABYAVAAAAAAAAACaAAAAAQIAAEQATwBNAEEASQBOAHUAcwBlAHIA > VwBPAFIASwBTAFQAQQBUAEkATwBOAMM3zVy9RPyXgqZnr21CfG3mfCDC0+d8ViWpjB > wx6BhHRmspst9GgPOZWPuMITqcxg== > > I assume that the client has successfully negotiated the NTLM > authentication. How do I parse out the username from the above in the > server? > I have looked at some of your codes in ICS (httpproc.pas) but have not > figured out how to parse out the username.
At the server side you need to use SSPI API. Have a look at OverbyteIcsNtlmSsp.pas, function GetUserFromContext(), available in ICS V6, it's implemented in the THttpServer component. -- Arno Garrels > > Regards, > KK Aw > > Francois Piette wrote: >>> I don't need the password, only the username. How do it extract >>> that from the request using Delphi? >>> >> >> Have a look at the resources I pointed for you. There is a >> description of the messages exchanged between client and (web) >> server. >> >> Contribute to the SSL Effort. Visit >> http://www.overbyte.be/eng/ssl.html -- >> [EMAIL PROTECTED] >> Author of ICS (Internet Component Suite, freeware) >> Author of MidWare (Multi-tier framework, freeware) >> http://www.overbyte.be >> >> > _______________________________________________ > Delphi mailing list -> Delphi@elists.org > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi