summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging
Commit message (Collapse)AuthorAgeFilesLines
* s4-messaging: fixed the removal of messaging sockets in child tasksAndrew Tridgell2011-07-225-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
* 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
* server_id.idl: Bring server_id.idl in commonAndrew Bartlett2011-06-092-2/+2
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-cluster Use task_id instead of id2 to clarify server_id structureAndrew Bartlett2011-06-091-6/+6
| | | | | | | | This seems a clearer and more acceptable name. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* 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-036-165/+165
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* s4-cluster Rename server_id.node -> vnn to match Samba3Andrew Bartlett2011-05-031-4/+4
|
* s4:cluster Rename .id to .pid in server_idAndrew Bartlett2011-05-032-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
* 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-idl: rename s4 server_id.idl to server_id4.idlAndrew Tridgell2011-02-182-2/+2
| | | | | | this avoids a conflict with the new s3 server_id.idl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij2011-01-011-2/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
* s4-python: Add more prototypes.Jelmer Vernooij2011-01-011-0/+2
|
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-112-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
* s4:lib/messaging/*.h - fix compile warnings on gcc 3.4Matthias Dieter Wallnöfer2010-12-052-3/+2
| | | | For example on OpenSolaris
* Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher2010-11-221-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
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-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
* s4-tdb: make tdb-wrap into a private libraryAndrew Tridgell2010-10-301-1/+1
| | | | this prevents double linking of the tdb wrap code
* waf: Remove lib prefix from libraries manually.Jelmer Vernooij2010-10-261-1/+1
|
* s4: Drop duplicate 'lib' prefix for private libraries.Jelmer Vernooij2010-10-261-1/+1
|
* s4: Rename LIBSAMBA-* to libsamba-*Jelmer Vernooij2010-10-241-1/+1
|
* s4: Rename LIBEVENTS to libevents.Jelmer Vernooij2010-10-231-1/+1
|
* s4-waf: don't depend directly on python modulesAndrew Tridgell2010-10-211-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>
* s4/irpc: Add function to add security token to the binding handleAnatoliy Atanasov2010-09-272-0/+12
|
* 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-selftest: Move more tests to scripting/python, simplifies running of tests.Jelmer Vernooij2010-09-211-58/+0
|
* pymessaging: Remove unused older python irpc bindings.Jelmer Vernooij2010-09-211-349/+3
|
* s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the callKamen Mazdrashki2010-09-161-3/+6
|
* s4-irpc: Add value for "infinite" timeout for IRPC callsKamen Mazdrashki2010-09-161-1/+3
|
* s4-messaging: add support for no_reply in irpc messagesAndrew Tridgell2010-09-152-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>
* 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-032-190/+14
| | | | metze
* s4:lib/messaging/tests: make use of irpc_binding_handle()Stefan Metzmacher2010-09-031-22/+49
| | | | metze
* s4:lib/messaging: use irpc_binding_handle() for python bindingsStefan Metzmacher2010-09-031-13/+57
| | | | metze
* s4:lib/messaging: add irpc_binding_handle_by_name() helper functionStefan Metzmacher2010-09-032-0/+36
| | | | metze
* s4:lib/messaging: add irpc dcerpc_binding_handle backendStefan Metzmacher2010-09-033-1/+289
| | | | metze
* s4:lib/messaging: move messaging prototypes from irpc.h to messaging.hStefan Metzmacher2010-09-032-28/+25
| | | | metze
* s4:lib/messaging/tests: fix some compiler warningsStefan Metzmacher2010-09-031-2/+2
| | | | metze
* pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.Jelmer Vernooij2010-09-031-1/+1
|
* s4:lib/messaging: add some const to messaging_send()Stefan Metzmacher2010-08-302-2/+2
| | | | metze
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-163-8/+8
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij2010-06-191-1/+2
| | | | setUp methods are called, fix formatting.
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-185-20/+5
|
* pytalloc: ensure talloc_ctx is directly after PyObject_HEADAndrew Tridgell2010-04-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | the talloc python interface for tp_alloc and tp_dealloc relies on a cast to a py_talloc_Object to find the talloc_ctx (see py_talloc_dealloc). This means we rely on the talloc_ctx for the object being directly after the PyObject_HEAD This fixes the talloc free with references bug in samba_dnsupdate The actual problem was the tp_alloc() call in PyCredentialCacheContainer_from_ccache_container() which used a cast from a py_talloc_Object to a PyCredentialCacheContainerObject. That case effectively changed the parent/child relationship between the talloc_ctx and the ccc ptr. This patch changes all the structures that follow this pattern to put the TALLOC_CTX directly after the PyObject_HEAD, to ensure that if anyone else decides to do a dangerous cast like this that it won't cause the same sort of subtle breakage. Pair-Programmed-With: Rusty Russell <rusty@samba.org>
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-3/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+16
|
* python: use '#!/usr/bin/env python' to cope with varying install locationsAndrew Tridgell2010-03-251-1/+1
| | | | this should be much more portable