summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-dcerpc: Refactor code and stop using ncacn_packet_headerSimo Sorce2010-07-161-202/+164
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: consolidate respones packet creation codeSimo Sorce2010-07-164-452/+236
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Convert frag from prs_struct to a simple DATA_BLOBSimo Sorce2010-07-163-210/+134
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOBSimo Sorce2010-07-167-63/+45
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused functions and headersSimo Sorce2010-07-165-175/+6
| | | | | | parse_rpc.c is dead, long live parse_rpc.c ! Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Stop using hand marshalling in create_next_pdu_noauth()Simo Sorce2010-07-161-24/+14
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Stop using hand marshalling in create_next_pdu_schannel()Simo Sorce2010-07-161-87/+81
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Stop using hand marshalling in create_next_pdu_ntlmssp()Simo Sorce2010-07-161-38/+38
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Stop using hand marshalling in rpc_finish_auth3_bind_send()Simo Sorce2010-07-161-15/+9
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Do not parse the packet twice.Simo Sorce2010-07-161-17/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused functionSimo Sorce2010-07-161-36/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Do not reparse the headerSimo Sorce2010-07-161-26/+15
| | | | | | Instead pass back and use the packet we have already parsed. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Pull the whole packet at once instead of fetching just the headerSimo Sorce2010-07-161-57/+68
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Delay parsing rpc header in client codeSimo Sorce2010-07-161-19/+21
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* Fix bug - 7551 smbclient does not return proper exit code.Jeremy Allison2010-07-151-0/+1
| | | | | | Catch error in cli_push. Jeremy.
* s3: Fix crashes in the printing codeVolker Lendecke2010-07-151-0/+3
| | | | | create_conn_struct did not create the conn->sconn!=NULL assumption we now depend on. Thanks to Andreas Schneider for testing!
* s3-dcerpc: Break memory hierarchy for shared structureSimo Sorce2010-07-141-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>
* s3-dcerpc: fix crash bug in error path of process_complete_pdu().Günther Deschner2010-07-141-1/+1
| | | | Guenther
* s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett2010-07-145-13/+19
| | | | | | | | | 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>
* s3:smbd Give the kerberos session key a parentAndrew Bartlett2010-07-141-0/+2
| | | | | | | | | Nothing will free this, so this prevents a memory leak. Andrew Bartlett Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:smbd Fix segfault if register_existing_vuid() failsAndrew Bartlett2010-07-141-4/+12
| | | | | | | | | | The register_existing_vuid() call will handle both the ntlmssp_end and vuid invalidation internally, so we don't want to do it again. Andrew Bartlett Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-selftest: enable RPC-BIND against s3.Günther Deschner2010-07-141-1/+1
| | | | Guenther
* s3-libnet: add missing header file, sorry.Günther Deschner2010-07-131-0/+13
| | | | Guenther
* s3-libnet: better separate headers.Günther Deschner2010-07-1319-126/+61
| | | | Guenther
* s3-winbind: Don't cache queries to builtin and own sam domain.Andreas Schneider2010-07-131-3/+29
|
* s3-winbind: Set status before we leave in some msrpc functions.Andreas Schneider2010-07-131-0/+4
|
* Revert "Remove the global char *LastDir."Jeremy Allison2010-07-133-1/+22
| | | | | | | | | | | | Volker pointed out I'd missed the "last directory" cache part of this code. Return us to caching the directory we're in (reduces sys call load). Mea maxima culpa. Jeremy. This reverts commit 2f30aea3324f32f9b8555e961256fc1280da2871.
* s3-waf: fix the build.Günther Deschner2010-07-131-0/+1
| | | | Guenther
* s3-ldb: fix build warning.Günther Deschner2010-07-131-44/+1
| | | | Guenther
* s3-dcerpc: Remove unused functions and headersSimo Sorce2010-07-133-355/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_push_ncacn_packet() in api_pipe_alter_context()Simo Sorce2010-07-131-104/+76
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_push_dcerpc_auth() for spnego auth continuations.Simo Sorce2010-07-131-41/+32
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dceprc: Use dcerpc_push_ncacn_packet() in api_pipe_bind_req()Simo Sorce2010-07-131-111/+89
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use a DATA_BLOB in bind processing and avoid one mem copySimo Sorce2010-07-131-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>
* s3-dcerpc: Rearrange api_pipe_bind_req() to do checks before allocating memorySimo Sorce2010-07-131-30/+27
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by addressSimo Sorce2010-07-133-8/+8
| | | | | | 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>
* s3-dcerpc: pass the packet to setup_bind_nack()Simo Sorce2010-07-131-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>
* s3-dceprc: Add debug messagesSimo Sorce2010-07-131-0/+10
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused membersSimo Sorce2010-07-131-3/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused functionsSimo Sorce2010-07-133-378/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requestsSimo Sorce2010-07-134-389/+406
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c fileSimo Sorce2010-07-131-0/+6
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dceprc: Store opnum in its own variableSimo Sorce2010-07-138-13/+19
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dceprc use a DATA_BLOB to hold the curren pdu in pipes_structSimo Sorce2010-07-133-47/+37
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: use dceprc_push_ncacn_packet_header in create_next_pdu_noauth()Simo Sorce2010-07-131-17/+23
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_push_ncacn_packet_header() in create_next_pdu_schannel()Simo Sorce2010-07-131-15/+27
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: use dcerpc_push_ncacn_packet_header() in create_next_pdu_ntlmssp()Simo Sorce2010-07-131-21/+26
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* sr-dcerpc: add dcerpc_push_ncacn_packet_header()Simo Sorce2010-07-132-0/+43
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc delay rpc header unmarshallingSimo Sorce2010-07-131-49/+70
| | | | | | Use dcerpc_get_frag_length() to get the whole pdu first Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused headersSimo Sorce2010-07-131-18/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>