summaryrefslogtreecommitdiff
path: root/source3/rpc_server
AgeCommit message (Collapse)AuthorFilesLines
2010-07-21s3-rpc_server: Cleanup the way we free pipe auth dataSimo Sorce1-10/+13
2010-07-21s3-dcerpc: Fix potential memleakSimo Sorce1-1/+6
Use a free function for schannel data too for now.
2010-07-21s3-dcerpc: Properly initialize output buffers on nak/faultSimo Sorce1-2/+4
2010-07-20Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL ↵Jeremy Allison1-10/+4
contexts. Jeremy.
2010-07-20Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduceJeremy Allison1-1/+2
use of malloc, and data_blob(). Jeremy.
2010-07-20s3-auth: Move auth_ntlmssp wrappers in their own fileSimo Sorce1-0/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce1-1/+1
Rename it to auth_ntlmssp_steal_server_info() to make it clear that the server_info struct is stolen from the auth_ntlmssp_state structure. Use talloc_move instead of manual steal&clear Add comments to explain what is going on. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison1-1/+1
negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
2010-07-19s3-rpc_server: Added callbacks for init and shutdown of a rpc service.Andreas Schneider1-1/+44
This adds two callback function for each rpc service. One is for initialisation and the other for shutdown. rpc_<service>_unregister() needs to be called to execute the shutdown function.
2010-07-19s3-rpc_server: Don't register the same rpc commands twice.Andreas Schneider1-6/+4
2010-07-19s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce1-6/+1
Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state. Remote auth_ntlmssp_end and use TALLOC_FREE in the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s3-auth: Simplify how we free the auth_contextSimo Sorce1-1/+1
Turn the freeing function into a destructor and attach it to the auth_context. Make all callers TALLOC_FREE() the auth_context instead of calling the free function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-17s3-dcerpc: Fix build and remove unneeded headersSimo Sorce1-3/+0
Sorry, botched a rebase.
2010-07-17s3-dcerpc: Move mere processing functions from srv_pipe_hnd.c to srv_pipe.cSimo Sorce3-463/+492
2010-07-16s3-dcerpc: rename SCHANNEL_SIG_SIZE to NL_AUTH_SIGNATURE_SIZE and move to IDL.Günther Deschner1-1/+1
Guenther
2010-07-16s3-dcerpc: Fix ability to receive Big Endian PDUsSimo Sorce2-14/+16
2010-07-16Move the remnants of rpc_parse code under registry/Simo Sorce1-0/+1
The registry code is the only last user of this code. Move everything under registry/ and hope someone will get rid od it completely from there in the future. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Use a local function to dump pdu regionsSimo Sorce1-5/+49
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Use DATA_BLOB for pipes_struct input dataSimo Sorce3-82/+25
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dceprc: Use IDL defined constants for length calculationsSimo Sorce1-9/+9
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Padding is never done on a DCERPC_PKT_BIND_ACK packet.Simo Sorce1-24/+2
Empirically verified against Windows. It never pads the auth credentials on this packet type. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: consolidate respones packet creation codeSimo Sorce1-448/+231
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Convert frag from prs_struct to a simple DATA_BLOBSimo Sorce2-209/+133
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOBSimo Sorce3-51/+28
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in create_next_pdu_noauth()Simo Sorce1-24/+14
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in create_next_pdu_schannel()Simo Sorce1-87/+81
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Stop using hand marshalling in create_next_pdu_ntlmssp()Simo Sorce1-38/+38
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-14s3-dcerpc: Break memory hierarchy for shared structureSimo Sorce1-1/+1
Handles are shared among multiple pipes_struct. We cannot allocate them on any specific pipes_struct or it will vanish for all others as soon as that pipes_struct is freed, leaving back dangling pointers. Signed-off-by: Andreas Schneider <asn@samba.org>
2010-07-14s3-dcerpc: fix crash bug in error path of process_complete_pdu().Günther Deschner1-1/+1
Guenther
2010-07-14s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett1-3/+4
This fixes a bug where register_existing_vuid() could be called with a NULL server_info if the alloction failed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-13s3-libnet: better separate headers.Günther Deschner1-1/+2
Guenther
2010-07-13s3-dcerpc: Use dcerpc_push_ncacn_packet() in api_pipe_alter_context()Simo Sorce1-104/+76
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use dcerpc_push_dcerpc_auth() for spnego auth continuations.Simo Sorce1-41/+32
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dceprc: Use dcerpc_push_ncacn_packet() in api_pipe_bind_req()Simo Sorce1-111/+89
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use a DATA_BLOB in bind processing and avoid one mem copySimo Sorce1-105/+52
Also move dcerpc_push_dcerpc_auth() invocation in api_pipe_bind_req() to simplify the workflow. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Rearrange api_pipe_bind_req() to do checks before allocating memorySimo Sorce1-30/+27
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by addressSimo Sorce1-2/+2
There is no need to copy the whole structure twice by passing it in by value. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: pass the packet to setup_bind_nack()Simo Sorce1-6/+6
Allows to not rely on p->call_id but use the value directly from the request packet header. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dceprc: Add debug messagesSimo Sorce1-0/+10
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Remove unused functionsSimo Sorce2-375/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requestsSimo Sorce2-385/+399
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dceprc: Store opnum in its own variableSimo Sorce7-13/+16
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dceprc use a DATA_BLOB to hold the curren pdu in pipes_structSimo Sorce2-39/+34
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: use dceprc_push_ncacn_packet_header in create_next_pdu_noauth()Simo Sorce1-17/+23
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use dcerpc_push_ncacn_packet_header() in create_next_pdu_schannel()Simo Sorce1-15/+27
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: use dcerpc_push_ncacn_packet_header() in create_next_pdu_ntlmssp()Simo Sorce1-21/+26
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc delay rpc header unmarshallingSimo Sorce1-49/+70
Use dcerpc_get_frag_length() to get the whole pdu first Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use dcerpc_set_frag_length()Simo Sorce1-4/+5
Automatically calculate the fragment length where possible. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-08s3-dcerpc: Use dcerpc_pull_dcerpc_auth in api_pipe_bind_auth3()Simo Sorce1-19/+13
2010-07-08s3-dcerpc: Use dcerpc_auth in api_pipe_bind_req()Simo Sorce1-82/+85