win32security.LsaCallAuthenticationPackage
LsaCallAuthenticationPackage(LsaHandle, AuthenticationPackage, MessageType, ProtocolSubmitBuffer)
Requests the services of an authentication package
Parameters
Comments
Message type is embedded in different types of submit buffers in the API call, but passed separately from python for simplicity of parsing input
MessageType | Input type |
KerbQueryTicketCacheMessage | long - a logon id, use 0 for current logon session |
KerbRetrieveTicketMessage | long - a logon id, use 0 for current logon session |
KerbPurgeTicketCacheMessage | (long, PyUnicode, PyUnicode) - tuple containing (LogonId, ServerName, RealmName) |
KerbRetrieveEncodedTicketMessage | (LogonId, TargetName, TicketFlags, CacheOptions, EncryptionType, CredentialsHandle) (int, PyUnicode, int, int, int, PyCredHandle) |
MessageType | Return type |
KerbQueryTicketCacheMessage | (dict,...) - Returns all tickets for the specified logon session (form is KERB_TICKET_CACHE_INFO) |
KerbPurgeTicketCacheMessage | None |
KerbRetrieveTicketMessage | Returns the ticket granting ticket for the logon session as a KERB_EXTERNAL_TICKET |
KerbRetrieveEncodedTicketMessage | Returns specified ticket as a KERB_EXTERNAL_TICKET |
Return Value
Type of returned object is dependent on MessageType