summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging/messaging.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-messaging: Fill in the whole server_id in all use casesAndrew Bartlett2012-04-301-1/+6
| | | | | | | | | | | | This started per https://bugzilla.samba.org/show_bug.cgi?id=8872#c4 and avoids any possible collision with a different process. We also need to ensure that across a Samba installation on a single node that id.vnn is the same. Samba4 previously used 0, while Samba3 used NONCLUSTER_VNN. When a message is sent between these 'different' nodes, the error NT_STATUS_INVALID_DEVICE_REQUEST is raised. Andrew Bartlett
* s4-messaging: Use generate_random() to get a unique ID for messaging clientsAndrew Bartlett2012-04-251-1/+2
| | | | | | | | | | | | The call to random() resulted in duplicate values for s3fs configurations which, due to the forked child, all started with the same random seed. A future improvement would be to move to a proven unique value. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 25 11:43:40 CEST 2012 on sn-devel-104
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-101-1/+1
| | | | | | | | | | It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-131-1/+8
| | | | | | | | This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
* s4-messaging: Pass the loadparm context, not just the messaging pathAndrew Bartlett2011-10-131-5/+8
| | | | | | This will allow the TDB layer to get at the lp_ctx for tdb options. Andrew Bartlett
* s4:lib/messaging: let irpc handles return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-2/+2
| | | | | | We should return the same in all places. metze
* s4-messaging ensure we do not segfault on a NULL msg context in cleanupAndrew Bartlett2011-08-261-0/+4
|
* s4:lib: use tevent_ fns names instead of legcay event_ onesSimo Sorce2011-08-131-6/+6
|
* s4:messaging: use tevent_ function names instead of legacy event_ onesSimo Sorce2011-08-131-2/+2
|
* s4-messaging: fixed the removal of messaging sockets in child tasksAndrew Tridgell2011-07-221-7/+16
| | | | | | | | | | | | | | when a child task exits we were firing a destructor on any inherited messaging contexts, which could trigger a removal of the parents message socket and messaging database entry. This adds a new auto_remove flag to imessaging_init(), and exposes the cleanup code for use by the stream service. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 22 08:09:06 CEST 2011 on sn-devel-104
* Use tevent_req_oomVolker Lendecke2011-06-201-1/+1
| | | | This fixes a few Coverity errors
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-201-1/+1
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett2011-06-091-4/+4
| | | | | | | This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-061-1/+1
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* s4-messaging Rename messaging -> imessagingAndrew Bartlett2011-05-031-78/+78
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* s4:cluster Rename .id to .pid in server_idAndrew Bartlett2011-05-031-4/+6
| | | | | | | This also changes some DEBUG messages to use cluster_id_string() rather than .id, to isolate them from this and other changes. Andrew Bartlett
* Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij2011-02-281-1/+1
| | | | | | building against system tdb.
* s4/irpc: Add function to add security token to the binding handleAnatoliy Atanasov2010-09-271-0/+10
|
* s4:irpc: optionaly pass the security_token via IRPC requests.Stefan Metzmacher2010-09-271-0/+3
| | | | metze
* s4:irpc: use LIBNDR_FLAG_REF_ALLOC for the server side when pullingStefan Metzmacher2010-09-231-0/+2
| | | | | | | | | | | | | The dcerpc server also uses it, so it was surprising that the IRPC server side doesn't used it. The reason to have this is that we want to handle error cases and returns like NT_STATUS_NOT_SUPPORTED sane, without crashing while marshalling the response. metze Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the callKamen Mazdrashki2010-09-161-3/+6
|
* s4-messaging: add support for no_reply in irpc messagesAndrew Tridgell2010-09-151-0/+7
| | | | | | | | | | | | It can be useful for a irpc message to be one-way, where the client sends a messages and the server does not reply. This will be used for things like a triger message from an auth context to the drepl server to tell it to try a REPL_SECRET on a user in a RODC. Previously we've used raw messaging for messages that have no reply, but that doesn't allow us to use messages described by IDL Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:lib/messaging: implement irpc_bh_set_timeoutStefan Metzmacher2010-09-041-1/+19
| | | | metze
* s4:lib/messaging: make irpc_request private and remove unused codeStefan Metzmacher2010-09-031-151/+13
| | | | metze
* s4:lib/messaging: add irpc_binding_handle_by_name() helper functionStefan Metzmacher2010-09-031-0/+32
| | | | metze
* s4:lib/messaging: add irpc dcerpc_binding_handle backendStefan Metzmacher2010-09-031-0/+279
| | | | metze
* s4:lib/messaging: add some const to messaging_send()Stefan Metzmacher2010-08-301-1/+1
| | | | metze
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-8/+4
|
* s4-messaging: use auto-close on the socketAndrew Tridgell2010-03-051-0/+1
|
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-messaging: remove only usage of debug_ctx()Andrew Tridgell2010-01-091-2/+4
|
* s4-messaging: fixed a memory leak in messaging_path()Andrew Tridgell2010-01-091-2/+9
| | | | | It is a bit convoluted to fix, as cluster_id_string() may return a const string.
* fixed several places that unnecessarily take a reference to the event contextAndrew Tridgell2009-08-071-1/+1
| | | | | | | | | | | | | | | These references were triggering the ambiguous talloc_free errors from the recent talloc changes when the server is run using the 'standard' process model instead of the 'single' process model. I am aiming to move the build farm to use the 'standard' process model soon, as part of an effort to make our test environment better match the real deployment of Samba4. The references are not needed as the way that the event context is used is as the 'top parent', so when the event context is freed then all of the structures that were taking a reference to the event context were actually freed as well, thus making the references redundent.
* s4:irpc: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-011-2/+2
| | | | metze
* s4:lib/messaging: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-011-20/+20
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-8/+8
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-3/+3
|
* Use single copy of tdb in both samba3 and samba4.Jelmer Vernooij2008-09-161-2/+1
|
* Provide access to server_id from python bindings, add more tests.Jelmer Vernooij2008-05-261-0/+5
| | | | (This used to be commit adcd87ad07abbf60a0152deae4b975a2401d701b)
* Fix a memleak in irpc_remove_nameVolker Lendecke2008-05-191-0/+6
| | | | | | First, even when length==0 tdb_fetch might return something. Second, for some weird reason there might be less data than necessary for a single server id. (This used to be commit 49b04ca7aadf264e500d83bc8d3cb5173a86184e)
* Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce2008-04-211-4/+4
| | | | | | | | the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
* messaging: fix a valgrind warning on 64bit hosts zero out paddingStefan Metzmacher2008-03-151-0/+2
| | | | | metze (This used to be commit f555b8e4c35f69fdc1fb34427d882580eecad284)
* Fix a few more breakages from our recent changes to the server_idAndrew Bartlett2008-02-041-2/+2
| | | | | | | | | | | structure. The BASE-TORTURE test found this problem - caused because the messaging path was not unique. If we didn't use a macro for cluster_id_equal(), we could make it opaque, and avoid this... Andrew Bartlett (This used to be commit c3387545c57d2dd4922b4f3806b4552cee8035a3)
* Rework cluster_id() to take an additional argument, as we needAndrew Bartlett2008-02-041-3/+5
| | | | | | | <node>.<pid>.<fd> to be unique in a prefork process environment. Andrew Bartlett and David Disseldorp (This used to be commit 931994a7f185bbc98924823e9e8cef1011dd0957)
* r26441: Remove global_loadparm uses.Jelmer Vernooij2007-12-211-4/+8
| | | | (This used to be commit 32007c6277efa46341da7741b749a98633d71640)
* r26432: Require ndr_pull users to specify iconv_convenience.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 28b1d36551b75241c1cf9fca5d74f45a6dc884ab)
* r26431: Require ndr_push creators to specify a iconv_convenience context.Jelmer Vernooij2007-12-211-2/+2
| | | | (This used to be commit 7352206f4450fdf881b95bda064cedd9d2477e4c)
* r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 56dfcb4f2f8e74c9d8b2fe3a0df043781188a555)
* r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher2007-12-211-16/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/messaging/ lib/registry/ lib/ldb-samba/ librpc/rpc/ auth/auth_winbind.c auth/gensec/ auth/kerberos/ dsdb/repl/ dsdb/samdb/ dsdb/schema/ torture/ cluster/ctdb/ kdc/ ntvfs/ipc/ torture/rap/ ntvfs/ utils/getntacl.c ntptr/ smb_server/ libcli/wrepl/ wrepl_server/ libcli/cldap/ libcli/dgram/ libcli/ldap/ libcli/raw/ libcli/nbt/ libnet/ winbind/ rpc_server/ metze (This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)