D
darin dimitrov
Hello,
I would like to implement a server side script that extracts the
NT username from the "Authirization:" header that is sent from the
client. I configured IIS to use Windows Authentication and disabled
anonymous access in order to force the client send its credentials.
The authorization header that I receive in the last stage of the
negociation is of the form:
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAHIAAAAYA<Truncated>
I know that in ASP.NET we can use the AUTH_USER, LOGON_USER or
REMOTE_USER server variables in order to obtain the login information,
but I don't use ASP and I need to implement a parser that will be able
to do this.
So my question is: Does the "Authorization" header mentioned above
contains the username of the person who accessed my script? If the
answer is "yes" then could you please point me to some interesting
articles that discuss how to extract the username from such a header
using the .NET framework? I have read through the The NTLM
Authentication Protocol (http://davenport.sourceforge.net/ntlm.html)
but it didn't help me much - I find it difficult to implement. Thanks
in advance for any suggestions.
I would like to implement a server side script that extracts the
NT username from the "Authirization:" header that is sent from the
client. I configured IIS to use Windows Authentication and disabled
anonymous access in order to force the client send its credentials.
The authorization header that I receive in the last stage of the
negociation is of the form:
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAHIAAAAYA<Truncated>
I know that in ASP.NET we can use the AUTH_USER, LOGON_USER or
REMOTE_USER server variables in order to obtain the login information,
but I don't use ASP and I need to implement a parser that will be able
to do this.
So my question is: Does the "Authorization" header mentioned above
contains the username of the person who accessed my script? If the
answer is "yes" then could you please point me to some interesting
articles that discuss how to extract the username from such a header
using the .NET framework? I have read through the The NTLM
Authentication Protocol (http://davenport.sourceforge.net/ntlm.html)
but it didn't help me much - I find it difficult to implement. Thanks
in advance for any suggestions.