kai/samba.git
12 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.

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agotevent: change the version to 0.9.14 after the tevent_queue changes save-diskspace-tags/tevent-0.9.14
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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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()

12 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

12 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>

12 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>

12 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>

12 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

12 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>

12 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>
12 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>

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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>
12 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>
12 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

12 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

12 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

12 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

12 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>
12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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>
12 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>
12 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

12 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

12 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

12 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

12 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

12 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

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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agopidl: don't expect to have quote when creating import headers
Matthieu Patou [Tue, 2 Aug 2011 07:50:32 +0000 (11:50 +0400)]
pidl: don't expect to have quote when creating import headers

Currently the $_ didn't contains the quote anymore, in order to avoid
any further regression the cleanup of quote is done before so that if
$_ still have quotes we clean them in anycase.

12 years agos4-scripting: allow to specify the number max of iteration around getNcChanges
Matthieu Patou [Thu, 4 Aug 2011 15:59:49 +0000 (19:59 +0400)]
s4-scripting: allow to specify the number max of iteration around getNcChanges

12 years agos3:rpc_transport_tstream: only use tstream_cli_np_use_trans() for sync requests
Stefan Metzmacher [Thu, 28 Jul 2011 12:15:15 +0000 (14:15 +0200)]
s3:rpc_transport_tstream: only use tstream_cli_np_use_trans() for sync requests

Currently the caller doesn't cope with multiple async requests anyway,
so this is just protection for the future.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Aug  5 22:31:12 CEST 2011 on sn-devel-104

12 years agos3: Make srv_enc_ctx static
Volker Lendecke [Fri, 5 Aug 2011 14:19:27 +0000 (16:19 +0200)]
s3: Make srv_enc_ctx static

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Aug  5 18:29:24 CEST 2011 on sn-devel-104

12 years agos3: Fix a debug message
Volker Lendecke [Fri, 5 Aug 2011 14:14:11 +0000 (16:14 +0200)]
s3: Fix a debug message

12 years agos3: Fix some nonempty blank lines
Volker Lendecke [Fri, 5 Aug 2011 14:01:23 +0000 (16:01 +0200)]
s3: Fix some nonempty blank lines

12 years agos3: Fix "ISO C90 forbids mixed declarations and code"
Volker Lendecke [Fri, 5 Aug 2011 13:40:22 +0000 (15:40 +0200)]
s3: Fix "ISO C90 forbids mixed declarations and code"

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Aug  5 16:58:37 CEST 2011 on sn-devel-104

12 years agos3: Fix some nonempty blank lines
Volker Lendecke [Fri, 5 Aug 2011 13:38:33 +0000 (15:38 +0200)]
s3: Fix some nonempty blank lines

12 years agos3-docs: document --user-sidinfo wbinfo option.
Günther Deschner [Fri, 5 Aug 2011 10:25:52 +0000 (12:25 +0200)]
s3-docs: document --user-sidinfo wbinfo option.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Aug  5 14:06:09 CEST 2011 on sn-devel-104

12 years agos3: make linking of pthreadpooltest work on more platforms
Björn Jacke [Thu, 4 Aug 2011 21:47:47 +0000 (23:47 +0200)]
s3: make linking of pthreadpooltest work on more platforms

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Aug  5 12:48:55 CEST 2011 on sn-devel-104

12 years agos3/ldap: delay the ldap search alarm termination a bit
Björn Jacke [Thu, 4 Aug 2011 14:42:37 +0000 (16:42 +0200)]
s3/ldap: delay the ldap search alarm termination a bit

do the alarm termination of the the ldap search a bit delayed so the LDAP
server has a chance to tell us that the time limit was reached and the
search was abandoned. If the search is terminated this way we also get
the correct LDAP return code in the logs. If alarm() stops the search the ldap
search routine will report that the LDAP server is down which would trigger us
to rebind to the server needlessly which we also want to avoid.

12 years agos3-nmbd: fix talloc/malloc mismatch in create_listen_pollfds().
Günther Deschner [Thu, 4 Aug 2011 15:32:22 +0000 (17:32 +0200)]
s3-nmbd: fix talloc/malloc mismatch in create_listen_pollfds().

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Aug  4 19:06:39 CEST 2011 on sn-devel-104

12 years agos3/swat: use strlcat instead of strncat to fix build on old Linux distros
Björn Jacke [Thu, 4 Aug 2011 14:25:08 +0000 (16:25 +0200)]
s3/swat: use strlcat instead of strncat to fix build on old Linux distros

SLES 9's glibc for example had weird macros where the use of strncat resulted
in the use of strcat which we don't allow.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Thu Aug  4 17:50:24 CEST 2011 on sn-devel-104

12 years agos4-librpc: Fix double free.
Andreas Schneider [Wed, 3 Aug 2011 21:44:45 +0000 (23:44 +0200)]
s4-librpc: Fix double free.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Aug  4 12:31:18 CEST 2011 on sn-devel-104

12 years agos4-ldb: two DNs only match if they have the same deletion status
Andrew Tridgell [Thu, 4 Aug 2011 04:59:47 +0000 (14:59 +1000)]
s4-ldb: two DNs only match if they have the same deletion status

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Aug  4 09:34:08 CEST 2011 on sn-devel-104

12 years agotalloc: check block count aftter references test
Andrew Tridgell [Thu, 4 Aug 2011 02:07:19 +0000 (12:07 +1000)]
talloc: check block count aftter references test

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agos4-samdb: save the url in the samdb class
Andrew Tridgell [Wed, 3 Aug 2011 01:31:45 +0000 (11:31 +1000)]
s4-samdb: save the url in the samdb class

this is useful for debugging, so we know which database we are dealing
with

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agos4-dsdb: extend the extended_dn_in module to handle DN links
Andrew Tridgell [Tue, 2 Aug 2011 07:19:16 +0000 (17:19 +1000)]
s4-dsdb: extend the extended_dn_in module to handle DN links

this replaces DN components in incoming filter expressions with the
full extended DN of the target, which allows search expressions based
on <GUID=> and <SID=> DNs, as well as fixing the problem with one-way
links in search expressions

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agoldb: rule_id in ldb_parse_tree should be const
Andrew Tridgell [Tue, 2 Aug 2011 07:17:13 +0000 (17:17 +1000)]
ldb: rule_id in ldb_parse_tree should be const

this allows assignment to a constant string without allocation

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agoldb: added a new always-fail ldap extended match OID
Andrew Tridgell [Tue, 2 Aug 2011 07:16:44 +0000 (17:16 +1000)]
ldb: added a new always-fail ldap extended match OID

this is used when rewriting filter rules to replace a filter rule with
one that is guaranteed not to match

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>