1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

164 Commits

Author SHA1 Message Date
Andrew Tridgell
5573d04941 s4-messaging: use auto-close on the socket 2010-03-05 11:54:36 +11:00
Matthias Dieter Wallnöfer
e34637b2a6 s4:Remove "Py_RETURN_NONE" compatibility code
This was needed only by Python 2.3 which we no longer support.
2010-02-09 17:53:09 +01:00
Matt Kraai
d8071e7ed7 Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Andrew Tridgell
651ddb720a s4-messaging: remove only usage of debug_ctx() 2010-01-09 10:15:13 +11:00
Andrew Tridgell
6a36799d30 s4-messaging: fixed a memory leak in messaging_path()
It is a bit convoluted to fix, as cluster_id_string() may return a
const string.
2010-01-09 10:15:12 +11:00
Andrew Tridgell
805ab0ef15 s4-messaging: added a new msg type MSG_DREPL_ALLOCATE_RID
This will be used to ask the drepl task for a new RID pool

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08 13:03:01 +11:00
Matthias Dieter Wallnöfer
f6eacfcf1d s4:lib/messaging - fix up the python bindings
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 "|"!
2009-11-07 18:02:05 +01:00
Andrew Tridgell
3050f83288 s4-python: we need to include Python.h first
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.
2009-10-23 16:23:01 +11:00
Andrew Tridgell
e9a589feac s4-server: kill main daemon if a task fails to initialise
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.
2009-09-18 18:05:55 -07:00
Andrew Tridgell
e2d4ae1510 fixed several places that unnecessarily take a reference to the event context
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.
2009-08-07 17:24:48 +10:00
Jelmer Vernooij
8d966fac41 Fix unresolved symbol in python messaging module. 2009-06-02 18:05:42 +02:00
Stefan Metzmacher
735af62105 s4:lib/messaging: s/private/private_data
metze
2009-02-02 13:08:25 +01:00
Stefan Metzmacher
5f13710ced s4:irpc: avoid c++ reserved word 'private'
metze
2009-02-01 00:17:20 +01:00
Stefan Metzmacher
96f176dbd8 s4:lib/messaging: fix warnings in testsuite
metze
2009-02-01 00:17:20 +01:00
Stefan Metzmacher
f3f2dfc51a s4:lib/messaging: avoid c++ reserved word 'private'
metze
2009-02-01 00:17:19 +01:00
Jelmer Vernooij
ba5d6e6d70 Avoid using a utility header for Python replacements included in Samba,
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4 2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1 py: Properly increase the reference counter of Py_None. 2009-01-06 04:13:57 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
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
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
1feab85be6 Rename samba-socket -> samba_socket to fix a couple more compiler
warnings.
2008-12-24 00:15:43 +01:00
Jelmer Vernooij
24b62772ab Remove includes of py_*.h, which are no longer generated. 2008-12-22 04:21:20 +01:00
Jelmer Vernooij
2396d8d613 Use consistent names for dcerpc python modules; fixes messaging test. 2008-12-22 04:03:55 +01:00
Jelmer Vernooij
0f04beff33 Rename dom_sid.idl -> server_id.idl (since it no longer actually contains the dom_sid). No longer include it from security.idl. 2008-12-16 15:36:18 +01:00
Jelmer Vernooij
cb77fca1cd Remove use of global loadparm in python modules. 2008-11-02 16:50:11 +01:00
Jelmer Vernooij
23302413b3 Remove unused include param/param.h. 2008-10-24 16:37:56 +02:00
Jelmer Vernooij
56a0b035c6 Remove more uses of global_loadparm. 2008-10-24 14:31:16 +02:00
Jelmer Vernooij
284f523ec7 Remove a few more usages of global_loadparm. 2008-10-24 13:22:12 +02:00
Jelmer Vernooij
8b06312f7e Eliminate another instance of global_loadparm. 2008-10-24 13:13:27 +02:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Jelmer Vernooij
7111645d3c Use single copy of tdb in both samba3 and samba4. 2008-09-16 15:16:31 +02:00
Simo Sorce
2daf2897d5 Use a custom init function for samba4 that sets a samba4
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308)
2008-06-14 13:00:53 -04:00
Andrew Tridgell
27f465619b two more places where the wrong type is passed to PyArg_ParseTupleAndKeywords()
(This used to be commit db6122ec10)
2008-05-30 16:19:22 +10:00
Andrew Tridgell
07e6a0fd8a fixed a segv in the python messaging code on 64 bit systems
(This used to be commit 7598c83897)
2008-05-30 16:11:07 +10:00
Jelmer Vernooij
dce310ef4e Remove evil hack which breaks Python bindings.
(This used to be commit 1c179566cb)
2008-05-26 13:31:57 +02:00
Jelmer Vernooij
4b3641695b Finish smbstatus in Python.
(This used to be commit 988508c2d3)
2008-05-26 05:00:45 +02:00
Jelmer Vernooij
d5434f0b4b Allow using IRPC functions on the messaging bus from Python.
(This used to be commit 6ecf81ae13)
2008-05-26 04:14:28 +02:00
Jelmer Vernooij
d60d8e57d8 Implement IRPC calls over the internal messaging bus.
(This used to be commit 777dc3a2c7)
2008-05-26 03:07:18 +02:00
Jelmer Vernooij
d9a6f04ddd Provide access to server_id from python bindings, add more tests.
(This used to be commit adcd87ad07)
2008-05-26 01:52:35 +02:00
Jelmer Vernooij
f22e4d0ce3 Add bindings for deregister.
(This used to be commit 3e7b361f59)
2008-05-26 01:15:15 +02:00
Jelmer Vernooij
b058e556f8 Support messaging_client_init in the python bindings.
(This used to be commit f2e8f98510)
2008-05-26 01:10:24 +02:00
Jelmer Vernooij
68cec4923a Add bindings for irpc_{add,remove}_name.
(This used to be commit a75dbdec15)
2008-05-26 00:50:07 +02:00
Jelmer Vernooij
2067fc60c5 Add tests for irpc python bindings.
(This used to be commit 1ce0632afe)
2008-05-25 16:47:12 +02:00
Jelmer Vernooij
48433e4351 Start building IRPC Python support.
(This used to be commit 5980c7bfd7)
2008-05-25 16:26:34 +02:00
Jelmer Vernooij
1b5acdb93b Initialize module.
(This used to be commit 3246258afb)
2008-05-24 18:25:27 +02:00
Jelmer Vernooij
453396c67b Initial work on IRPC Python support.
(This used to be commit df01b040f7)
2008-05-24 18:18:21 +02:00
Volker Lendecke
d817b43534 Fix a memleak in irpc_remove_name
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 49b04ca7aa)
2008-05-19 15:59:54 +02:00
Jelmer Vernooij
333c169529 Use variables for source directory in remaining subsystems.
(This used to be commit 6b6b2196a8)
2008-05-18 20:30:46 +02:00
Simo Sorce
4e83011f72 Remove more event_context_init() uses from function calls within deep down 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 3045d39162)
2008-04-21 18:12:33 -04:00
Andrew Bartlett
8eaf64b47b Now that we don't create a new event context, don't free it.
This previously would free the torture provided global event context.

Andrew Bartlett
(This used to be commit 664f2fc49f)
2008-04-16 09:02:12 +02:00
Jelmer Vernooij
ffc5cbfe80 Move object files lists to makefile rather than smb_build.
(This used to be commit 5628d58990)
2008-04-14 16:53:00 +02:00