Simo Sorce [Fri, 5 Aug 2011 19:14:26 +0000 (15:14 -0400)]
s3-printing: Allow bq process to have own logfile
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 5 Aug 2011 14:08:23 +0000 (10:08 -0400)]
s3-spoolssd: Use the child_id to open log files
This way each child has its own log file and avoid mixing all logs form all
children in the same parent log file.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 5 Aug 2011 14:34:05 +0000 (10:34 -0400)]
s3-prefork: Pass the child a child_id
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 4 Aug 2011 12:56:01 +0000 (08:56 -0400)]
s3-printing: Force pcap reload when all ready
This way we are sure the cache is primed properly and messages can be sent to
processes if necessary as all messaging has been set up.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 19 Jul 2011 19:07:42 +0000 (15:07 -0400)]
s3-prefork: Return tsocket_address for client and server
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 18 Jul 2011 14:39:50 +0000 (10:39 -0400)]
s3-prefork: Pass messaging context around too
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 20 May 2011 03:56:02 +0000 (23:56 -0400)]
s3-prefork: Set up a SIGCHLD handler by default
We need to properly handle preforked children so it is better to just do that
automatically.
If the parent needs/wants to intercept SIGCHLD events it can set a callback
that will be called by the prefork code once the internal cleanup function that
checks all prefork children has been executed.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Wed, 18 May 2011 15:24:30 +0000 (11:24 -0400)]
s3:spoolssd Start spoolssd from printing_subsystem_init
Use a child for the background updater process
Forward printer update messages from spoolss to background update process.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Wed, 3 Aug 2011 21:04:50 +0000 (17:04 -0400)]
s3-printing: Rework how the background process is started
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 16 May 2011 14:46:35 +0000 (10:46 -0400)]
s3-prefork: Provide a cleanup function
This way the parent doesn't need to know how to handle dead children and
keeps all of that within the prefork abstraction.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 16 May 2011 14:23:59 +0000 (10:23 -0400)]
s3-prefork: Inline Doxygen Documentation
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 10 May 2011 13:08:21 +0000 (09:08 -0400)]
s3-prefork: better timing out semantics
If this child has no clients, let the lock functions block for 1 second,
and then immediately reschedule the operation. This means we catch the lock
as soon as possible on a free child.
If, instead, we are already serving a client, we want to be non blocking,
so we timeout immediately on getting the lock, and then we sleep a 1/10th of
a second.
This means that a busy child will be slightly slower on picking up the lock,
but we won't block the existing client from communicating with us as we
immediately react to activity on the already opened file handler.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 10 May 2011 12:39:14 +0000 (08:39 -0400)]
s3-prefork: add support for multiple listning file descriptors
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 9 May 2011 12:50:11 +0000 (08:50 -0400)]
s3-spoolssd: propagate SIGHUP to children
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 9 May 2011 12:49:50 +0000 (08:49 -0400)]
s3-prefork: provide way to send a signal to all children
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 9 May 2011 09:37:29 +0000 (05:37 -0400)]
s3-spoolssd: expand children pool when necessary
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 9 May 2011 08:51:47 +0000 (04:51 -0400)]
s3-prefork: provide means to expand the pool size
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 9 May 2011 08:38:06 +0000 (04:38 -0400)]
s3-spoolssd: Use parametric option for prefork parameters
example:
spoolssd:prefork = 10:100:5
will configure spoolssd to start with a minimum of 10 preforked children,
a max set to 100 children and spawns/retires 5 children at a time when
ramping up/scaling down.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 5 May 2011 21:59:00 +0000 (17:59 -0400)]
s3-spoolss: make listening asynchronous
This also allows to make each children serve more than one client at the same
time if necessary.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 21 Apr 2011 19:06:18 +0000 (15:06 -0400)]
s3-spoolssd: Use the prefork framework in spoolssd
This should make it more scalable and able to handle easily multiple clients at
the same time.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 25 Apr 2011 21:24:15 +0000 (17:24 -0400)]
s3-rpc_server: add termination function
This way we can act when a client disconnects.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 21 Apr 2011 19:05:12 +0000 (15:05 -0400)]
s3-rpc: Expose some internal functions
This will allow to hook the prefork socket handlers to the rpc service.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 5 May 2011 21:56:31 +0000 (17:56 -0400)]
s3-prefork: add way to manage number of clients per child
The allowed_clients var is a parent managed variable that tell children how
many clients they are allowed to handle at the same time. This way children
can overcommit but within parent controlled limits.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 3 May 2011 22:55:25 +0000 (18:55 -0400)]
s3-prefork: add asynchronous functions
To get a client connection it is now possible to use asynchronous functions.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Wed, 20 Apr 2011 20:28:57 +0000 (16:28 -0400)]
s3-prefork: implement prefork framework
Primarily built for forked off rpc service daemons, but not tied to rpc
services and generic enough to be used elsewhere easily.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Wed, 3 Aug 2011 20:55:30 +0000 (16:55 -0400)]
s3-printing: No need to register to smbd's children list
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 26 Apr 2011 03:40:15 +0000 (23:40 -0400)]
tevent: cleanup nesting counter when doing a full reinit.
We may be forking from within a loop, so we need to clean-up to avoid
aborts when nesting is not allowed and we are in a new children.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 21 Apr 2011 14:04:06 +0000 (10:04 -0400)]
lib-util: Make create_unlink_tmp argument optional
Use tmpdir() if no dir is provided.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 21 Apr 2011 13:45:27 +0000 (09:45 -0400)]
lib-util: Make useful function a common utility.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Wed, 11 May 2011 21:50:07 +0000 (17:50 -0400)]
libutil: use AI_ADDRCONFIG only when AI_NUMERIC is not defined
This flag prevents startup w/o ip addresses assigned to any interface.
If AI_NUMERIC is passed it should be safe to avoid it.
Signed-off-by: Andreas Schneider <asn@samba.org>
Volker Lendecke [Wed, 10 Aug 2011 13:52:28 +0000 (15:52 +0200)]
s3: Remove an unnecessary include
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Aug 10 18:10:39 CEST 2011 on sn-devel-104
Jelmer Vernooij [Wed, 10 Aug 2011 13:20:59 +0000 (15:20 +0200)]
pytalloc: Regenerate ABI file.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Aug 10 16:51:11 CEST 2011 on sn-devel-104
Jelmer Vernooij [Wed, 10 Aug 2011 13:15:18 +0000 (15:15 +0200)]
pytalloc: Use consistent prefix for functions, add ABI file.
Michael Adam [Wed, 10 Aug 2011 11:41:14 +0000 (13:41 +0200)]
s3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" with NULL
this fixes the fallback to the deprecated spelling idmap:script
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Aug 10 14:59:32 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 9 Aug 2011 20:24:14 +0000 (22:24 +0200)]
s3:libsmb: make cli_session_setup_spnego() static
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Aug 10 12:31:55 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 9 Aug 2011 20:21:41 +0000 (22:21 +0200)]
s3:winbindd_cm: use cli_session_setup() instead of cli_session_setup_spnego()
metze
Stefan Metzmacher [Tue, 9 Aug 2011 20:17:56 +0000 (22:17 +0200)]
s3:libsmb: pass remote_realm to cli_session_setup_spnego() in cli_session_setup()
metze
Stefan Metzmacher [Tue, 9 Aug 2011 20:15:23 +0000 (22:15 +0200)]
s3:libsmb: store the remote_realm on the cli_state
metze
Stefan Metzmacher [Thu, 28 Jul 2011 09:27:10 +0000 (11:27 +0200)]
s3:smb_macros.h: simplify _smb_setlen() and _smb_setlen_large()
This also takes care of the correct casting.
metze
Stefan Metzmacher [Tue, 12 Jul 2011 07:40:56 +0000 (09:40 +0200)]
s3:include: smb.h base old smb header offsets on new defines
metze
Stefan Metzmacher [Tue, 12 Jul 2011 07:37:53 +0000 (09:37 +0200)]
s3:include: smb.h merge some stuff from source4
metze
Stefan Metzmacher [Thu, 28 Jul 2011 09:39:32 +0000 (11:39 +0200)]
Revert "s3:test_async_echo: unsure the desired smb message sequence"
This reverts commit
34faeb8bba86fff57466c06682b7dcbffc48a52a.
This is not needed anymore.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Aug 10 09:54:24 CEST 2011 on sn-devel-104
Stefan Metzmacher [Thu, 28 Jul 2011 08:37:51 +0000 (10:37 +0200)]
tsocket: make use of tevent_queue_add_optimize_empty() to optimize for the empty queue case
metze
Matthias Dieter Wallnöfer [Fri, 29 Apr 2011 09:38:56 +0000 (11:38 +0200)]
s4:subtree_rename LDB module - fix the move/rename constraints
s4:subtree_rename LDB module - fix the move/rename constraints
By the inspiration of an email request by ekacnet I have rechecked the
move/rename constraints and re-read the chapter 3.1.1.5.4.1 located in the
MS-ADTS technical documentation.
It really turns out that the constraint checking is only performed on
the root object of a request.
In addition add my copyright notice (I've written these constraint checks).
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Aug 10 01:05:19 CEST 2011 on sn-devel-104
Matthieu Patou [Tue, 9 Aug 2011 21:36:01 +0000 (01:36 +0400)]
s4-drs: In dcesrv_drsuapi_DsRemoveDSServer use the subtree control to delete the NTDS entry
This entry has most of the time subelements (connections between DCs)
that will forbid a simple (non recursive) delete
Matthieu Patou [Mon, 8 Aug 2011 10:41:54 +0000 (14:41 +0400)]
s4-dsdb: avoid printing a pointless debug line
Matthieu Patou [Sat, 30 Jul 2011 20:54:01 +0000 (00:54 +0400)]
s4-drsuapi: crackname search also for deleted objects
Matthieu Patou [Sat, 30 Jul 2011 20:48:06 +0000 (00:48 +0400)]
s4: create a small script to test drsuapi/crackname
Stefan Metzmacher [Tue, 9 Aug 2011 14:12:40 +0000 (16:12 +0200)]
tevent: change the version to 0.9.14 after the tevent_queue changes
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 9 23:02:17 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 9 Aug 2011 14:05:36 +0000 (16:05 +0200)]
tevent: fix some comments in tevent.h
metze
Stefan Metzmacher [Thu, 28 Jul 2011 08:45:22 +0000 (10:45 +0200)]
tevent: add tevent_queue_add_entry() and tevent_queue_add_optimize_empty()
This adds more flexible handling for the add operation:
- It allows the caller to remove a tevent_req from the queue
by calling talloc_free() on the returned tevent_queue_entry.
- It allows the caller to optimize for the empty queue case,
where it the caller wants to avoid the delay caused by
the immediate event.
metze
Stefan Metzmacher [Tue, 9 Aug 2011 13:33:37 +0000 (15:33 +0200)]
tevent: splitout tevent_queue_add_internal() from tevent_queue_add()
metze
Stefan Metzmacher [Thu, 28 Jul 2011 07:45:15 +0000 (09:45 +0200)]
tevent: allow tevent_queue_add() to take a NULL trigger function
This way the caller can add a blocker to the queue.
metze
Stefan Metzmacher [Thu, 28 Jul 2011 07:46:34 +0000 (09:46 +0200)]
tevent: add tevent_queue_running() function
metze
Björn Jacke [Tue, 9 Aug 2011 15:02:29 +0000 (17:02 +0200)]
s3:vfs_prealloc: fix build on SLES8
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Aug 9 19:29:08 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 2 Aug 2011 21:05:31 +0000 (23:05 +0200)]
s3:libsmb/cli*: use CLI_BUFFER_SIZE instead of cli->max_xmit
The max_data parameter of trans2/nttrans calls are not bound
to cli->max_xmit. Even with cli->max_xmit, which means the max
size of the whole SMB pdu, we would get fragmented trans2/nttrans
replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 9 18:14:38 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 2 Aug 2011 20:59:54 +0000 (22:59 +0200)]
s3:torture/*: use CLI_BUFFER_SIZE instead of cli->max_xmit
The max_data parameter of trans2/nttrans calls are not bound
to cli->max_xmit. Even with cli->max_xmit, which means the max
size of the whole SMB pdu, we would get fragmented trans2/nttrans
replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE.
metze
Stefan Metzmacher [Tue, 9 Aug 2011 11:51:08 +0000 (13:51 +0200)]
script/librelease.sh: add git push for the release tag
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 9 15:19:07 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 9 Aug 2011 10:40:55 +0000 (12:40 +0200)]
ndr_drsuapi: fix compiler warning
metze
Andrew Bartlett [Tue, 9 Aug 2011 03:10:21 +0000 (13:10 +1000)]
s4-dsdb clarify that failure to load the schema items from DRS is expected
This happens if we have a custom schema - we need to build up the schema until
it loads, by converting more objects.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Aug 9 13:10:25 CEST 2011 on sn-devel-104
Andrew Bartlett [Tue, 9 Aug 2011 02:55:57 +0000 (12:55 +1000)]
move schema_fill_constructed() call to dsdb_setup_sorted_accessors()
Andrew Bartlett [Tue, 9 Aug 2011 01:54:17 +0000 (11:54 +1000)]
s4-dsdb Remove unused schema function
Andrew Tridgell [Tue, 9 Aug 2011 06:54:36 +0000 (16:54 +1000)]
s4-dsdb: added SAMDB_INDEXING_VERSION to @INDEXLIST
this can be used to force re-indexing of samdb when we change
something that affects index comparison, in this case the
canonicalisation of booleans
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 9 Aug 2011 06:50:51 +0000 (16:50 +1000)]
s4-dsdb: fixed booling conversion to check value length
this ensures we don't look past the end of the data
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 9 Aug 2011 06:41:16 +0000 (16:41 +1000)]
ldb: fix the canonicalisation of booleans
we were canonicalising "FALSE" to "FALS"
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 5 Aug 2011 01:19:30 +0000 (11:19 +1000)]
s4-dbcheck: enable dbcheck now that backlinks are fixed
Andrew Tridgell [Tue, 9 Aug 2011 04:41:20 +0000 (14:41 +1000)]
s4-dsdb: add auto-normalisation of attributes
this auto-normalises some attributes when they are added/modified. The
list that we auto-normalise is currently:
Boolean
INT32
INTEGER
UTC_TIME
This fixes a problem with groupType being stored in an unnormalised
form
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 9 Aug 2011 03:18:08 +0000 (13:18 +1000)]
s4-dsdb: ensure rIDSetReferences is stored as an extended DN
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 9 Aug 2011 01:47:25 +0000 (11:47 +1000)]
s4-dsdb: ensure we setup the dn_format field in schema attributes
this ensures we setup dn_format when we do runtime schema changes
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 5 Aug 2011 04:03:58 +0000 (14:03 +1000)]
s4-acl-test: use symbolic names for groupType
clearer than magic numbers
Andrew Tridgell [Fri, 5 Aug 2011 04:02:39 +0000 (14:02 +1000)]
s4-pysamba: fixed double conversion of int32
if the number is already negative, we shouldn't convert it
Andrew Tridgell [Fri, 5 Aug 2011 03:10:22 +0000 (13:10 +1000)]
s4-dsdb: make extended_dn_in a bit more efficient
checking filter elements in the right order makes it a little faster
Andrew Tridgell [Fri, 5 Aug 2011 03:09:35 +0000 (13:09 +1000)]
s4-samdb: support relative paths in SamDB() connect
don't add the private path unless the database doesn't exist with the
supplied path
Andrew Tridgell [Fri, 5 Aug 2011 01:28:12 +0000 (11:28 +1000)]
s4-dsdb: use dn_format shortcut to find DN format
this saves some string comparisons
Andrew Tridgell [Fri, 5 Aug 2011 01:17:06 +0000 (11:17 +1000)]
pysamdb: move normalise_int32() to common module
this will be needed in quite a few places
Andreas Schneider [Wed, 3 Aug 2011 21:44:21 +0000 (23:44 +0200)]
s3-rpc_server: Fix sending of packets over named pipe proxy.
We need for named pipes we need to send each fragment on its own to be a
message.
Signed-off-by: Simo Sorce <idra@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Aug 9 11:55:18 CEST 2011 on sn-devel-104
Andreas Schneider [Mon, 8 Aug 2011 16:39:56 +0000 (18:39 +0200)]
s3-smbd: Pass tevent context to smbd_server_connection_loop_once().
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Tue, 26 Jul 2011 10:07:20 +0000 (12:07 +0200)]
s3-rpc_server: Free the children of p->mem_ctx.
Free the children of p->mem_ctx after processing a complete incoming and
outgoing request.
Signed-off-by: Simo Sorce <idra@samba.org>
Stefan Metzmacher [Mon, 8 Aug 2011 16:49:06 +0000 (18:49 +0200)]
s3:lib/events: Fix a bug in run_poll_events().
Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in
run_events_poll(). They are ignore when building the array
for the syscall in event_add_to_poll_args(), so we need to
ignore them run_events_poll() too.
metze
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 9 10:11:54 CEST 2011 on sn-devel-104
Andrew Tridgell [Mon, 8 Aug 2011 22:40:17 +0000 (08:40 +1000)]
talloc: prepare for 2.0.6 release
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Aug 9 04:03:49 CEST 2011 on sn-devel-104
Andrew Tridgell [Mon, 8 Aug 2011 08:24:32 +0000 (18:24 +1000)]
talloc: ensure the sibling linked list remains valid during a free
This ensures that the sibling list of a pointer doesn't become invalid
during a free operation. It is an alternative fix to the fix in
6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of
trying to calculate the parent pointer early
This should fix the subtle spoolss talloc bug that Simo found
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Aug 9 01:53:17 CEST 2011 on sn-devel-104
Michael Adam [Mon, 8 Aug 2011 14:31:31 +0000 (16:31 +0200)]
s3:selftest: run the net rpc registry test under "s3dc" instead "s3dc:local".
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Aug 8 19:18:41 CEST 2011 on sn-devel-104
Vicentiu Ciorbaru [Thu, 28 Jul 2011 12:39:34 +0000 (15:39 +0300)]
s3-net: Fixed a small typo in net conf function table
The description of the function net conf delincludes had a wrong
usage message: "net conf setincludes" instead of "net conf delincludes".
Signed-off-by: Michael Adam <obnox@samba.org>
Stefan Metzmacher [Mon, 8 Aug 2011 12:34:11 +0000 (14:34 +0200)]
s4:pyglue: PyArg_ParseTuple("I") requires an 'unsigned int' argument
If we pass variable references we don't get implicit casting!
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Aug 8 18:01:19 CEST 2011 on sn-devel-104
Stefan Metzmacher [Mon, 8 Aug 2011 12:31:40 +0000 (14:31 +0200)]
s4:py_net: PyArg_ParseTuple("i") requires an 'int' argument
If we pass variable references we don't get implicit casting!
metze
Stefan Metzmacher [Mon, 8 Aug 2011 12:30:00 +0000 (14:30 +0200)]
s4:pyregistry: PyArg_ParseTuple("z#") requires an 'int' argument instead of 'size_t'
If we pass variables by reference we don't get implicit type casting.
metze
Stefan Metzmacher [Mon, 8 Aug 2011 12:21:42 +0000 (14:21 +0200)]
s4:pycredentials: PyArg_ParseTuple("i") requires an 'int' argument.
If we pass variable references we don't get implicit casting!
metze
Stefan Metzmacher [Mon, 8 Aug 2011 12:00:31 +0000 (14:00 +0200)]
pidl:Samba4/Python: PyArg_ParseTuple with "s#" returns 'int' instead of 'size_t'
If we pass variable references we don't get implicit casting!
metze
Stefan Metzmacher [Mon, 8 Aug 2011 11:21:18 +0000 (13:21 +0200)]
pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argument
"s#", &str, &len) required 'len' as 'int' not as 'Py_ssize_t'.
With Py_ssize_t the 2nd half of a 64bit Py_ssize_t, will be
uninitialized as 'int' is only 32bit.
metze
Vicentiu Ciorbaru [Wed, 3 Aug 2011 20:24:09 +0000 (23:24 +0300)]
s3-net: Fixed typo in net conf
There was a missing ']' in net conf addshare usage message.
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Aug 8 16:44:08 CEST 2011 on sn-devel-104
Gregor Beck [Tue, 2 Aug 2011 12:52:12 +0000 (14:52 +0200)]
s3:smbconf let drop leave the smbconf key in place to match a virgin registry.tdb
Signed-off-by: Michael Adam <obnox@samba.org>
Gregor Beck [Mon, 1 Aug 2011 13:27:46 +0000 (15:27 +0200)]
s3:registry avoid updating keys which are going to be deleted in
reg_deletekey_recursive
this changes the complexity from O(n^2) to O(n) and reduces the time of
a 'net conf drop' with 10000 shares from 6min to 1.5s
Signed-off-by: Michael Adam <obnox@samba.org>
Andrew Bartlett [Fri, 29 Jul 2011 07:04:11 +0000 (17:04 +1000)]
build: Make credentials a public library for OpenChange to use
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Aug 8 14:53:53 CEST 2011 on sn-devel-104
Andrew Bartlett [Fri, 29 Jul 2011 07:03:45 +0000 (17:03 +1000)]
build: rename rpcommon to dcerpc-binding an make a public library
OpenChange needs this library.
Andrew Bartlett
Andrew Bartlett [Fri, 29 Jul 2011 07:01:38 +0000 (17:01 +1000)]
build: provide tevent-util as a public library
This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced
by generated PIDL output.
Andrew Bartlett
Andrew Bartlett [Mon, 8 Aug 2011 01:16:20 +0000 (11:16 +1000)]
s3-waf: Fix build on FreeBSD when sunacl.h is found
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Aug 8 04:34:35 CEST 2011 on sn-devel-104
Stefan Metzmacher [Sat, 6 Aug 2011 08:19:21 +0000 (10:19 +0200)]
s3:smb2_server: make sure we grant credits on async read/write operations (bug #8357)
Currently we skip, the "gone async" interim response on read and write,
this caused the aio code path to grant 0 credits to the client
in the read/write responses.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Aug 7 22:23:57 CEST 2011 on sn-devel-104
Jelmer Vernooij [Sun, 7 Aug 2011 16:55:14 +0000 (18:55 +0200)]
sd_utils: Fix some formatting, add module docstring.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Aug 7 21:07:04 CEST 2011 on sn-devel-104
Jelmer Vernooij [Sun, 7 Aug 2011 15:17:18 +0000 (17:17 +0200)]
pyldb: Generate ABI file.
Jelmer Vernooij [Sun, 7 Aug 2011 15:08:56 +0000 (17:08 +0200)]
pyldb: Consistently use pyldb_ prefix.