summaryrefslogtreecommitdiff
path: root/source4/lib/messaging
AgeCommit message (Collapse)AuthorFilesLines
2012-05-03UTIL_TDB: lowercase name.Jelmer Vernooij1-1/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu May 3 20:18:22 CEST 2012 on sn-devel-104
2012-04-30s4-messaging: Fill in the whole server_id in all use casesAndrew Bartlett1-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
2012-04-25s4-messaging: Use generate_random() to get a unique ID for messaging clientsAndrew Bartlett1-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
2012-03-10tdb_wrap: Move to specific directory.Jelmer Vernooij1-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
2012-02-08s4-messaging: fix pymessaging docstringAndrew Bartlett1-3/+2
2011-10-13lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett1-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
2011-10-13s4-messaging: Pass the loadparm context, not just the messaging pathAndrew Bartlett5-24/+28
This will allow the TDB layer to get at the lp_ctx for tdb options. Andrew Bartlett
2011-09-14s4:lib/messaging: let irpc handles return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher1-2/+2
We should return the same in all places. metze
2011-08-26s4-messaging ensure we do not segfault on a NULL msg context in cleanupAndrew Bartlett1-0/+4
2011-08-13s4:lib: use tevent_ fns names instead of legcay event_ onesSimo Sorce1-6/+6
2011-08-13s4:messaging: use tevent_ function names instead of legacy event_ onesSimo Sorce3-7/+7
2011-07-22s4-messaging: fixed the removal of messaging sockets in child tasksAndrew Tridgell5-22/+33
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
2011-06-20Use tevent_req_oomVolker Lendecke1-1/+1
This fixes a few Coverity errors
2011-06-20tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell1-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>
2011-06-09lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett1-4/+4
This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
2011-06-09server_id.idl: Bring server_id.idl in commonAndrew Bartlett2-2/+2
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-09s4-cluster Use task_id instead of id2 to clarify server_id structureAndrew Bartlett1-6/+6
This seems a clearer and more acceptable name. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-05-06lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett1-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
2011-05-03s4-messaging Rename messaging -> imessagingAndrew Bartlett6-165/+165
This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
2011-05-03s4-cluster Rename server_id.node -> vnn to match Samba3Andrew Bartlett1-4/+4
2011-05-03s4:cluster Rename .id to .pid in server_idAndrew Bartlett2-10/+12
This also changes some DEBUG messages to use cluster_id_string() rather than .id, to isolate them from this and other changes. Andrew Bartlett
2011-02-28Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij1-1/+1
building against system tdb.
2011-02-18s4-idl: rename s4 server_id.idl to server_id4.idlAndrew Tridgell2-2/+2
this avoids a conflict with the new s3 server_id.idl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-01s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij1-2/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
2011-01-01s4-python: Add more prototypes.Jelmer Vernooij1-0/+2
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2-2/+2
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-05s4:lib/messaging/*.h - fix compile warnings on gcc 3.4Matthias Dieter Wallnöfer2-3/+2
For example on OpenSolaris
2010-11-22Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher1-1/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
2010-10-31s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij1-18/+0
The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-30s4-tdb: make tdb-wrap into a private libraryAndrew Tridgell1-1/+1
this prevents double linking of the tdb wrap code
2010-10-26waf: Remove lib prefix from libraries manually.Jelmer Vernooij1-1/+1
2010-10-26s4: Drop duplicate 'lib' prefix for private libraries.Jelmer Vernooij1-1/+1
2010-10-24s4: Rename LIBSAMBA-* to libsamba-*Jelmer Vernooij1-1/+1
2010-10-23s4: Rename LIBEVENTS to libevents.Jelmer Vernooij1-1/+1
2010-10-21s4-waf: don't depend directly on python modulesAndrew Tridgell1-1/+1
build rules should not list dependencies on python modules. Instead, if code needs the module it should use the python API import calls to access the module. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-27s4/irpc: Add function to add security token to the binding handleAnatoliy Atanasov2-0/+12
2010-09-27s4:irpc: optionaly pass the security_token via IRPC requests.Stefan Metzmacher1-0/+3
metze
2010-09-23s4:irpc: use LIBNDR_FLAG_REF_ALLOC for the server side when pullingStefan Metzmacher1-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>
2010-09-21s4-selftest: Move more tests to scripting/python, simplifies running of tests.Jelmer Vernooij1-58/+0
2010-09-21pymessaging: Remove unused older python irpc bindings.Jelmer Vernooij1-349/+3
2010-09-16s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the callKamen Mazdrashki1-3/+6
2010-09-16s4-irpc: Add value for "infinite" timeout for IRPC callsKamen Mazdrashki1-1/+3
2010-09-15s4-messaging: add support for no_reply in irpc messagesAndrew Tridgell2-0/+8
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>
2010-09-04s4:lib/messaging: implement irpc_bh_set_timeoutStefan Metzmacher1-1/+19
metze
2010-09-03s4:lib/messaging: make irpc_request private and remove unused codeStefan Metzmacher2-190/+14
metze
2010-09-03s4:lib/messaging/tests: make use of irpc_binding_handle()Stefan Metzmacher1-22/+49
metze
2010-09-03s4:lib/messaging: use irpc_binding_handle() for python bindingsStefan Metzmacher1-13/+57
metze
2010-09-03s4:lib/messaging: add irpc_binding_handle_by_name() helper functionStefan Metzmacher2-0/+36
metze
2010-09-03s4:lib/messaging: add irpc dcerpc_binding_handle backendStefan Metzmacher3-1/+289
metze
2010-09-03s4:lib/messaging: move messaging prototypes from irpc.h to messaging.hStefan Metzmacher2-28/+25
metze