MI_UserCredentials structure (mi.h)
A user's credentials. It includes an authentication type and either a username and password or a certificate thumbprint.
Syntax
typedef struct _MI_UserCredentials {
const MI_Char *authenticationType;
union {
MI_UsernamePasswordCreds usernamePassword;
const MI_Char *certificateThumbprint;
} credentials;
} MI_UserCredentials;
Members
authenticationType
MI_AUTH_TYPE_DEFAULT (MI_T("Default"))
Transport picks the default specific to it. For example, Windows Remote Management (winrm) uses Kerberos and NegotiateWithoutCredentials as default.
MI_AUTH_TYPE_NONE (MI_T("None"))
Do not authenticate, most servers require some kind of authentication.
MI_AUTH_TYPE_DIGEST (MI_T("Digest"))
Uses Digest authentication. Requires username/password. Some servers and transports do not support this type of authentication.
MI_AUTH_TYPE_NEGO_WITH_CREDS (MI_T("NegoWithCreds"))
Uses SPNEGO authentication. Requires username/password.
MI_AUTH_TYPE_NEGO_NO_CREDS (MI_T("NegoNoCreds"))
Uses SPNEGO authentication with the current thread ID (or the process token, if no thread token exists).
MI_AUTH_TYPE_BASIC (MI_T("Basic"))
Uses basic authentication. Requires username/password. Some transports do not support this type of authentication. This authentication type is not very secure.
MI_AUTH_TYPE_KERBEROS (MI_T("Kerberos"))
Username/password optional.
MI_AUTH_TYPE_CLIENT_CERTS (MI_T("ClientCerts"))
Requires certificate thumbprint.
MI_AUTH_TYPE_NTLM (MI_T("Ntlmdomain"))
Username/password optional.
MI_AUTH_TYPE_CREDSSP (MI_T("CredSSP"))
Uses CREDSSP, a delegated authentication mechanism. Username/password are optional. Some transports support this authentication type. Configuration is required on both the client and the server to enable CREDSSP.
MI_AUTH_TYPE_ISSUER_CERT (MI_T("IssuerCert"))
Push/Source Initiated subscriptions only.
credentials
credentials.usernamePassword
Contains username and password information.
credentials.certificateThumbprint
Certificate thumbprint for the user.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 |
Minimum supported server | Windows Server 2012 |
Header | mi.h |
Redistributable | Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2 |