DS_SPN_WRITE_OP enumeration (ntdsapi.h)
The DS_SPN_WRITE_OP enumeration identifies the type of write operation that should be performed by the DsWriteAccountSpn function.
Syntax
typedef enum {
DS_SPN_ADD_SPN_OP = 0,
DS_SPN_REPLACE_SPN_OP = 1,
DS_SPN_DELETE_SPN_OP = 2
} DS_SPN_WRITE_OP;
Constants
DS_SPN_ADD_SPN_OP Value: 0 Adds the specified service principal names (SPNs) to the object identified by the pszAccount parameter in DsWriteAccountSpn. |
DS_SPN_REPLACE_SPN_OP Value: 1 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. |
DS_SPN_DELETE_SPN_OP Value: 2 Deletes the specified SPNs from the object identified by the pszAccount parameter in DsWriteAccountSpn. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Header | ntdsapi.h |