Directory Services

DS_SPN_WRITE_OP

The DS_SPN_WRITE_OP enumeration identifies the type of write operation that should be performed by the DsWriteAccountSpn function.

typedef enum 
{
  DS_SPN_ADD_SPN_OP = 0, 
  DS_SPN_REPLACE_SPN_OP = 1, 
  DS_SPN_DELETE_SPN_OP = 2
} DS_SPN_WRITE_OP;

Values

DS_SPN_ADD_SPN_OP
Adds the specified service principal names (SPNs) to the object identified by the pszAccount parameter in DsWriteAccountSpn.
DS_SPN_REPLACE_SPN_OP
Deletes the specified SPNs from the object identified by the pszAccount parameter in DsWriteAccountSpn.
DS_SPN_DELETE_SPN_OP
Removes all SPNs currently registered on the account identified by the pszAccount parameter in DsWriteAccountSpn and replaces them with the SPNs specified by the rpszSpn parameter in DsWriteAccountSpn.

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

DsWriteAccountSpn, Active Directory Enumerations