Expand Minimize

SspiEncodeStringsAsAuthIdentity function

Encodes a set of three credential strings as an authentication identity structure.

Syntax


SECURITY_STATUS SspiEncodeStringsAsAuthIdentity(
  _In_   PCWSTR pszUserName,
  _In_   PCWSTR pszDomainName,
  _In_   PCWSTR pszPackedCredentialsString,
  _Out_  PSEC_WINNT_AUTH_IDENTITY_OPAQUE *ppAuthIdentity
);

Parameters

pszUserName [in]

The user name associated with the identity to encode.

pszDomainName [in]

The domain name associated with the identity to encode.

pszPackedCredentialsString [in]

An encoded string version of a SEC_WINNT_AUTH_IDENTITY_EX2 structure that specifies the user's credentials.

ppAuthIdentity [out]

A pointer to the encoded identity structure.

When you have finished using this structure, free it by calling the SspiFreeAuthIdentity function.

Return value

If the function succeeds, it returns SEC_E_OK.

If the function fails, it returns a nonzero error code.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Sspi.h

Library

Secur32.lib

DLL

SspiCli.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft