Directory Services

DS_SPN_NAME_TYPE

The DS_SPN_NAME_TYPE enumeration is used by the DsGetSPN function to identify the format for composing SPNs.

typedef enum 
{
  DS_SPN_DNS_HOST = 0, 
  DS_SPN_DN_HOST = 1, 
  DS_SPN_NB_HOST = 2, 
  DS_SPN_DOMAIN = 3, 
  DS_SPN_NB_DOMAIN = 4, 
  DS_SPN_SERVICE = 5
} DS_SPN_NAME_TYPE;

Values

DS_SPN_DNS_HOST
The SPN format for the distinguished name service of the host-based service, which provides services identified with its host computer. This SPN uses the following format:

"jeffsmith.fabrikam.com"

DS_SPN_DN_HOST
The SPN format for the distinguished name of the host-based service, which provides services identified with its host computer. This SPN uses the following format:

"cn=jeffsmith,ou=computers,dc=fabrikam,dc=com"

DS_SPN_NB_HOST
The SPN format for the NetBIOS service of the host-based service, which provides services identified with its host computer. This SPN uses the following format:

"jeffsmith-nec"

DS_SPN_DOMAIN
The SPN format for a replicable service that provides services to the specified domain. This SPN uses the following format:

"fabrikam.com"

DS_SPN_NB_DOMAIN
The SPN format for a replicable service that provides services to the specified NetBIOS domain. This SPN uses the following format:

"fabrikam"

DS_SPN_SERVICE
The SPN format for a specified service. This SPN uses the following formats, depending on which service is used:

"cn=anRpcService,cn=RPC Services,cn=system,dc=fabrikam,dc=com"

"cn=aWsService,cn=Winsock Services,cn=system,dc=fabrikam,dc=com"

"cn=aService,dc=itg,dc=fabrikam,dc=com"

"www.fabrikam.com", "ftp.fabrikam.com", "ldap.fabrikam.com"

"products.fabrikam.com"

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Ntdsapi.h.

See Also

DsGetSPN, Active Directory Enumerations