java.lang.Object
org.codelibs.jcifs.smb.dcerpc.ndr.NdrObject
org.codelibs.jcifs.smb.dcerpc.DcerpcMessage
org.codelibs.jcifs.smb.dcerpc.msrpc.samr.SamrConnect4
- All Implemented Interfaces:
DcerpcConstants
- Direct Known Subclasses:
MsrpcSamrConnect4
- Enclosing class:
- samr
SAMR Connect4 operation for establishing a connection to the SAM database.
This is an enhanced version of Connect2 with additional parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe desired access rights to the SAM serverThe returned handle to the SAM serverintThe return value of the operationThe NetBIOS name of the server to connect tointReserved parameter, must be set to 2Fields inherited from class org.codelibs.jcifs.smb.dcerpc.DcerpcMessage
alloc_hint, call_id, flags, length, ptype, resultFields inherited from interface org.codelibs.jcifs.smb.dcerpc.DcerpcConstants
DCERPC_CONC_MPX, DCERPC_DID_NOT_EXECUTE, DCERPC_FIRST_FRAG, DCERPC_LAST_FRAG, DCERPC_MAYBE, DCERPC_OBJECT_UUID, DCERPC_PENDING_CANCEL, DCERPC_RESERVED_1, DCERPC_UUID_SYNTAX_NDR, RPC_C_PF_BROADCAST, RPC_C_PF_BROADCAST_MAYBE, RPC_C_PF_IDEMPOTENT, RPC_C_PF_MAYBE, RPC_C_PF_NO_AUTO_LISTEN, RPC_C_PF_NO_AUTO_RETRY, RPC_C_PF_NO_FRAGMENT, RPC_C_PF_NOT_IDEMPOTENT, RPC_PT_ACK, RPC_PT_ALTER_CONTEXT, RPC_PT_ALTER_CONTEXT_RESPONSE, RPC_PT_BIND, RPC_PT_BIND_ACK, RPC_PT_BIND_NAK, RPC_PT_CANCEL, RPC_PT_CO_CANCEL, RPC_PT_FAULT, RPC_PT_ORPHANED, RPC_PT_PING, RPC_PT_REJECT, RPC_PT_REQUEST, RPC_PT_RESPONSE, RPC_PT_SHUTDOWN -
Constructor Summary
ConstructorsConstructorDescriptionSamrConnect4(String system_name, int unknown, int access_mask, rpc.policy_handle handle) Constructs a SamrConnect4 request. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode_out(NdrBuffer _src) Decode the output parameters from this DCERPC message.voidEncode the input parameters for this DCERPC message.intgetOpnum()Get the operation number for this DCERPC message.
-
Field Details
-
retval
public int retvalThe return value of the operation -
system_name
The NetBIOS name of the server to connect to -
unknown
public int unknownReserved parameter, must be set to 2 -
access_mask
public int access_maskThe desired access rights to the SAM server -
handle
The returned handle to the SAM server
-
-
Constructor Details
-
SamrConnect4
Constructs a SamrConnect4 request.- Parameters:
system_name- The NetBIOS name of the serverunknown- Reserved parameter (typically 2)access_mask- The desired access rightshandle- The policy handle to receive the connection handle
-
-
Method Details
-
getOpnum
public int getOpnum()Description copied from class:DcerpcMessageGet the operation number for this DCERPC message.- Specified by:
getOpnumin classDcerpcMessage- Returns:
- the operation number
-
encode_in
Description copied from class:DcerpcMessageEncode the input parameters for this DCERPC message.- Specified by:
encode_inin classDcerpcMessage- Parameters:
_dst- the buffer to encode into- Throws:
NdrException- if encoding fails
-
decode_out
Description copied from class:DcerpcMessageDecode the output parameters from this DCERPC message.- Specified by:
decode_outin classDcerpcMessage- Parameters:
_src- the buffer to decode from- Throws:
NdrException- if decoding fails
-