SECPKG_NAME_TYPE enumeration (ntsecpkg.h)

The SECPKG_NAME_TYPE enumeration is used to describe the type of name specified for an account.

The SECPKG_NAME_TYPE enumeration is used by the GetAuthDataForUser and OpenSamUser functions.

Syntax

typedef enum _SECPKG_NAME_TYPE {
  SecNameSamCompatible,
  SecNameAlternateId,
  SecNameFlat,
  SecNameDN,
  SecNameSPN
} SECPKG_NAME_TYPE;

Constants

 
SecNameSamCompatible
The account name is compatible with the Security Accounts Manager (SAM). An example of a name in SAM-compatible format is "ExampleDomain\UserName".
SecNameAlternateId
The account name is in the AltSecId property of the SAM account.
SecNameFlat
The account name is a flat user principal name (UPN) style account name.
SecNameDN
The account name is the distinguished name of the object.
SecNameSPN

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header ntsecpkg.h