interface NTDSAPI
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_BUFFER_OVERFLOW |
static int |
ERROR_INVALID_PARAMETER |
static int |
ERROR_SUCCESS |
static NTDSAPI |
instance |
Modifier and Type | Method and Description |
---|---|
int |
DsMakeSpnW(WString serviceClass,
WString serviceName,
WString instanceName,
short instancePort,
WString referrer,
IntByReference spnLength,
char[] spn)
Wrap DsMakeSpn
|
static final NTDSAPI instance
static final int ERROR_SUCCESS
static final int ERROR_INVALID_PARAMETER
static final int ERROR_BUFFER_OVERFLOW
int DsMakeSpnW(WString serviceClass, WString serviceName, WString instanceName, short instancePort, WString referrer, IntByReference spnLength, char[] spn) throws LastErrorException
Wrap DsMakeSpn
To get the String result, call
new String(buf, 0, spnLength)on the byte[] buffer passed to 'spn' after testing to ensure ERROR_SUCCESS.
serviceClass
- SPN service class (in)serviceName
- SPN service name (in)instanceName
- SPN instance name (in, null ok)instancePort
- SPN port number (in, 0 to omit)referrer
- SPN referer (in, null ok)spnLength
- Size of 'spn' buffer (in), actul length of spn created including null
terminator (out)spn
- SPN buffer (in/out)LastErrorException