summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_pipe_hnd.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-04s3-rpc_server: Migrate rpc function to tsocket_address.Andreas Schneider1-2/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-06-01s3-rpc_server: Fixed debug messages of srv_pipe_hnd.Andreas Schneider1-5/+5
2011-05-18s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett1-1/+1
strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
2011-05-06More const fixes. Remove CONST_DISCARD.Jeremy Allison1-5/+5
2011-05-02s3-rpc_server: (re)move last globally included rpc_server prototypes.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 2 16:05:31 CEST 2011 on sn-devel-104
2011-05-02s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner1-1/+2
Guenther
2011-04-29s3-rpc_server: remove some unneeded headers.Günther Deschner1-4/+0
Guenther
2011-04-29s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include ntdomain.h where needed.Günther Deschner1-0/+1
Guenther
2011-02-22s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett1-3/+3
These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-09-15s3-rpc_server: Moved "external" pipe functions to rpc_ncacn_np.c.Simo Sorce1-298/+1
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15s3-rpc_server: Added new parametric option 'rpc_server'Andreas Schneider1-1/+17
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15s3-rpc_server: Convert rpc_connect_spoolss_pipe into a generic interface.Simo Sorce1-28/+50
This way we have one common way to open internal pipes whether they are shortcircuited or piped to an external process.
2010-09-15s3-rpc_server: Added support for internal connections to external daemons.Simo Sorce1-2/+115
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15s3-rpc_server: Added debug to see how much data has been read out.Simo Sorce1-0/+4
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15s3-rpc_server: Make process_incoming_data() public.Simo Sorce1-1/+1
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15s3-rpc_server: Fixed unhandled error condition.Simo Sorce1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-08-26s3-dcerpc: only include rpc_dce.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-26s3-build: only include "fake_file.h" where needed.Günther Deschner1-0/+1
Guenther
2010-08-18s3: Add "client_id" to pipes_structVolker Lendecke1-14/+3
2010-08-08s3: Lift the smbd_messaging_context from rpc_pipe_open_internalVolker Lendecke1-0/+2
2010-08-08s3: Lift the smbd_messaging_context from np_openVolker Lendecke1-2/+2
2010-08-08s3: Lift the smbd_messaging_context from make_internal_rpc_pipe_pVolker Lendecke1-1/+2
2010-07-28s3-rpc_pipe: Use struct pipes_struct.Andreas Schneider1-4/+4
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 Sorce1-463/+1
2010-07-16s3-dcerpc: Fix ability to receive Big Endian PDUsSimo Sorce1-11/+13
2010-07-16s3-dcerpc: Use DATA_BLOB for pipes_struct input dataSimo Sorce1-48/+14
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Convert frag from prs_struct to a simple DATA_BLOBSimo Sorce1-10/+10
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOBSimo Sorce1-16/+6
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-14s3-dcerpc: fix crash bug in error path of process_complete_pdu().Günther Deschner1-1/+1
Guenther
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 Sorce1-101/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requestsSimo Sorce1-207/+302
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13s3-dceprc: Store opnum in its own variableSimo Sorce1-0/+3
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 Sorce1-38/+33
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-08s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.Günther Deschner1-1/+0
Otherwise a lot of information that is usually generated in the ndr_push remains in an uninitialized state. Guenther
2010-07-06s3: Fix a segfault in the RPC serverVolker Lendecke1-8/+9
After converting the rpc infratructure to talloc, read_from_internal_pipe freed the outdata too early. If the last fragment was read in two pieces (as rpcclient does it), all the outdata was freed during the read of the first piece of the read of the last fragment. Later read&x calls, trying to read the rest of the last fragment stepped into p->out_data.frag with non-zero offset when this was already freed.
2010-06-18Convert the prs_XXX struct and functions to use talloc instead of malloc. ↵Jeremy Allison1-28/+29
Passes valgrind and make tests for client and server. Second version of this patch after splitting up at Simo's request. Patch to follow will delete extraneous prs_mem_free() calls. Jeremy. Signed-off-by: Simo Sorce <idra@samba.org>
2010-06-10s3:cleaunp reformatting for readabilitySimo Sorce1-85/+160
2010-06-10s3:cleanup remove trailing spacesSimo Sorce1-11/+11
2010-06-07s3:named pipe proxy Improve error messages when named pipes fail to forwardAndrew Bartlett1-3/+6
I hope this helps the next person who needs to debug this. Andrew Bartlett
2010-06-04s3-rpc: Create a file with all functions for a internal named pipe.Andreas Schneider1-203/+0
This makes it possible to use the samr rpc server in winbind without linking in smbd. Reviewed-by: Simo Sorce <idra@samba.org>
2010-05-27s3:rpc_server: make use of the npa_tstream code to connect to named pipesStefan Metzmacher1-192/+152
This way we use the newest protocol, which is able to pass the local and remote address of the SMB connection. And we correctly support message mode named pipes without the hack that analyzes the content for DCERPC pdus. metze
2010-05-27s3:rpc_server: pass down local and remote tsocket_address to np_open()Stefan Metzmacher1-1/+15
metze
2010-05-27s3:rpc_server: add np_read_in_progress() functionStefan Metzmacher1-0/+22
metze
2010-05-27s3:rpc_server: make sure we don't send uninitialized memory for the ↵Stefan Metzmacher1-1/+1
named_pipe_auth handshake metze
2010-05-26s3-rpc_server: Created a per connection spoolss pipe.Simo Sorce1-0/+33
This way all code can reuse the same connection to spoolss and not have to deal with the creation of a new pipe all over the code every time we need to ask a service off spoolss. Signed-off-by: Günther Deschner <gd@samba.org>