Partager via


4.1.4.1.3 DS_NAME_FORMAT

The DS_NAME_FORMAT enumeration describes the format of a name sent to or received from the IDL_DRSCrackNames method.

 typedef  enum 
 {
   DS_UNKNOWN_NAME = 0,
   DS_FQDN_1779_NAME = 1,
   DS_NT4_ACCOUNT_NAME = 2,
   DS_DISPLAY_NAME = 3,
   DS_UNIQUE_ID_NAME = 6,
   DS_CANONICAL_NAME = 7,
   DS_USER_PRINCIPAL_NAME = 8,
   DS_CANONICAL_NAME_EX = 9,
   DS_SERVICE_PRINCIPAL_NAME = 10,
   DS_SID_OR_SID_HISTORY_NAME = 11,
   DS_DNS_DOMAIN_NAME = 12
 } DS_NAME_FORMAT;

DS_UNKNOWN_NAME:  The server looks up the name by using the algorithm specified in the LookupUnknownName procedure.

DS_FQDN_1779_NAME:  A distinguished name.

DS_NT4_ACCOUNT_NAME:  Windows NT 4.0 operating system (and prior) name format. The account name is in the format domain\user and the domain-only name is in the format domain\.

DS_DISPLAY_NAME:  A user-friendly display name.

DS_UNIQUE_ID_NAME:  Curly braced string representation of an objectGUID. The format of the string representation is specified in [MS-DTYP] section 2.3.4.3.

DS_CANONICAL_NAME:  A canonical name.

DS_USER_PRINCIPAL_NAME:  User principal name.

DS_CANONICAL_NAME_EX:  Same as DS_CANONICAL_NAME except that the rightmost forward slash (/) is replaced with a newline character (\n).

DS_SERVICE_PRINCIPAL_NAME:  Service principal name (SPN).

DS_SID_OR_SID_HISTORY_NAME:  String representation of a SID (as specified in [MS-DTYP] section 2.4.2).

DS_DNS_DOMAIN_NAME:  Not supported.