summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server/srv_pipe_hnd.c
Commit message (Collapse)AuthorAgeFilesLines
* rpc_server: change unsupported pipe errorDavid Disseldorp2014-03-051-3/+2
| | | | | | | | | | | | | | | smbd currently prints the following level 0 error when a client attempts to connect to an unsupported named pipe (e.g. browser): ERROR! 'browser' is not a registred pipe This change reduces the severity of the error (0->2) and fixes a couple of typos. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Mar 5 16:31:42 CET 2014 on sn-devel-104
* s3/rpc_server: don't unmarshall PDUs twiceDavid Disseldorp2013-12-111-366/+0
| | | | | | | | | | | | | DCE/RPC PDUs are currently unmarshalled firstly by the generic librpc dcerpc_read_ncacn_packet_[send/recv] functions, and subsequently a second time by the source3 rpc_server, which ignores the unmarshalled packet and re-parses the receive buffer. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Dec 11 22:24:31 CET 2013 on sn-devel-104
* s3-rpc_server: Remove obsolete FAKE_FILE_TYPE_NAMED_PIPE handling.Andreas Schneider2013-10-291-37/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: Use make_internal_rpc_pipe_socketpair().Andreas Schneider2013-10-291-8/+9
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: Pass the server event context to np_open().Andreas Schneider2013-10-291-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: Use new rpc named pipe functions.Andreas Schneider2013-10-291-34/+58
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc: use ndr_interface_name() instead of get_pipe_name_from_syntax() in ↵Günther Deschner2013-09-201-5/+11
| | | | | | | | | DEBUG. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:rpc_server: s/struct event_context/struct tevent_contextStefan Metzmacher2013-02-191-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:rpc_server: return OBJECT_NAME_NOT_FOUND instead of PIPE_NOT_AVAILABLEStefan Metzmacher2012-05-281-1/+1
| | | | metze
* s3: Fix a "Invalid (state->nread >= 0)" warningVolker Lendecke2012-03-051-1/+1
| | | | | | | | Both read_from_internal_pipe and tstream_readv_pdu_queue_recv return ssize_t. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 5 17:38:16 CET 2012 on sn-devel-104
* s3-rpc_server: Use rpc_service_mode() in np_open()Simo Sorce2011-08-211-19/+19
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Check explicit for external and daemon server type.Andreas Schneider2011-08-211-1/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Fix include order in srv_pipe_hnd.c.Andreas Schneider2011-08-211-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-auth Use the common auth_session_infoAndrew Bartlett2011-07-201-1/+1
| | | | | | | | | | | This patch finally has the same structure being used to describe the authorization data of a user across the whole codebase. This will allow of our session handling to be accomplished with common code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett2011-07-201-1/+1
| | | | | | | | | | | | | | | This seperation between the structure used inside the auth modules and in the wider codebase allows for a gradual migration from struct auth_serversupplied_info -> struct auth_session_info (from auth.idl) The idea here is that we keep a clear seperation between the structure before and after the local groups, local user lookup and the session key modifications have been processed, as the lack of this seperation has caused issues in the past. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-rpc_server: Migrate rpc function to tsocket_address.Andreas Schneider2011-07-041-2/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Fixed debug messages of srv_pipe_hnd.Andreas Schneider2011-06-011-5/+5
|
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-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
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-061-5/+5
|
* s3-rpc_server: (re)move last globally included rpc_server prototypes.Günther Deschner2011-05-021-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
* s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner2011-05-021-1/+2
| | | | Guenther
* s3-rpc_server: remove some unneeded headers.Günther Deschner2011-04-291-4/+0
| | | | Guenther
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-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
* s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.Günther Deschner2011-04-291-0/+1
| | | | Guenther
* s3-includes: only include ntdomain.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2011-02-221-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>
* s3-rpc_server: Moved "external" pipe functions to rpc_ncacn_np.c.Simo Sorce2010-09-151-298/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-rpc_server: Added new parametric option 'rpc_server'Andreas Schneider2010-09-151-1/+17
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-rpc_server: Convert rpc_connect_spoolss_pipe into a generic interface.Simo Sorce2010-09-151-28/+50
| | | | | This way we have one common way to open internal pipes whether they are shortcircuited or piped to an external process.
* s3-rpc_server: Added support for internal connections to external daemons.Simo Sorce2010-09-151-2/+115
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-rpc_server: Added debug to see how much data has been read out.Simo Sorce2010-09-151-0/+4
| | | | Signed-off-by: Andreas Schneider <asn@cynapses.org>
* s3-rpc_server: Make process_incoming_data() public.Simo Sorce2010-09-151-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@cynapses.org>
* s3-rpc_server: Fixed unhandled error condition.Simo Sorce2010-09-151-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-dcerpc: only include rpc_dce.h where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-build: only include "fake_file.h" where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3: Add "client_id" to pipes_structVolker Lendecke2010-08-181-14/+3
|
* s3: Lift the smbd_messaging_context from rpc_pipe_open_internalVolker Lendecke2010-08-081-0/+2
|
* s3: Lift the smbd_messaging_context from np_openVolker Lendecke2010-08-081-2/+2
|
* s3: Lift the smbd_messaging_context from make_internal_rpc_pipe_pVolker Lendecke2010-08-081-1/+2
|
* s3-rpc_pipe: Use struct pipes_struct.Andreas Schneider2010-07-281-4/+4
|
* s3-dcerpc: Fix build and remove unneeded headersSimo Sorce2010-07-171-3/+0
| | | | Sorry, botched a rebase.
* s3-dcerpc: Move mere processing functions from srv_pipe_hnd.c to srv_pipe.cSimo Sorce2010-07-171-463/+1
|
* s3-dcerpc: Fix ability to receive Big Endian PDUsSimo Sorce2010-07-161-11/+13
|
* s3-dcerpc: Use DATA_BLOB for pipes_struct input dataSimo Sorce2010-07-161-48/+14
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Convert frag from prs_struct to a simple DATA_BLOBSimo Sorce2010-07-161-10/+10
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOBSimo Sorce2010-07-161-16/+6
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: fix crash bug in error path of process_complete_pdu().Günther Deschner2010-07-141-1/+1
| | | | Guenther
* s3-dceprc: Add debug messagesSimo Sorce2010-07-131-0/+10
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused functionsSimo Sorce2010-07-131-101/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requestsSimo Sorce2010-07-131-207/+302
| | | | Signed-off-by: Günther Deschner <gd@samba.org>