summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging
Commit message (Collapse)AuthorAgeFilesLines
* 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
* s4:lib/messaging: pymessaging needs libndr.hStefan Metzmacher2010-03-231-0/+1
| | | | metze
* s4-messaging: use auto-close on the socketAndrew Tridgell2010-03-051-0/+1
|
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* 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.
* s4-messaging: added a new msg type MSG_DREPL_ALLOCATE_RIDAndrew Tridgell2010-01-081-0/+1
| | | | | | This will be used to ask the drepl task for a new RID pool Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:lib/messaging - fix up the python bindingsMatthias Dieter Wallnöfer2009-11-072-7/+8
| | | | | | This fixes up the broken "send" method of the python bindings and corrects some other parameter lists in parsing functions (this is only cosmetic). The reason for the bug was a superfluous "|"!
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-231-1/+1
| | | | | If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
* s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell2009-09-182-0/+4
| | | | | | When one of our core tasks fails to initialise it can now ask for the server as a whole to die, rather than limping along in a degraded state.
* 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.
* Fix unresolved symbol in python messaging module.Jelmer Vernooij2009-06-022-4/+2
|
* s4:lib/messaging: s/private/private_dataStefan Metzmacher2009-02-022-7/+7
| | | | metze
* s4:irpc: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-013-6/+6
| | | | metze
* s4:lib/messaging: fix warnings in testsuiteStefan Metzmacher2009-02-011-2/+2
| | | | metze
* s4:lib/messaging: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-013-29/+29
| | | | metze
* Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij2009-01-081-1/+5
| | | | since this will not be shipped with talloc/tdb/tevent/etc.
* s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty2009-01-071-1/+1
|
* py: Properly increase the reference counter of Py_None.Jelmer Vernooij2009-01-061-4/+4
|
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-295-16/+16
| | | | | | | | | | | | | | | | | | | | 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
* Rename samba-socket -> samba_socket to fix a couple more compilerJelmer Vernooij2008-12-241-1/+1
| | | | warnings.
* Remove includes of py_*.h, which are no longer generated.Jelmer Vernooij2008-12-221-1/+3
|
* Use consistent names for dcerpc python modules; fixes messaging test.Jelmer Vernooij2008-12-221-3/+5
|
* Rename dom_sid.idl -> server_id.idl (since it no longer actually contains ↵Jelmer Vernooij2008-12-161-0/+1
| | | | the dom_sid). No longer include it from security.idl.
* Remove use of global loadparm in python modules.Jelmer Vernooij2008-11-021-2/+7
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Remove more uses of global_loadparm.Jelmer Vernooij2008-10-241-2/+2
|
* Remove a few more usages of global_loadparm.Jelmer Vernooij2008-10-241-2/+2
|
* Eliminate another instance of global_loadparm.Jelmer Vernooij2008-10-241-2/+3
|
* 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
|