idra/samba.git
10 years agos3-prefork: add support for multiple listning file descriptors
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>
10 years agos3-spoolssd: propagate SIGHUP to children
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>
10 years agos3-prefork: provide way to send a signal to all children
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>
10 years agos3-spoolssd: expand children pool when necessary
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>
10 years agos3-prefork: provide means to expand the pool size
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>
10 years agos3-spoolssd: Use parametric option for prefork parameters
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>
10 years agos3-spoolss: make listening asynchronous
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>
10 years agos3-spoolssd: Use the prefork framework in spoolssd
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>
10 years agos3-rpc_server: add termination function
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>
10 years agos3-rpc: Expose some internal functions
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>
10 years agos3-prefork: add way to manage number of clients per child
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>
10 years agos3-prefork: add asynchronous functions
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>
10 years agos3-prefork: implement prefork framework
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>
10 years agos3-printing: No need to register to smbd's children list
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>
10 years agotevent: cleanup nesting counter when doing a full reinit.
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>
10 years agolib-util: Make create_unlink_tmp argument optional
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>
10 years agolib-util: Make useful function a common utility.
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>
10 years agolibutil: use AI_ADDRCONFIG only when AI_NUMERIC is not defined
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>
10 years agos3: Remove an unnecessary include
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

10 years agopytalloc: Regenerate ABI file.
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

10 years agopytalloc: Use consistent prefix for functions, add ABI file.
Jelmer Vernooij [Wed, 10 Aug 2011 13:15:18 +0000 (15:15 +0200)]
pytalloc: Use consistent prefix for functions, add ABI file.

10 years agos3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" with...
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

10 years agos3:libsmb: make cli_session_setup_spnego() static
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

10 years agos3:winbindd_cm: use cli_session_setup() instead of cli_session_setup_spnego()
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

10 years agos3:libsmb: pass remote_realm to cli_session_setup_spnego() in cli_session_setup()
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

10 years agos3:libsmb: store the remote_realm on the cli_state
Stefan Metzmacher [Tue, 9 Aug 2011 20:15:23 +0000 (22:15 +0200)]
s3:libsmb: store the remote_realm on the cli_state

metze

10 years agos3:smb_macros.h: simplify _smb_setlen() and _smb_setlen_large()
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

10 years agos3:include: smb.h base old smb header offsets on new defines
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

10 years agos3:include: smb.h merge some stuff from source4
Stefan Metzmacher [Tue, 12 Jul 2011 07:37:53 +0000 (09:37 +0200)]
s3:include: smb.h merge some stuff from source4

metze

10 years agoRevert "s3:test_async_echo: unsure the desired smb message sequence"
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

10 years agotsocket: make use of tevent_queue_add_optimize_empty() to optimize for the empty...
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

10 years agos4:subtree_rename LDB module - fix the move/rename constraints
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

10 years agos4-drs: In dcesrv_drsuapi_DsRemoveDSServer use the subtree control to delete the...
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

10 years agos4-dsdb: avoid printing a pointless debug line
Matthieu Patou [Mon, 8 Aug 2011 10:41:54 +0000 (14:41 +0400)]
s4-dsdb: avoid printing a pointless debug line

10 years agos4-drsuapi: crackname search also for deleted objects
Matthieu Patou [Sat, 30 Jul 2011 20:54:01 +0000 (00:54 +0400)]
s4-drsuapi: crackname search also for deleted objects

10 years agos4: create a small script to test drsuapi/crackname
Matthieu Patou [Sat, 30 Jul 2011 20:48:06 +0000 (00:48 +0400)]
s4: create a small script to test drsuapi/crackname

10 years agotevent: change the version to 0.9.14 after the tevent_queue changes
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

10 years agotevent: fix some comments in tevent.h
Stefan Metzmacher [Tue, 9 Aug 2011 14:05:36 +0000 (16:05 +0200)]
tevent: fix some comments in tevent.h

metze

10 years agotevent: add tevent_queue_add_entry() and tevent_queue_add_optimize_empty()
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

