samba.git
12 years agoselftest/flapping: mark ^samba3.rpc.spoolss.*printserver.openprinter_badnamelist...
Stefan Metzmacher [Wed, 14 Mar 2012 16:00:14 +0000 (17:00 +0100)]
selftest/flapping: mark ^samba3.rpc.spoolss.*printserver.openprinter_badnamelist as flakey

I saw this a few times today:

[370/528 in 19m28s] samba3.rpc.spoolss.printserver (s3dc)
Using seed 1331739572
Testing OpenPrinter(\\127.0.0.2)
Testing GetPrinterData(Architecture)
Testing OpenPrinter(__INVALID_PRINTER__) with bad name
Testing OpenPrinterEx(__INVALID_PRINTER__) with bad name
Testing OpenPrinter(\\__INVALID_HOST__) with bad name
Testing OpenPrinterEx(\\__INVALID_HOST__) with bad name
Testing OpenPrinter() with bad name
Testing OpenPrinterEx() with bad name
Testing OpenPrinter(\\\) with bad name
Testing OpenPrinterEx(\\\) with bad name
Testing OpenPrinter(\\\__INVALID_PRINTER__) with bad name
Testing OpenPrinterEx(\\\__INVALID_PRINTER__) with bad name
Testing OpenPrinter(\\127.0.0.2\) with bad name
WARNING!: ../source4/torture/rpc/spoolss.c:5765: op.out.result was WERR_OK,
expected WERR_INVALID_PRINTER_NAME: unexpected result
UNEXPECTED(failure): samba3.rpc.spoolss.printserver
.printserver.openprinter_badnamelist
REASON: _StringException: _StringException:
../source4/torture/rpc/spoolss.c:5821: Expression
`test_OpenPrinter_badname(tctx, b, badname)' failed:

metze

12 years agoselftest/flapping: mark samba4.blackbox.gentest as flakey
Stefan Metzmacher [Wed, 14 Mar 2012 12:10:43 +0000 (13:10 +0100)]
selftest/flapping: mark samba4.blackbox.gentest as flakey

https://git.samba.org/autobuild.flakey/2012-03-14-1307/samba4.stdout

    [1228/1371 in 1h19s] samba4.blackbox.gentest(dc)
    UNEXPECTED(failure): samba4.blackbox.gentest(dc).gentest
    REASON: _StringException: _StringException: seed=1
    Connecting to \localdcest1 as Administrator - instance 0
    Connecting to \localdcest1est1 as Administrator - instance 1
    Connecting to \localdcest1est2 as Administrator - instance 0
    Connecting to \localdcest1est2 as Administrator - instance 1
    0
    OPEN num_open_handles=1 h=0 (gentest\foo4)
    Notify count inconsistent 1 0
    Failed at operation 88 - MKDIR
    gentest failed

I saw this more than 10 times in the last year already.

metze

12 years agos3:selftest: add support for 'make test FAIL_IMMEDIATELY=1'
Stefan Metzmacher [Wed, 14 Mar 2012 11:18:50 +0000 (12:18 +0100)]
s3:selftest: add support for 'make test FAIL_IMMEDIATELY=1'

This is what autobuild uses in order to let the build abort on the first
failure.

metze

12 years agos4:selftest: fix a message-typo in the "samba-tool user" testsuite.
Michael Adam [Wed, 14 Mar 2012 00:00:06 +0000 (01:00 +0100)]
s4:selftest: fix a message-typo in the "samba-tool user" testsuite.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Mar 14 21:19:11 CET 2012 on sn-devel-104

12 years agos4:selftest: add a new test for "samba-tool user list"
Michael Adam [Fri, 9 Mar 2012 13:32:55 +0000 (14:32 +0100)]
s4:selftest: add a new test for "samba-tool user list"

12 years agotesttools/matchers.py: fix a comment typo
Michael Adam [Fri, 9 Mar 2012 11:00:32 +0000 (12:00 +0100)]
testtools/matchers.py: fix a comment typo

12 years agos3-spoolss: Check return type of update_dsspooler().
Andreas Schneider [Tue, 14 Feb 2012 10:56:37 +0000 (11:56 +0100)]
s3-spoolss: Check return type of update_dsspooler().

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Mar 14 19:38:45 CET 2012 on sn-devel-104

12 years agos3-spoolss: Check return codes in update_dsspooler.
Andreas Schneider [Mon, 13 Feb 2012 18:00:41 +0000 (19:00 +0100)]
s3-spoolss: Check return codes in update_dsspooler.

12 years agos3-printing: Check for browseable too.
Andreas Schneider [Fri, 10 Feb 2012 13:00:05 +0000 (14:00 +0100)]
s3-printing: Check for browseable too.

12 years agos3-printing: Make printer a const char *.
Andreas Schneider [Fri, 10 Feb 2012 12:45:24 +0000 (13:45 +0100)]
s3-printing: Make printer a const char *.

12 years agos3-rpc_client: Add debug message for printer dataex errors.
Andreas Schneider [Mon, 13 Feb 2012 17:57:26 +0000 (18:57 +0100)]
s3-rpc_client: Add debug message for printer dataex errors.

12 years agos3-rpc_server: Increase debug level for policy handle.
Andreas Schneider [Mon, 13 Feb 2012 17:58:32 +0000 (18:58 +0100)]
s3-rpc_server: Increase debug level for policy handle.

12 years agosamba3util: Add ccan to dependency list now that str_checksum() uses a ccan function.
Jelmer Vernooij [Wed, 14 Mar 2012 13:30:50 +0000 (14:30 +0100)]
samba3util: Add ccan to dependency list now that str_checksum() uses a ccan function.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Mar 14 17:55:51 CET 2012 on sn-devel-104

12 years agos3:smb2_server: fix a compiler warning
Christian Ambach [Tue, 13 Mar 2012 12:08:50 +0000 (13:08 +0100)]
s3:smb2_server: fix a compiler warning

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed Mar 14 16:06:48 CET 2012 on sn-devel-104

12 years agos3:smbd: also create ncalrpc/np directory before forking rpc daemons
Stefan Metzmacher [Wed, 14 Mar 2012 09:56:28 +0000 (10:56 +0100)]
s3:smbd: also create ncalrpc/np directory before forking rpc daemons

After the fixes to directory_create_or_exist(), this should not be
needed anymore, but lets try to make autobuild reliable first.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar 14 13:44:41 CET 2012 on sn-devel-104

12 years agolib/util: only change umask during mkdir()
Stefan Metzmacher [Wed, 14 Mar 2012 09:52:50 +0000 (10:52 +0100)]
lib/util: only change umask during mkdir()

metze

12 years agolib/util: cope with races between lstat and mkdir in directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:50:34 +0000 (10:50 +0100)]
lib/util: cope with races between lstat and mkdir in directory_create_or_exist()

metze

12 years agolib/util: use a helper variable in directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:46:14 +0000 (10:46 +0100)]
lib/util: use a helper variable in directory_create_or_exist()

metze

12 years agolib/util: do an early return on error directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:43:54 +0000 (10:43 +0100)]
lib/util: do an early return on error directory_create_or_exist()

metze

12 years agolib/util: remove unneeded else branch in directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:41:47 +0000 (10:41 +0100)]
lib/util: remove unneeded else branch in directory_create_or_exist()

metze

12 years agolib/util: don't start DEBUG output with 'error '
Stefan Metzmacher [Wed, 14 Mar 2012 09:39:49 +0000 (10:39 +0100)]
lib/util: don't start DEBUG output with 'error '

This confused the subunit code.

metze

12 years agos4-dsdb: Fix the case for attribute name msDS-hasMasterNCs
Amitay Isaacs [Wed, 14 Mar 2012 04:59:27 +0000 (15:59 +1100)]
s4-dsdb: Fix the case for attribute name msDS-hasMasterNCs

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar 14 11:59:02 CET 2012 on sn-devel-104

12 years agolib/tdb: remove unnecessary XOPEN and FILE_OFFSET_BITS defines in test/
Rusty Russell [Wed, 14 Mar 2012 05:01:01 +0000 (15:31 +1030)]
lib/tdb: remove unnecessary XOPEN and FILE_OFFSET_BITS defines in test/

These were relics: they don't need to be defined here as long as we are
careful to include the replace headers before any standard headers (we are).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Mar 14 10:12:26 CET 2012 on sn-devel-104

12 years agolib/tdb2: remove unneccessary _FILE_OFFSET_BITS define in test/.
Rusty Russell [Wed, 14 Mar 2012 04:59:55 +0000 (15:29 +1030)]
lib/tdb2: remove unneccessary _FILE_OFFSET_BITS define in test/.

This was a relic from testing; it can interfere with compile.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoautoconf: make autoconf build work on OS X 10.6
Matthieu Patou [Tue, 13 Mar 2012 05:49:32 +0000 (22:49 -0700)]
autoconf: make autoconf build work on OS X 10.6

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Mar 14 08:31:19 CET 2012 on sn-devel-104

12 years agolib/crypto: Detect CommonCrypto and use it if available
Matthieu Patou [Mon, 12 Mar 2012 23:21:28 +0000 (16:21 -0700)]
lib/crypto: Detect CommonCrypto and use it if available

CommonCrypto/CommonDigest is available on Mac and there is function in
the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final.
Under some circumstance we have the symbol defined twice in samba
binaries on Snow Leopard at least.

By detecting CommonCrypto/CommonDigest we end up always using the system
version if available.

12 years agolib/tdb2: make summary handle capabilities properly.
Rusty Russell [Wed, 14 Mar 2012 03:21:26 +0000 (13:51 +1030)]
lib/tdb2: make summary handle capabilities properly.

Another PPC issue (endian?) revealed that the summary code did not handle
capabilities correctly: in fact, it went into an endless loop.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Mar 14 06:51:43 CET 2012 on sn-devel-104

12 years agolib/tdb2: fix error string formatting.
Rusty Russell [Wed, 14 Mar 2012 03:07:51 +0000 (13:37 +1030)]
lib/tdb2: fix error string formatting.

This caused a crash on PPC64 when we failed the mmap (found by failtest,
reported by Amitay)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agolib/tdb2: Add gcc-style format attribute to tdb_logerr.
Rusty Russell [Wed, 14 Mar 2012 02:38:58 +0000 (13:08 +1030)]
lib/tdb2: Add gcc-style format attribute to tdb_logerr.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoFix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check...
Jeremy Allison [Wed, 14 Mar 2012 02:26:02 +0000 (19:26 -0700)]
Fix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 14 05:08:03 CET 2012 on sn-devel-104

12 years agoFix bug #8795 - Samba does not handle the Owner Rights permissions at all
Richard Sharpe [Tue, 13 Mar 2012 23:47:17 +0000 (16:47 -0700)]
Fix bug #8795 - Samba does not handle the Owner Rights permissions at all

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 14 02:26:34 CET 2012 on sn-devel-104

12 years agoSecond part of fix for bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with...
Jeremy Allison [Tue, 13 Mar 2012 19:16:26 +0000 (12:16 -0700)]
Second part of fix for bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the acl_xattr module.

Error found by Andrew Bartlett <abartlet@samba.org> and Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>.

Don't use a pointer when you really mean a bool flag.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar 13 21:56:15 CET 2012 on sn-devel-104

12 years agoFix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than...
Christian Ambach [Tue, 13 Mar 2012 17:07:11 +0000 (10:07 -0700)]
Fix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups

Use correct talloc heirarchy.

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos4-python: Add missing python source file encoding.
Andreas Schneider [Tue, 13 Mar 2012 16:14:37 +0000 (17:14 +0100)]
s4-python: Add missing python source file encoding.

See http://www.python.org/dev/peps/pep-0263/

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 19:31:09 CET 2012 on sn-devel-104

12 years agos4-python: Remove env from non-executable webserver script.
Andreas Schneider [Tue, 13 Mar 2012 10:59:21 +0000 (11:59 +0100)]
s4-python: Remove env from non-executable webserver script.

12 years agos4-python: Remove env from non-executable samba_tool scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:58:19 +0000 (11:58 +0100)]
s4-python: Remove env from non-executable samba_tool scripts.

12 years agos4-python: Remove env from non-executable dcerpc scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:57:33 +0000 (11:57 +0100)]
s4-python: Remove env from non-executable dcerpc scripts.

12 years agos4-python: Remove execute flag from non-executable rpc_talloc script.
Andreas Schneider [Tue, 13 Mar 2012 10:56:25 +0000 (11:56 +0100)]
s4-python: Remove execute flag from non-executable rpc_talloc script.

12 years agos4-python: Remove env from non-executable blackbox test scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:55:50 +0000 (11:55 +0100)]
s4-python: Remove env from non-executable blackbox test scripts.

12 years agos4-python: Remove execute flag from ndrdump blackbox script.
Andreas Schneider [Tue, 13 Mar 2012 10:55:05 +0000 (11:55 +0100)]
s4-python: Remove execute flag from ndrdump blackbox script.

12 years agos4-python: Remove env from non-executable test scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:54:11 +0000 (11:54 +0100)]
s4-python: Remove env from non-executable test scripts.

12 years agos4-python: Remove env from non-executable netcmd scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:35:03 +0000 (11:35 +0100)]
s4-python: Remove env from non-executable netcmd scripts.

12 years agos4-python: Remove execute flag from netcmd scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:27:03 +0000 (11:27 +0100)]
s4-python: Remove execute flag from netcmd scripts.

12 years agos4-python: Remove env from non-executable samba scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:24:38 +0000 (11:24 +0100)]
s4-python: Remove env from non-executable samba scripts.

12 years agos4-python: Remove execute flag of upgradehelpers.py.
Andreas Schneider [Tue, 13 Mar 2012 10:23:22 +0000 (11:23 +0100)]
s4-python: Remove execute flag of upgradehelpers.py.

12 years agos3-spoolss: Consistently fail OpenPrinterEx with "" printername
Andrew Bartlett [Tue, 13 Mar 2012 10:59:32 +0000 (21:59 +1100)]
s3-spoolss: Consistently fail OpenPrinterEx with "" printername

samba3.rpc.spoolss.printserver has become a flakey test recently, and this
papers over the real problem.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Mar 13 17:51:00 CET 2012 on sn-devel-104

12 years agonbench: Fix typo.
Jelmer Vernooij [Mon, 12 Mar 2012 18:36:51 +0000 (19:36 +0100)]
nbench: Fix typo.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Mar 13 14:53:07 CET 2012 on sn-devel-104

12 years agosamba.8: Fix typo: deamon -> daemon.
Jelmer Vernooij [Mon, 12 Mar 2012 18:34:43 +0000 (19:34 +0100)]
samba.8: Fix typo: deamon -> daemon.

12 years agosamba_dnsupdate: Mention contents of invalid line when encountering parsing error.
Jelmer Vernooij [Mon, 12 Mar 2012 18:29:34 +0000 (19:29 +0100)]
samba_dnsupdate: Mention contents of invalid line when encountering parsing error.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=8809

12 years agosamba_dnsupdate: Raise proper exception when getting unexpected DNS reply.
Jelmer Vernooij [Mon, 12 Mar 2012 18:25:39 +0000 (19:25 +0100)]
samba_dnsupdate: Raise proper exception when getting unexpected DNS reply.

12 years agosamba_dnsupdate: Use docstrings, which show up nicely in API docs.
Jelmer Vernooij [Mon, 12 Mar 2012 18:23:50 +0000 (19:23 +0100)]
samba_dnsupdate: Use docstrings, which show up nicely in API docs.

12 years agos3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.
Alexander Bokovoy [Fri, 2 Mar 2012 14:18:16 +0000 (16:18 +0200)]
s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.

On LSA and SAMR pipes session_key is truncated to 16 byte when doing encryption/decryption.
However, this was not done for trusted domain-related modifying operations.

As result, Samba 4 client libraries do not work against Samba 3 while working
against Windows 2008 r2.

Solved this by introducing "session_extract_session_key()" function that allows to specify
intent of use of the key.

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 12:23:44 CET 2012 on sn-devel-104

12 years agoselftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now
Stefan Metzmacher [Tue, 13 Mar 2012 07:25:58 +0000 (08:25 +0100)]
selftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar 13 10:38:20 CET 2012 on sn-devel-104

12 years agos3:torture: fix segfault in LOCAL-TALLOC-DICT
Stefan Metzmacher [Tue, 13 Mar 2012 07:22:03 +0000 (08:22 +0100)]
s3:torture: fix segfault in LOCAL-TALLOC-DICT

talloc_dict_set() expects a pointer to an talloc'ed pointer.

metze

12 years agos3:torture: talloc_dict_traverse() returns the number of entries
Stefan Metzmacher [Tue, 13 Mar 2012 07:21:15 +0000 (08:21 +0100)]
s3:torture: talloc_dict_traverse() returns the number of entries

metze

12 years agoselftest.run: Use subunit version of iso8601.
Jelmer Vernooij [Sun, 11 Mar 2012 22:56:56 +0000 (23:56 +0100)]
selftest.run: Use subunit version of iso8601.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar 12 01:36:25 CET 2012 on sn-devel-104

12 years agoselftest.py: Remove some unnecessary checks.
Jelmer Vernooij [Sun, 11 Mar 2012 20:46:00 +0000 (21:46 +0100)]
selftest.py: Remove some unnecessary checks.

12 years agoselftest.py: Move some infrastructure for running commands to selftest.run, with...
Jelmer Vernooij [Sun, 11 Mar 2012 19:58:00 +0000 (20:58 +0100)]
selftest.py: Move some infrastructure for running commands to selftest.run, with tests.

12 years agoupgradedns: Remove unused import.
Jelmer Vernooij [Sun, 11 Mar 2012 18:58:47 +0000 (19:58 +0100)]
upgradedns: Remove unused import.

12 years agosamba-tool: Write diagnostics to stderr rather than stdout.
Jelmer Vernooij [Sun, 11 Mar 2012 18:58:23 +0000 (19:58 +0100)]
samba-tool: Write diagnostics to stderr rather than stdout.

12 years agos4:upgradeprovision - fix some output messages
Matthias Dieter Wallnöfer [Sun, 11 Mar 2012 09:29:10 +0000 (10:29 +0100)]
s4:upgradeprovision - fix some output messages

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Mar 11 21:54:54 CET 2012 on sn-devel-104

12 years agos3: Improve statvfs support
Brad Smith [Sat, 10 Mar 2012 18:16:06 +0000 (19:16 +0100)]
s3: Improve statvfs support

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104

12 years agowaf: Do not use standards.h on darwin
Volker Lendecke [Sat, 10 Mar 2012 09:26:10 +0000 (10:26 +0100)]
waf: Do not use standards.h on darwin

We get a nasty warning every time we include that

12 years agos4 dns: Test deleting records and fix a small bu
Kai Blin [Sat, 10 Mar 2012 23:25:57 +0000 (00:25 +0100)]
s4 dns: Test deleting records and fix a small bu

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun Mar 11 02:27:45 CET 2012 on sn-devel-104

12 years agos4 dns: Be less chatty during tests
Kai Blin [Sat, 10 Mar 2012 23:25:05 +0000 (00:25 +0100)]
s4 dns: Be less chatty during tests

12 years agos4 dns: Clean up tests a bit
Kai Blin [Sat, 10 Mar 2012 22:49:18 +0000 (23:49 +0100)]
s4 dns: Clean up tests a bit

12 years agos4 dns: Support TXT updates, add tests
Kai Blin [Sat, 10 Mar 2012 22:48:44 +0000 (23:48 +0100)]
s4 dns: Support TXT updates, add tests

12 years agos4 dns: Support TXT queries
Kai Blin [Sat, 10 Mar 2012 22:47:29 +0000 (23:47 +0100)]
s4 dns: Support TXT queries

12 years agos3 selftest: Allow DNS updates during testing
Kai Blin [Sat, 10 Mar 2012 22:43:44 +0000 (23:43 +0100)]
s3 selftest: Allow DNS updates during testing

12 years agotdb_wrap: Move to specific directory.
Jelmer Vernooij [Sat, 10 Mar 2012 20:33:11 +0000 (21:33 +0100)]
tdb_wrap: Move to specific directory.

It's a bit confusing to mix low-level and high-level libraries.  We had
multiple libraries in one directory, and there were have circular
dependencies with other libraries outside that directory (in this case,
samba-hostconfig).

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104

12 years agosamba.tests.blackbox.samba_tool_drs: Remove unused import.
Jelmer Vernooij [Wed, 7 Mar 2012 09:30:34 +0000 (10:30 +0100)]
samba.tests.blackbox.samba_tool_drs: Remove unused import.

12 years agowscript: Include talloc, tdb and ldb in pydoctor output.
Jelmer Vernooij [Tue, 6 Mar 2012 22:40:39 +0000 (23:40 +0100)]
wscript: Include talloc, tdb and ldb in pydoctor output.

12 years agosamba.samdb: Fix formatting of arguments in docstring.
Jelmer Vernooij [Tue, 6 Mar 2012 22:31:55 +0000 (23:31 +0100)]
samba.samdb: Fix formatting of arguments in docstring.

12 years agopydoctor: Specify --project-name.
Jelmer Vernooij [Tue, 6 Mar 2012 22:21:44 +0000 (23:21 +0100)]
pydoctor: Specify --project-name.

12 years agopython: samba: Use relative import for _glue.
Jelmer Vernooij [Tue, 6 Mar 2012 22:20:12 +0000 (23:20 +0100)]
python: samba: Use relative import for _glue.

For some reason, using an absolute import breaks pydoctor.

12 years agotevent: Install tevent.py into PYTHONARCHDIR rather than PYTHONDIR for consistency...
Jelmer Vernooij [Tue, 6 Mar 2012 17:07:20 +0000 (18:07 +0100)]
tevent: Install tevent.py into PYTHONARCHDIR rather than PYTHONDIR for consistency with other Samba scripts.

12 years agoselftest: fix running additional smbclient test for non-spnego session setup
Andrew Bartlett [Sat, 10 Mar 2012 17:45:05 +0000 (04:45 +1100)]
selftest: fix running additional smbclient test for non-spnego session setup

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Mar 10 20:46:05 CET 2012 on sn-devel-104

12 years agos3: fix build on AIX
Björn Jacke [Sat, 10 Mar 2012 10:15:12 +0000 (11:15 +0100)]
s3: fix build on AIX

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Sat Mar 10 19:07:20 CET 2012 on sn-devel-104

12 years agos3: Add smb_request_done
Volker Lendecke [Sun, 4 Mar 2012 11:10:04 +0000 (12:10 +0100)]
s3: Add smb_request_done

This is used to enable async chained command sequences. A synchronous
reply_xxx command does not need to take are anymore about and_x
chaining. The async commands (pipe r/w at this moment) must do so
however. When finished, they must inform the main chain engine that
they are finished with a smb_request_done call.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104

12 years agos3: Remove unused smb_request->done
Volker Lendecke [Fri, 2 Mar 2012 23:59:56 +0000 (00:59 +0100)]
s3: Remove unused smb_request->done

12 years agos3: Remove unused smb_request->chain_outbuf
Volker Lendecke [Fri, 2 Mar 2012 23:34:27 +0000 (00:34 +0100)]
s3: Remove unused smb_request->chain_outbuf

12 years agos3: Remove "req_wct_ofs()"
Volker Lendecke [Fri, 2 Mar 2012 23:33:15 +0000 (00:33 +0100)]
s3: Remove "req_wct_ofs()"

This is fixed up in construct_reply_chain

12 years agos3: Fix the read&x offset within a chain
Volker Lendecke [Wed, 29 Feb 2012 22:44:36 +0000 (23:44 +0100)]
s3: Fix the read&x offset within a chain

12 years agos3: Remove chain_reply
Volker Lendecke [Tue, 28 Feb 2012 00:21:44 +0000 (01:21 +0100)]
s3: Remove chain_reply

<insert your favourite tombstone ascii art here>

12 years agos3: Replace chain_reply
Volker Lendecke [Mon, 27 Feb 2012 23:56:10 +0000 (00:56 +0100)]
s3: Replace chain_reply

This is a new implementation of our andx handling code. The old
code was quite involved in that it was called from within the reply_
handlers. This leads to pretty complex faking of smb_request
structures to give them the same environment, independent of whether
they are called directly or from within chain_reply.

chain_reply needs to go because it blocks really async handling of
chained requests.

12 years agos3: Add a new set of andx chain handling routines
Volker Lendecke [Mon, 27 Feb 2012 23:19:48 +0000 (00:19 +0100)]
s3: Add a new set of andx chain handling routines

This is in preparation of getting rid of chain_reply.

12 years agos3: Make sure the andX chains are ended correctly
Volker Lendecke [Sun, 26 Feb 2012 15:49:09 +0000 (16:49 +0100)]
s3: Make sure the andX chains are ended correctly

Normally chain_reply took care of this. This will go away soon.

12 years agos3: Fix a 64-bit warning
Volker Lendecke [Sat, 10 Mar 2012 12:45:41 +0000 (13:45 +0100)]
s3: Fix a 64-bit warning

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 10 15:27:09 CET 2012 on sn-devel-104

12 years agolib/tdb: fix tests for standalone out-of-tree.
Rusty Russell [Sat, 10 Mar 2012 03:38:48 +0000 (14:08 +1030)]
lib/tdb: fix tests for standalone out-of-tree.

Commit 4d58d0fa8f936e7efdc02e31c053d42a47b3e62a didn't work for lib/tdb
outside the build tree: symlink was pointing to wrong place.

Copy simplification from lib/tdb2, and fix the build farm.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Sat Mar 10 07:07:45 CET 2012 on sn-devel-104

12 years agosamba.tests.samba_tool.base: Avoid unnecessary call to testtools.matchers.Contains.
Jelmer Vernooij [Fri, 9 Mar 2012 23:23:40 +0000 (00:23 +0100)]
samba.tests.samba_tool.base: Avoid unnecessary call to testtools.matchers.Contains.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 05:27:51 CET 2012 on sn-devel-104

12 years agosamba.tests.samba_tool.user: Remove unused imports.
Jelmer Vernooij [Fri, 9 Mar 2012 23:23:18 +0000 (00:23 +0100)]
samba.tests.samba_tool.user: Remove unused imports.

12 years agoEnsure the right tsocket.h is included.
Jeremy Allison [Sat, 10 Mar 2012 01:08:36 +0000 (17:08 -0800)]
Ensure the right tsocket.h is included.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104

12 years agoFix up Christian Ambach's multi-credit code - the CreditCharge field is a 16-bit...
Jeremy Allison [Sat, 10 Mar 2012 00:47:21 +0000 (16:47 -0800)]
Fix up Christian Ambach's multi-credit code - the CreditCharge field is a 16-bit int read, not a 32-bit one.

12 years agos3:smb2_server validate message ids with largemtu
Christian Ambach [Tue, 28 Feb 2012 01:53:04 +0000 (17:53 -0800)]
s3:smb2_server validate message ids with largemtu

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server verify creditcharge
Christian Ambach [Tue, 28 Feb 2012 01:51:40 +0000 (17:51 -0800)]
s3:smb2_server verify creditcharge

for all requests that have max_???? checks, also do a check of the
creditcharge the client has sent (when using largemtu)

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server add function to verify creditcharge
Christian Ambach [Tue, 28 Feb 2012 01:49:12 +0000 (17:49 -0800)]
s3:smb2_server add function to verify creditcharge

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server: announce LargeMTU for SMB2.1
Christian Ambach [Mon, 27 Feb 2012 13:57:47 +0000 (05:57 -0800)]
s3:smb2_server: announce LargeMTU for SMB2.1

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server increase defaults for read/write/trans sizes to 1MB
Christian Ambach [Tue, 28 Feb 2012 05:33:13 +0000 (21:33 -0800)]
s3:smb2_server increase defaults for read/write/trans sizes to 1MB

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server: add supports_multicredit to sconn
Christian Ambach [Tue, 28 Feb 2012 01:45:09 +0000 (17:45 -0800)]
s3:smb2_server: add supports_multicredit to sconn

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server use the correct variables for max read/write
Christian Ambach [Mon, 27 Feb 2012 13:56:57 +0000 (05:56 -0800)]
s3:smb2_server use the correct variables for max read/write

Signed-off-by: Jeremy Allison <jra@samba.org>