summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc_smb.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:librpc/rpc: use DCERPC_REQUEST_TIMEOUT for smb opensStefan Metzmacher2014-05-261-8/+4
| | | | | | | | There's no need to make the connect timeout dynamic. We implicitly used SMB_REQUEST_TIMEOUT which is also 60 seconds before. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:librpc/rpc: make dcerpc_pipe->binding constStefan Metzmacher2014-02-131-4/+6
| | | | | | | | This should not be changed after the connection is ready for requests. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:librpc: remove recv_data from transportGregor Beck2014-01-071-2/+0
| | | | | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jan 7 12:42:32 CET 2014 on sn-devel-104
* s4:librpc: factor out xxx_send_request() to dcerpc_send_request()Gregor Beck2014-01-071-153/+0
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: factor out xxx_send_read() to dcerpc_send_read()Gregor Beck2014-01-071-90/+4
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: factor out xxx_shutdown_pipe() to dcerpc_shutdown_pipe()Gregor Beck2014-01-071-57/+0
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: factor out xxx_dead() to dcerpc_transport_dead()Gregor Beck2014-01-071-74/+36
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: remove server_name from transportGregor Beck2014-01-071-27/+2
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: implement dcerpc_pipe_open_smb2() in dcerpc_smb.cStefan Metzmacher2014-01-071-0/+45
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: pass dcecli_connection instead of dcerpc_pipe to ↵Stefan Metzmacher2014-01-071-2/+2
| | | | | | | dcerpc_secondary_smb_send() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: pass smbXcli_{conn,session,tcon} to dcerpc_pipe_open_smb_send()Stefan Metzmacher2014-01-071-33/+64
| | | | | | | This will allow it to be used also for smb2 later. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: don't talloc_reference smbcli_treeStefan Metzmacher2014-01-071-6/+1
| | | | | | | | It's the job of the caller to make sure it stays for the whole lifetime of the connection. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:librpc: use tstream_smbXcli_np in dcerpc_smb.cGregor Beck2014-01-071-341/+321
| | | | | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Gregor Beck <gbeck@sernet.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* CVE-2013-4408:s4:dcerpc_smb: check for invalid frag_len in ↵Stefan Metzmacher2013-12-091-0/+6
| | | | | | | | | send_read_request_continue() Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:librpc/rpc: remove unused dcerpc_smb_tree()Stefan Metzmacher2013-10-171-15/+0
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:librpc/rpc: add dcerpc_secondary_smb_send/recv()Stefan Metzmacher2013-10-171-0/+19
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:librpc/rpc: remove unused dcerpc_smb_fnum()Stefan Metzmacher2013-10-171-15/+0
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-librpc: Remove dead code in smb_send_request().Andreas Schneider2012-12-211-4/+0
| | | | | | | | | If trigger_read we return earlier. Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* s4:librpc/dcerpc_smb: make use of smbXcli_session_application_key()Stefan Metzmacher2012-08-011-4/+15
| | | | metze
* s4:libcli/raw: implement on top of smbXcli_conn/reqStefan Metzmacher2011-11-301-4/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
* s4:librpc/dcerpc_smb: fix smb_write_callback()Stefan Metzmacher2011-10-281-5/+10
| | | | | | The should use smb_raw_write_recv() to get the result. metze
* s4-librpc: Fix double free.Andreas Schneider2011-08-041-5/+6
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Aug 4 12:31:18 CEST 2011 on sn-devel-104
* s4:librpc/rpc: s/struct dcerpc_connection/struct dcecli_connection/gStefan Metzmacher2011-03-111-19/+19
| | | | | | | The name 'struct dcerpc_connection' will be used in the new generic dcerpc code. It will be used for client and server. metze
* build: moved librpc/rpc/*.c into a rpccommon libraryAndrew Tridgell2011-02-241-0/+1
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Feb 24 02:42:37 CET 2011 on sn-devel-104
* s4-smb: declare root_fid as a file handleAndrew Tridgell2009-10-151-1/+1
| | | | | | In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
* s4-rpc: added NDR64 supportAndrew Tridgell2009-09-171-1/+5
| | | | This adds support for the nd464 binding string option
* fixed rpc smb code to not reply on talloc_free being a function pointerAndrew Tridgell2009-07-011-1/+7
| | | | | | The upcoming talloc_free/talloc_reference changes change talloc_free to be a macro. These two bits of code relied on it being a function pointer
* s4:libcliraw: s/private/private_dataStefan Metzmacher2009-02-021-8/+8
| | | | metze
* dcerpc_smb: trans->in.max_data should not depend on the smb max sizeStefan Metzmacher2008-07-071-1/+8
| | | | | | | We now support async multi fragment SMBtrans calls. metze (This used to be commit 6813e22e9d300696a40993476629227d5cc4d35f)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-3/+4
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r25316: Remove last few instances of old BOOL type in librpc/.Jelmer Vernooij2007-10-101-2/+3
| | | | (This used to be commit 80d1dd41d4b224c46ad545f0afd97a847b99860b)
* r24994: Fix some C++ warnings.Jelmer Vernooij2007-10-101-10/+10
| | | | (This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
* r24937: Merge tests spoolss RPC callbacks.Jelmer Vernooij2007-10-101-1/+3
| | | | (This used to be commit 9b256a0ca232ea6e89771bf73a1adf877273a752)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r22944: fix bug #4618:Stefan Metzmacher2007-10-101-14/+14
| | | | | | | rename private -> private_data metze (This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
* r22838: Add in an explority test for what QFSINFO operations are valid on IPC$Andrew Bartlett2007-10-101-0/+15
| | | | | | | | | | | | It seems most opertaions are supported, but that the values are not consistant. I think these are very much hand-hacked stubs, which is what they will be on Samba4 too. I'll need to add some more 'don't fail for...' hacks before this passes against Win2k3. Andrew Bartlett (This used to be commit dcb858d0c716b23be6c5d36b4aa6f155582ada63)
* r22683: fix the logic for skipping the pipe_dead()Stefan Metzmacher2007-10-101-2/+2
| | | | | | | | | code on the 2nd run. thanks volker for finding this! metze (This used to be commit 00ccc217da62a7f4125f28e77030ae526d573f3a)
* r22528: remember that the connection was marked dead and don'tStefan Metzmacher2007-10-101-0/+21
| | | | | | | | allow sending packet over the broken connection, as we would segfault... metze (This used to be commit 738b2c74117bdbef3b314c37f01f2f73b7a80685)
* r22485: don't crash when the main dcerpc code haven't setupStefan Metzmacher2007-10-101-1/+11
| | | | | | | | | transport.recv_data yet also return always a usefull error metze (This used to be commit 0a8b4c328dfac972186564d2a4e1757d5135ec47)
* r22470: merge handling of broken connections from wins replication client codeStefan Metzmacher2007-10-101-3/+3
| | | | | | | | | | | | to the rpc client code we need to always ask for read events on the socket otherwise we never get the connection error reported. shutdown the transport when a request timeout. metze (This used to be commit 3403c0cb15e08ec838b0bc834f941051fb94d124)
* r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is createdAndrew Tridgell2007-10-101-3/+16
| | | | | | | | | | using the pattern in the clilsa code, it didn't fill in the p->binding structure. This affects nearly all users of dcerpc_pipe_open_smb(), so the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises the binding if its not already there. - re-enable the RAW-ACLS test (This used to be commit d8875c286d2be49c01703d8fd58bbc1842054bd9)
* r17322: make better use of the composite apiStefan Metzmacher2007-10-101-47/+22
| | | | | metze (This used to be commit 5e66bf463b0998b2981380f1250b60b723595ac4)
* r14714: On DCE/RPC, we need the name of the remote server used on the socket,Andrew Bartlett2007-10-101-9/+19
| | | | | | | | for Kerberos. It must be the full name contacted, not the 'called name' we might want to use for \\server things, so add another function. Andrew Bartlett (This used to be commit 6d57d1dbb76e7d1ca2fd4f1a6c0bacfa7a189e2b)
* r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
* r14256: - rename smb_file -> smb_handleStefan Metzmacher2007-10-101-4/+4
| | | | | | | | - move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
* r14208: removed use of req->flags2 inside the ntvfs layer. This should helpAndrew Tridgell2007-10-101-0/+1
| | | | | | | | metze on his quest to unify the ntvfs strucures for the smb and smb2 servers. The only place we needed flags2 inside ntvfs was for the FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a readx.in.read_for_execute flag instead. (This used to be commit b78abbbce60ab0009da19a72dd769800c44298a2)
* r14173: change smb interface structures to always useStefan Metzmacher2007-10-101-4/+4
| | | | | | | | | | | | | a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
* r13210: Revert my named pipes patch until it passes not just 'make ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | | quicktest' but also 'make test' (This used to be commit e3d0676aee84e96e5c87bed4cd0cde75a4191953)
* r13208: Clearly separate named pipes from the IPC$ NTVFS type.Jelmer Vernooij2007-10-101-1/+1
| | | | | | | | This allows the easy addition of additional named pipes and removes the circular dependencies between the CIFS, RPC and RAP servers. Simple tests for a custom named pipe included. (This used to be commit 898d15acbd18e3b302a856c847e08c22c5024792)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)