PyCREDENTIAL Object

A dictionary containing information for a CREDENTIAL struct

Win32 API References

Search for CREDENTIAL struct at msdn, google or google groups.

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