10 years agotevent: splitout tevent_queue_add_internal() from tevent_queue_add()
Stefan Metzmacher [Tue, 9 Aug 2011 13:33:37 +0000 (15:33 +0200)]
tevent: splitout tevent_queue_add_internal() from tevent_queue_add()

metze

10 years agotevent: allow tevent_queue_add() to take a NULL trigger function
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

10 years agotevent: add tevent_queue_running() function
Stefan Metzmacher [Thu, 28 Jul 2011 07:46:34 +0000 (09:46 +0200)]
tevent: add tevent_queue_running() function

metze

10 years agos3:vfs_prealloc: fix build on SLES8
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

10 years agos3:libsmb/cli*: use CLI_BUFFER_SIZE instead of cli->max_xmit
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

10 years agos3:torture/*: use CLI_BUFFER_SIZE instead of cli->max_xmit
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

10 years agoscript/librelease.sh: add git push for the release tag
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

10 years agondr_drsuapi: fix compiler warning
Stefan Metzmacher [Tue, 9 Aug 2011 10:40:55 +0000 (12:40 +0200)]
ndr_drsuapi: fix compiler warning

metze

10 years agos4-dsdb clarify that failure to load the schema items from DRS is expected
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

10 years agomove schema_fill_constructed() call to dsdb_setup_sorted_accessors()
Andrew Bartlett [Tue, 9 Aug 2011 02:55:57 +0000 (12:55 +1000)]
move schema_fill_constructed() call to dsdb_setup_sorted_accessors()

10 years agos4-dsdb Remove unused schema function
Andrew Bartlett [Tue, 9 Aug 2011 01:54:17 +0000 (11:54 +1000)]
s4-dsdb Remove unused schema function

10 years agos4-dsdb: added SAMDB_INDEXING_VERSION to @INDEXLIST
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>

10 years agos4-dsdb: fixed booling conversion to check value length
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>

10 years agoldb: fix the canonicalisation of booleans
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>

10 years agos4-dbcheck: enable dbcheck now that backlinks are fixed
Andrew Tridgell [Fri, 5 Aug 2011 01:19:30 +0000 (11:19 +1000)]
s4-dbcheck: enable dbcheck now that backlinks are fixed

10 years agos4-dsdb: add auto-normalisation of attributes
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>

10 years agos4-dsdb: ensure rIDSetReferences is stored as an extended DN
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>
10 years agos4-dsdb: ensure we setup the dn_format field in schema attributes
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>

10 years agos4-acl-test: use symbolic names for groupType
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

10 years agos4-pysamba: fixed double conversion of int32
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

10 years agos4-dsdb: make extended_dn_in a bit more efficient
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

10 years agos4-samdb: support relative paths in SamDB() connect
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

10 years agos4-dsdb: use dn_format shortcut to find DN format
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

10 years agopysamdb: move normalise_int32() to common module
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

10 years agos3-rpc_server: Fix sending of packets over named pipe proxy.
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

10 years agos3-smbd: Pass tevent context to smbd_server_connection_loop_once().
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>
10 years agos3-rpc_server: Free the children of p->mem_ctx.
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>
10 years agos3:lib/events: Fix a bug in run_poll_events().
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

10 years agotalloc: prepare for 2.0.6 release
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

10 years agotalloc: ensure the sibling linked list remains valid during a free
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

10 years agos3:selftest: run the net rpc registry test under "s3dc" instead "s3dc:local".
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

10 years agos3-net: Fixed a small typo in net conf function table
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>
10 years agos4:pyglue: PyArg_ParseTuple("I") requires an 'unsigned int' argument
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

10 years agos4:py_net: PyArg_ParseTuple("i") requires an 'int' argument
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

10 years agos4:pyregistry: PyArg_ParseTuple("z#") requires an 'int' argument instead of 'size_t'
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

10 years agos4:pycredentials: PyArg_ParseTuple("i") requires an 'int' argument.
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

10 years agopidl:Samba4/Python: PyArg_ParseTuple with "s#" returns 'int' instead of 'size_t'
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

10 years agopyldb: fix uninitialized memory bug in PyArg_ParseTuple() argument
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

10 years agos3-net: Fixed typo in net conf
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

10 years agos3:smbconf let drop leave the smbconf key in place to match a virgin registry.tdb
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>
10 years agos3:registry avoid updating keys which are going to be deleted in
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>
10 years agobuild: Make credentials a public library for OpenChange to use
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

10 years agobuild: rename rpcommon to dcerpc-binding an make a public library
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

10 years agobuild: provide tevent-util as a public library
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

10 years agos3-waf: Fix build on FreeBSD when sunacl.h is found
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

10 years agos3:smb2_server: make sure we grant credits on async read/write operations (bug #8357)
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

10 years agosd_utils: Fix some formatting, add module docstring.
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

10 years agopyldb: Generate ABI file.
Jelmer Vernooij [Sun, 7 Aug 2011 15:17:18 +0000 (17:17 +0200)]
pyldb: Generate ABI file.

10 years agopyldb: Consistently use pyldb_ prefix.
Jelmer Vernooij [Sun, 7 Aug 2011 15:08:56 +0000 (17:08 +0200)]
pyldb: Consistently use pyldb_ prefix.

10 years agos3:web/swat: use strtoll() instead of atoi/atol/atoll
Stefan Metzmacher [Fri, 5 Aug 2011 17:48:38 +0000 (19:48 +0200)]
s3:web/swat: use strtoll() instead of atoi/atol/atoll

This is more portable, as we have a strtoll replacement
in lib/replace.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Aug  6 11:55:45 CEST 2011 on sn-devel-104

10 years agos4:netcmd/gpo.py: we don't need to set autogenerated attributes
Stefan Metzmacher [Wed, 3 Aug 2011 07:15:11 +0000 (09:15 +0200)]
s4:netcmd/gpo.py: we don't need to set autogenerated attributes

metze

10 years agoidl: We don't need a context for FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2 and avoid colis...
Matthieu Patou [Fri, 5 Aug 2011 20:55:52 +0000 (00:55 +0400)]
idl: We don't need a context for FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2 and avoid colision on bop attribute

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Aug  6 00:50:47 CEST 2011 on sn-devel-104

10 years agopidl: for wireshark use only the major of the version
Matthieu Patou [Fri, 5 Aug 2011 19:14:03 +0000 (23:14 +0400)]
pidl: for wireshark use only the major of the version

10 years agopidl: For wireshark check also LIBNDR_FLAG_NOALIGN for not aligning
Matthieu Patou [Fri, 5 Aug 2011 19:13:08 +0000 (23:13 +0400)]
pidl: For wireshark check also LIBNDR_FLAG_NOALIGN for not aligning

10 years agopidl: handle union when the switch variable is outside of the union for wireshark...
Matthieu Patou [Fri, 5 Aug 2011 19:11:47 +0000 (23:11 +0400)]
pidl: handle union when the switch variable is outside of the union for wireshark dissector

10 years agopidl: add subcontext handling for wireshark
Matthieu Patou [Fri, 5 Aug 2011 19:07:57 +0000 (23:07 +0400)]
pidl: add subcontext handling for wireshark

10 years agopidl: If STR_NULLTERM we concider it's a string as well
Matthieu Patou [Fri, 5 Aug 2011 19:03:29 +0000 (23:03 +0400)]
pidl: If STR_NULLTERM we concider it's a string as well

10 years agopidl: handle hyper attribute for wireshark
Matthieu Patou [Tue, 2 Aug 2011 18:42:58 +0000 (22:42 +0400)]
pidl: handle hyper attribute for wireshark

10 years agopidl: handle datablob for wireshark generator
Matthieu Patou [Tue, 2 Aug 2011 18:42:44 +0000 (22:42 +0400)]
pidl: handle datablob for wireshark generator

10 years agopidl: rpc version is a 32 bit
Matthieu Patou [Tue, 2 Aug 2011 07:56:51 +0000 (11:56 +0400)]
pidl: rpc version is a 32 bit

10 years agopidl: generate code for dissecting null terminated strings
Matthieu Patou [Tue, 2 Aug 2011 07:56:32 +0000 (11:56 +0400)]
pidl: generate code for dissecting null terminated strings