Skip to content

Latest commit

 

History

History
124 lines (56 loc) · 3.66 KB

PyCREDENTIAL.md

File metadata and controls

124 lines (56 loc) · 3.66 KB

PyCREDENTIAL

PyCREDENTIAL Object

A dictionary containing information for a CREDENTIAL struct

Win32 API References

Properties

  • int Flags

    Combination of CRED_FLAGS_PROMPT_NOW, CRED_FLAGS_USERNAME_TARGET

  • int Type

    Type of credential, one of CRED_TYPE_* values

  • PyUnicode TargetName

    Target of credential, can end with * for wildcard matching

  • PyUnicode Comment

    Descriptive text

  • PyTime LastWritten

    Modification time, ignored on input

  • PyUnicode CredentialBlob

    Contains password for username credential, or PIN for certificate credential. This member is write-only.

  • int Persist

    Specifies scope of persistence, one of CRED_PERSIST_* values

  • tuple Attributes

    Tuple of PyCREDENTIAL_ATTRIBUTE dicts containing application-specific data, can be None

  • PyUnicode TargetAlias

    Alias for TargetName, only valid with CRED_TYPE_GENERIC

  • PyUnicode UserName

    User to be authenticated by target. Can be of the form username@domain or domain\\username.

For CRED_TYPE_DOMAIN_CERTIFICATE, use win32cred::CredMarshalCredential to marshal the SHA1 hash of user's certficate

PyCREDENTIAL_ATTRIBUTE Object

A dictionary containing information for a CREDENTIAL_ATTRIBUTE struct

Win32 API References

Properties

  • PyUnicode Keyword

    Attribute name, at most CRED_MAX_STRING_LENGTH chars

  • int Flags

    Reserved, use only 0

  • str Value

    Attribute value, at most CRED_MAX_VALUE_SIZE bytes. Unicode objects are treated as raw bytes.

PyCREDENTIAL_TARGET_INFORMATION Object

A dictionary representing a CREDENTIAL_TARGET_INFORMATION struct

Win32 API References

Properties

  • PyUnicode TargetName

    Target of credentials

  • PyUnicode NetbiosServerName

  • PyUnicode DnsServerName

  • PyUnicode NetbiosDomainName

  • PyUnicode DnsDomainName

  • PyUnicode DnsTreeName

  • PyUnicode PackageName

    Name of security package which mapped TargetName

  • int Flags

    CRED_TI_* flags

  • (int,...) CredTypes

    Tuple of CRED_TYPE_* values indicating which types of credentials are acceptable to target