SecurityIdentifiers in Cassini-dev's NTLM authentication
问题 In this block of code in Cassini-dev's NTLM authentication class, calls made to SECUR32.DLL (via Interop ) are made to authenticate the base64 encoded data in an HTTP request's Authorization headers. This makes sense, when both AcceptSecurityContext() and QuerySecurityContextToken() return 0 , the client has been authorized. At the end, the security context token has a SecurityIdentifier extracted from it (the _sid variable). (A bit about common Security IDs ) Here is the relevant section of