samba.git
7 years agowafsamba: Cope with not everything having a final_libs attribute.
Jelmer Vernooij [Sun, 4 Dec 2011 14:36:27 +0000 (15:36 +0100)]
wafsamba: Cope with not everything having a final_libs attribute.

7 years agoselftest: Don't mark drsuapi tests as knownfailing.
Jelmer Vernooij [Sun, 4 Dec 2011 13:59:07 +0000 (14:59 +0100)]
selftest: Don't mark drsuapi tests as knownfailing.

7 years agowafsamba: Use final_libs list to determine if a target needs private libraries, rathe...
Jelmer Vernooij [Sun, 4 Dec 2011 13:58:11 +0000 (14:58 +0100)]
wafsamba: Use final_libs list to determine if a target needs private libraries, rather than direct dependencies list.

7 years agoFix typo.
Jelmer Vernooij [Sun, 4 Dec 2011 13:56:13 +0000 (14:56 +0100)]
Fix typo.

7 years agoselftest: 'samba4.rpc.netlogon on ncalrpc with seal,padcheck.netlogon.DsrEnumerateDom...
Jelmer Vernooij [Sun, 4 Dec 2011 13:22:40 +0000 (14:22 +0100)]
selftest: 'samba4.rpc.netlogon on ncalrpc with seal,padcheck.netlogon.DsrEnumerateDomainTrusts' now succeeds, remove it from the knownfail list.

7 years agoGetForestTrustInformation is implemented, remove it from knownfail.
Jelmer Vernooij [Sun, 4 Dec 2011 04:36:08 +0000 (05:36 +0100)]
GetForestTrustInformation is implemented, remove it from knownfail.

7 years agorap netsessiongetinfo apparently *is* provided by samba3, so don't list it in knownfail.
Jelmer Vernooij [Sun, 4 Dec 2011 04:06:15 +0000 (05:06 +0100)]
rap netsessiongetinfo apparently *is* provided by samba3, so don't list it in knownfail.

7 years agos3-selftest: Don't mark samba3.blackbox.failure.success test as known failing.
Jelmer Vernooij [Sun, 4 Dec 2011 03:38:07 +0000 (04:38 +0100)]
s3-selftest: Don't mark samba3.blackbox.failure.success test as known failing.

7 years agofilter-subunit: Fix default for flapping setting.
Jelmer Vernooij [Sun, 4 Dec 2011 02:55:11 +0000 (03:55 +0100)]
filter-subunit: Fix default for flapping setting.

7 years agoselftest: Display unexpected successes and expected failures.
Jelmer Vernooij [Sun, 4 Dec 2011 00:55:23 +0000 (01:55 +0100)]
selftest: Display unexpected successes and expected failures.

7 years agoselftest: Add --flapping argument to filter-subunit.
Jelmer Vernooij [Sat, 3 Dec 2011 23:23:02 +0000 (00:23 +0100)]
selftest: Add --flapping argument to filter-subunit.

7 years agoselftest: Split out flapping tests into a separate file.
Jelmer Vernooij [Sat, 3 Dec 2011 23:09:04 +0000 (00:09 +0100)]
selftest: Split out flapping tests into a separate file.

7 years agos4-drs: do not try to contact for replication servers that are not anymore in reps*
Matthieu Patou [Sun, 27 Nov 2011 23:28:44 +0000 (00:28 +0100)]
s4-drs: do not try to contact for replication servers that are not anymore in reps*

Servers connection can be removed from repsTo and respFrom either due to
DC demote or topology change by the KCC, if a server is removed from the
reps* it must be effectivly removed from the list of server that we will
contact for getNcChanges and for replicaSync.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Dec  5 19:56:09 CET 2011 on sn-devel-104

7 years agos4-resolver: do not use all the A and AAAA records, those after a NS are not the...
Matthieu Patou [Mon, 21 Nov 2011 22:37:03 +0000 (23:37 +0100)]
s4-resolver: do not use all the A and AAAA records, those after a NS are not the one we want to use

7 years agos4-drs: mark WERR_DS_DRA_BUSY as a non error in DsReplicaUpdateRefs
Matthieu Patou [Sun, 27 Nov 2011 11:24:23 +0000 (12:24 +0100)]
s4-drs: mark WERR_DS_DRA_BUSY as a non error in DsReplicaUpdateRefs

7 years agos4: add blackbox test for the demote function
Matthieu Patou [Sun, 4 Dec 2011 23:43:09 +0000 (00:43 +0100)]
s4: add blackbox test for the demote function

7 years agosamba-tool: refuse to demote if the current DC has still roles
Matthieu Patou [Sun, 4 Dec 2011 22:19:55 +0000 (23:19 +0100)]
samba-tool: refuse to demote if the current DC has still roles

7 years agosamba-tool: add a function to cleanly demote a DC
Matthieu Patou [Sun, 4 Dec 2011 22:00:57 +0000 (23:00 +0100)]
samba-tool: add a function to cleanly demote a DC

samba-tool domain demote allow the local DC to properly demote against
Microsoft and Samba DC.

7 years agos4-python: factorize the definition of get_dsServiceName
Matthieu Patou [Sun, 4 Dec 2011 13:23:34 +0000 (14:23 +0100)]
s4-python: factorize the definition of get_dsServiceName

7 years agos4-python: externalize some function to the drs_utils module so that they can be...
Matthieu Patou [Mon, 28 Nov 2011 19:48:59 +0000 (20:48 +0100)]
s4-python: externalize some function to the drs_utils module so that they can be reused

7 years agos4-python: rename conflicting variable with the import option
Matthieu Patou [Mon, 28 Nov 2011 18:31:57 +0000 (19:31 +0100)]
s4-python: rename conflicting variable with the import option

7 years agotdb2: tlist: remove type arg from tlist_top(), tlist_tail()
Rusty Russell [Mon, 5 Dec 2011 06:34:31 +0000 (17:04 +1030)]
tdb2: tlist: remove type arg from tlist_top(), tlist_tail()

With the type canary, it's unnecessary.  Though the implementation is
a bit more awkward since they longer map directly through to list_top/tail.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit a6b5111fe6948e51114c33aa34785c9fd0d403e6)

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Dec  5 12:13:08 CET 2011 on sn-devel-104

7 years agotdb2: display capability information in tdb_summary()
Rusty Russell [Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)]
tdb2: display capability information in tdb_summary()

This means we know they're there in future, and what restrictions they
carry.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit b3ca95351517e76b635347b39382b059a66f8388)

7 years agotdb2: add a capability list from the header.
Rusty Russell [Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)]
tdb2: add a capability list from the header.

This allows even more extensibility in future: in particular, the top
bits of each capability tell us what to do if we don't understand it:
fail the open, fail to open for write, or don't try to check the
format.

tdb_check needs to understand the capability list so it can know to
skip over it: each element in the list is prefixed with the type tag
and the length.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 35f198de1851a7d57064546b7ced677b6fabee27)

7 years agotdb2: provide tdb_layout_write() rather than implying it by new_tdb_layout arg.
Rusty Russell [Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)]
tdb2: provide tdb_layout_write() rather than implying it by new_tdb_layout arg.

Neater API.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 79d603a5f73dfbb655d8d08f67eecb5f2da542d5)

7 years agotdb2: add an internal TDB_CANT_CHECK flag.
Rusty Russell [Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)]
tdb2: add an internal TDB_CANT_CHECK flag.

This will be used shortly to indicate that a TDB2 file indicates it
cannot be checked.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit e01d795c8964b791def1e9f68c386b350b3a2a84)

7 years agotdb2: suppress failtest more than once on mmap.
Rusty Russell [Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)]
tdb2: suppress failtest more than once on mmap.

Now we test failing mmap, ccanlint -v time has increased from 200 to
330 seconds.  Worse, tests no time out on my laptop.

Fix this, by preventing us from going down that particular rabbit hole.
ccanlint -v now takes 201 seconds again.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit fbae37ba91ec230e34be564084099726cc3a9d47)

7 years agotdb2: simplify failtest helper.
Rusty Russell [Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)]
tdb2: simplify failtest helper.

failtest now culls duplicates for itself (and more efficiently), so
don't replicate the logic here.  It changes things a bit, because
failtest uses backtraces rather than a simple call point to find
duplicates.

Also, fix one case (in run-11-simple-fetch.c) where we simply exited
rather than using failtest_exit().  We got away with it before, because
we never hit that particular failure pattern.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 3d99c9334fe3067c88772547b9c06acec21616ea)

7 years agotdb2: failtest: use a linked list for history, not an array.
Rusty Russell [Mon, 5 Dec 2011 06:33:30 +0000 (17:03 +1030)]
tdb2: failtest: use a linked list for history, not an array.

This avoids a silly realloc, but more importantly it gets us closer to
being runtime extensible, as each history element can be a different
size.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 9571a41e8494f3135557e3ec50c2de856392173e)

7 years agotdb2: consolidate testing failtest suppression routines.
Rusty Russell [Mon, 5 Dec 2011 06:33:19 +0000 (17:03 +1030)]
tdb2: consolidate testing failtest suppression routines.

Less cut & paste means less patching as failtest changes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 1819a36a3e69565bd7b853503fceb846558a45bd)

7 years agotdb2: fix intermittant failure in run-50-multiple-freelists-fail.c
Rusty Russell [Mon, 5 Dec 2011 06:33:19 +0000 (17:03 +1030)]
tdb2: fix intermittant failure in run-50-multiple-freelists-fail.c

layout.c's TDB creation functions were incorrect in case of a hash
collision, causing occasional failure.  Make it always use the
(previously-failing) seed value, and fix it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 60a487d57979e4364e70c837079f3cf083ddc9c7)

7 years agolib/ccan/cast: fix warnings with -Wextra (specifically -Wmissing-field-initializers)
Rusty Russell [Mon, 5 Dec 2011 06:12:50 +0000 (16:42 +1030)]
lib/ccan/cast: fix warnings with -Wextra (specifically -Wmissing-field-initializers)

As noted by Jan Engelhardt; libHX fixed this already.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit b2cc1341c9464b6da4654fd3fa0aafe934fba578)

7 years agolib/ccan/compiler, ilog: IDEMPOTENT "idempotent does not mean what you think it means"
Rusty Russell [Mon, 5 Dec 2011 06:12:50 +0000 (16:42 +1030)]
lib/ccan/compiler, ilog: IDEMPOTENT "idempotent does not mean what you think it means"

Actually, I don't even think it means that.  But rename it to something
which is sane.

Thanks to David Gibson for reporting.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit e764d0a27d2b6748ea7d343042ec7d6dda1f6aae)

7 years agolib/ccan/asearch: fix example on 64 bit platforms.
Rusty Russell [Mon, 5 Dec 2011 06:12:49 +0000 (16:42 +1030)]
lib/ccan/asearch: fix example on 64 bit platforms.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit a8446c3ef94ae0d5f273656da12aa9a8b3abf658)

7 years agolib/ccan/htable: benchmark against hsearch(3)
Rusty Russell [Mon, 5 Dec 2011 06:12:49 +0000 (16:42 +1030)]
lib/ccan/htable: benchmark against hsearch(3)

Since that has a fixed hash table size and doesn't support delete, we can't
do a thorough comparison, but we can insert and search.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 95757f0e9d979e7c653e9b53bb640deb4f0ea1f9)

7 years agolib/ccan/likely: use htable_type
Rusty Russell [Mon, 5 Dec 2011 06:12:48 +0000 (16:42 +1030)]
lib/ccan/likely: use htable_type

Also general cleanups:
(1) Don't assume that strings are folded by the compiler.
(2) Implement likely_stats_reset().
(3) Return non-const string from likely_stats(), as caller must free it.
(4) Don't use struct info indirection (that was from when we used callbacks?)
(5) Close memory leak in run-debug.c

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 0e5d0e30b30bb07b6605843e5ff224210d8083d8)

7 years agolib/ccan/htable: HTABLE_INITIALIZER() for static initialization.
Rusty Russell [Mon, 5 Dec 2011 06:12:48 +0000 (16:42 +1030)]
lib/ccan/htable: HTABLE_INITIALIZER() for static initialization.

Unfortunately it's a bit of a pain to use for typed hashtables, but it
works.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 60cc720d0797fc49325437ea36a9ffd909c75ed0)

7 years agolib/ccan/htable: clean up interface, document htable_type better.
Rusty Russell [Mon, 5 Dec 2011 06:12:47 +0000 (16:42 +1030)]
lib/ccan/htable: clean up interface, document htable_type better.

We change from htable_new()/htable_free() to htable_init/htable_clear.
We also change HTABLE_DEFINE_TYPE() to be the full name, without automatically
prepending htable_.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 0c3590dc33d644f73bb8587db454c491830aaf26)

7 years agolib/ccan/htable: start empty.
Rusty Russell [Mon, 5 Dec 2011 06:12:47 +0000 (16:42 +1030)]
lib/ccan/htable: start empty.

There's no real reason to start with 128 entries.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 45f24da35118db441e6153f02f6ddd937da1fa1c)

7 years agolib/ccan/htable, strset: benchmarking tools.
Rusty Russell [Mon, 5 Dec 2011 06:12:46 +0000 (16:42 +1030)]
lib/ccan/htable, strset: benchmarking tools.

This lets us compare hash table vs. strset vs. the example
implementation of critbit trees.

cbspeed 100 runs, min-max(avg):
#01: Initial insert:   236-245(237)
#02: Initial lookup (match):   180-186(180)
#03: Initial lookup (miss):   171-185(172)
#04: Initial lookup (random):   441-457(444)
#05: Initial delete all:   127-132(128)
#06: Initial re-inserting:   219-225(220)
#07: Deleting first half:   101-104(102)
#08: Adding (a different) half:   158-162(159)
#09: Lookup after half-change (match):   202-207(203)
#10: Lookup after half-change (miss):   217-222(218)
#11: Churn 1:   297-302(299)
#12: Churn 2:   297-305(300)
#13: Churn 3:   301-308(303)
#14: Post-Churn lookup (match):   189-195(190)
#15: Post-Churn lookup (miss):   189-193(190)
#16: Post-Churn lookup (random):   499-513(503)

speed 100 runs, min-max(avg):
#01: Initial insert:   211-218(212)
#02: Initial lookup (match):   161-166(162)
#03: Initial lookup (miss):   157-162(158)
#04: Initial lookup (random):   452-460(454)
#05: Initial delete all:   126-135(127)
#06: Initial re-inserting:   193-201(194)
#07: Deleting first half:   99-107(99)
#08: Adding (a different) half:   143-190(144)
#09: Lookup after half-change (match):   183-195(184)
#10: Lookup after half-change (miss):   197-203(198)
#11: Churn 1:   271-278(274)
#12: Churn 2:   280-287(282)
#13: Churn 3:   277-285(279)
#14: Post-Churn lookup (match):   171-175(171)
#15: Post-Churn lookup (miss):   174-178(175)
#16: Post-Churn lookup (random):   525-552(528)

stringspeed 100 runs, min-max(avg):
#01: Initial insert:   300-343(308)
#02: Initial lookup (match):   98-136(99)
#03: Initial lookup (miss):   73-102(75)
#04: Initial lookup (random):   230-282(233)
#05: Initial delete all:   66-102(69)
#06: Initial re-inserting:   62-99(64)
#07: Deleting first half:   43-52(43)
#08: Adding (a different) half:   101-156(106)
#09: Lookup after half-change (match):   114-156(120)
#10: Lookup after half-change (miss):   94-103(95)
#11: Churn 1:   98-105(99)
#12: Churn 2:   96-104(98)
#13: Churn 3:   174-184(176)
#14: Post-Churn lookup (match):   93-112(94)
#15: Post-Churn lookup (miss):   77-107(79)
#16: Post-Churn lookup (random):   229-265(232)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 5c559e7df1d31b4c0ddf26451fac972dc8a0c2c9)

7 years agolib/ccan/str: fix warnings.
Rusty Russell [Mon, 5 Dec 2011 06:12:46 +0000 (16:42 +1030)]
lib/ccan/str: fix warnings.

Firstly, -Wwrite-strings makes string literals const, secondly, we mustn't
define str_strstr etc in terms of themselves!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 0845e79650c9257aa0ddef8ff99fd815b5edffac)

7 years agolib/ccan/str: relicense to public domain.
Rusty Russell [Mon, 5 Dec 2011 06:12:45 +0000 (16:42 +1030)]
lib/ccan/str: relicense to public domain.

LGPL is overkill for trivial wrappers like this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 942f2788e165bb203b0f160f29bd4592f32dc344)

7 years agolib/ccan/typesafe_cb: fix example macro ordering in typesafe_cb_preargs documentation.
Rusty Russell [Mon, 5 Dec 2011 06:12:45 +0000 (16:42 +1030)]
lib/ccan/typesafe_cb: fix example macro ordering in typesafe_cb_preargs documentation.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 12652625db55f6586e95fc5edc73e1e85bae8a5c)

7 years agolib/ccan/htable: fix tools/speed.
Rusty Russell [Mon, 5 Dec 2011 06:12:44 +0000 (16:42 +1030)]
lib/ccan/htable: fix tools/speed.

As pointed out by Christian Thaeter, it has bitrotted.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit f725bbb1987284933e0f21dfb8f2ce7a1f0806e5)

7 years agolib/ccan/build_assert: Remove stale LGPL license comment.
Joey Adams [Mon, 5 Dec 2011 06:12:43 +0000 (16:42 +1030)]
lib/ccan/build_assert: Remove stale LGPL license comment.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit d3d4303acd139e8c34f11067333c000a3f885307)

7 years agolib/ccan/array_size: relicense under public domain.
Rusty Russell [Mon, 5 Dec 2011 06:12:40 +0000 (16:42 +1030)]
lib/ccan/array_size: relicense under public domain.

It's just a header, I don't care what's done with it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit d06b67d244657da7054e3da580a771c365566d3c)

7 years agoRevert fac5c654e2fe17c2c11d150b16088e8a51f6be20
Jeremy Allison [Sun, 4 Dec 2011 05:44:14 +0000 (21:44 -0800)]
Revert fac5c654e2fe17c2c11d150b16088e8a51f6be20

s3: Add a fallback for missing open&x support in OS/X Lion

This is now done inside the synchronous cli_open() wrapper
function.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sun Dec  4 08:19:31 CET 2011 on sn-devel-104

7 years agoMove the callers that need to use the new cli_open() back to calling
Jeremy Allison [Sun, 4 Dec 2011 05:36:47 +0000 (21:36 -0800)]
Move the callers that need to use the new cli_open() back to calling
it from cli_openx().

7 years agoAdd cli_open() back as a synchronous wrapper function the calls
Jeremy Allison [Sun, 4 Dec 2011 05:31:32 +0000 (21:31 -0800)]
Add cli_open() back as a synchronous wrapper function the calls
NtCreateX followed by openX() if NtCreateX is unsupported.

7 years agoRename cli_open -> cli_openx. Prelude to replacing generic cli_open()
Jeremy Allison [Sun, 4 Dec 2011 05:13:08 +0000 (21:13 -0800)]
Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()
with a call that uses NTCreateX in preference to OpenAndX.

7 years agos4 dns: Test SOA queries
Kai Blin [Sat, 3 Dec 2011 18:08:09 +0000 (19:08 +0100)]
s4 dns: Test SOA queries

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sat Dec  3 20:52:51 CET 2011 on sn-devel-104

7 years agoRevert making public of the samba-module library.
Jelmer Vernooij [Sat, 3 Dec 2011 06:03:35 +0000 (07:03 +0100)]
Revert making public of the samba-module library.

This library was tiny - containing just two public functions than were
themselves trivial. The amount of overhead this causes isn't really worth the
benefits of sharing the code with other projects like OpenChange. In addition, this code
isn't really generically useful anyway, as it can only load from the module path
set for Samba at configure time.

Adding a new library was breaking the API/ABI anyway, so OpenChange had to be
updated to cope with the new situation one way or another. I've added a simpler
(compatible) routine for loading modules to OpenChange, which is less than 100 lines of code.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec  3 08:36:33 CET 2011 on sn-devel-104

7 years agolib/util: factor out tdb_data_is_empty
Gregor Beck [Mon, 7 Nov 2011 08:59:37 +0000 (09:59 +0100)]
lib/util: factor out tdb_data_is_empty

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Dec  3 05:20:30 CET 2011 on sn-devel-104

7 years agos3:registry: do not use regdb functions during db upgrade
Gregor Beck [Fri, 14 Oct 2011 08:57:11 +0000 (10:57 +0200)]
s3:registry: do not use regdb functions during db upgrade

It is importante to not use the database backend implementation
in the upgrade. Otherwise this would only work as long as this
is the newset version. In future versions of the registry, this
(then) intermediate upgrade step would change in behaviour and not
work as expected any more.

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3:net: adapt idmap check to new dbwrap_fetch behavior not to return success if not...
Gregor Beck [Fri, 4 Nov 2011 09:55:47 +0000 (10:55 +0100)]
s3:net: adapt idmap check to new dbwrap_fetch behavior not to return success if not found

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3-winbind: Add an update function for winbind cache.
Andreas Schneider [Sat, 3 Dec 2011 00:19:34 +0000 (16:19 -0800)]
s3-winbind: Add an update function for winbind cache.

With 57b3d32 we changed the format for the winbind cache database and
the code deleted the database for the upgrade. As this database holds
also cached credentials, removing it is not an option. We need to update
from version 1 to version 2.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec  3 03:47:58 CET 2011 on sn-devel-104

7 years agotevent: Fix typo in build script.
Jelmer Vernooij [Fri, 2 Dec 2011 22:43:10 +0000 (23:43 +0100)]
tevent: Fix typo in build script.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec  3 02:15:40 CET 2011 on sn-devel-104

7 years agoUpdate the waf build system to link with the new PIDL locking code.
Jeremy Allison [Fri, 2 Dec 2011 21:41:55 +0000 (13:41 -0800)]
Update the waf build system to link with the new PIDL locking code.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec  3 00:14:54 CET 2011 on sn-devel-104

7 years agos3: Use autogenerated open_files.idl
Volker Lendecke [Thu, 24 Nov 2011 13:11:28 +0000 (14:11 +0100)]
s3: Use autogenerated open_files.idl

7 years agos3: Move ndr_file_id to LIBNDR_OBJ
Volker Lendecke [Thu, 24 Nov 2011 09:02:44 +0000 (10:02 +0100)]
s3: Move ndr_file_id to LIBNDR_OBJ

7 years agos3: Add open_files.idl
Volker Lendecke [Thu, 24 Nov 2011 09:01:57 +0000 (10:01 +0100)]
s3: Add open_files.idl

7 years agolibrpc: Add support for struct timeval
Volker Lendecke [Thu, 24 Nov 2011 08:49:19 +0000 (09:49 +0100)]
librpc: Add support for struct timeval

7 years agolibrpc: Add support for struct timespec
Volker Lendecke [Thu, 24 Nov 2011 08:48:40 +0000 (09:48 +0100)]
librpc: Add support for struct timespec

7 years agoFix bug #8644 - vfs_acl_xattr and vfs_acl_tdb modules can fail to add inheritable...
Jeremy Allison [Fri, 2 Dec 2011 18:55:40 +0000 (10:55 -0800)]
Fix bug #8644 - vfs_acl_xattr and vfs_acl_tdb modules can fail to add inheritable entries on a directory with no stored ACL.

If referring to an fsp sbuf can be left as an uninitialized variable,
causing the 'is_directory' variable to be false when it should be true.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  2 22:13:03 CET 2011 on sn-devel-104

7 years agoEnsure we map our own Samba return of ERRSRV, ERRunknownsmb
Jeremy Allison [Fri, 2 Dec 2011 18:28:23 +0000 (10:28 -0800)]
Ensure we map our own Samba return of ERRSRV, ERRunknownsmb
on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.

7 years agoConvert smbclient to using NtCreateX by preference, fall back to openX on
Jeremy Allison [Fri, 2 Dec 2011 18:11:17 +0000 (10:11 -0800)]
Convert smbclient to using NtCreateX by preference, fall back to openX on
'not implemented' or similar error.

7 years agos3: Fix some nonblank line endings
Volker Lendecke [Fri, 2 Dec 2011 16:40:33 +0000 (17:40 +0100)]
s3: Fix some nonblank line endings

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec  2 20:39:33 CET 2011 on sn-devel-104

7 years agos3: Remove unused dbwrap_record_get_private_data
Volker Lendecke [Fri, 2 Dec 2011 16:39:13 +0000 (17:39 +0100)]
s3: Remove unused dbwrap_record_get_private_data

db_record->private_data is for backends which can include dbwrap_private.h
anyway.

7 years agos3-winbind: Remove unused keys from list.
Andreas Schneider [Fri, 2 Dec 2011 14:44:02 +0000 (15:44 +0100)]
s3-winbind: Remove unused keys from list.

DR and DE have been removed with
0834574fdd6b469797b3b6a4edd45f321b9b9971.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri Dec  2 19:02:45 CET 2011 on sn-devel-104

7 years agoAdd the "backup" toggle command to smbclient. In order for this to be
Jeremy Allison [Thu, 1 Dec 2011 21:47:12 +0000 (13:47 -0800)]
Add the "backup" toggle command to smbclient. In order for this to be
really useful we need to change to using NTCreateX opens by default in
cli_open() and fall back to old OpenX calls instead of doing it the
other way around.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  2 00:23:13 CET 2011 on sn-devel-104

7 years agoAfter a discussion with Volker, sdd a backup_intent state to the client struct.
Jeremy Allison [Thu, 1 Dec 2011 21:24:22 +0000 (13:24 -0800)]
After a discussion with Volker, sdd a backup_intent state to the client struct.

This causes the backup_intent flags to be added to findfirst/findnext
and ntcreate/nttrans_create calls.

cli_set_backup_intent() sets the flag and returns the old value of
its state.

7 years agos4-ntvfs: added allow_override check based on use of NT ACL
Andrew Tridgell [Thu, 1 Dec 2011 02:40:49 +0000 (13:40 +1100)]
s4-ntvfs: added allow_override check based on use of NT ACL

This disables the posix permission override if the calculated
permissions did not come from a NT ACL.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Dec  1 05:14:49 CET 2011 on sn-devel-104

7 years agos4-ntvfs: fixed a unix ACL mapping bug
Andrew Tridgell [Thu, 1 Dec 2011 01:59:23 +0000 (12:59 +1100)]
s4-ntvfs: fixed a unix ACL mapping bug

the ACL mapping code was incorrectly allowing creation of directories
in some situations where it should be denied by the unix permissions

7 years agoselftest: Fix typo in socket wrapper test.
Jelmer Vernooij [Wed, 30 Nov 2011 21:57:18 +0000 (22:57 +0100)]
selftest: Fix typo in socket wrapper test.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Dec  1 00:30:00 CET 2011 on sn-devel-104

7 years agoselftest: Drop broken and unused Kvm target.
Jelmer Vernooij [Wed, 30 Nov 2011 19:42:58 +0000 (20:42 +0100)]
selftest: Drop broken and unused Kvm target.

7 years agoselftest: Don't acquire target when --list was specified.
Jelmer Vernooij [Wed, 30 Nov 2011 19:42:14 +0000 (20:42 +0100)]
selftest: Don't acquire target when --list was specified.

7 years agoUpdate ldb API sigs. ldb-1.1.4
Jelmer Vernooij [Wed, 30 Nov 2011 19:22:47 +0000 (20:22 +0100)]
Update ldb API sigs.

7 years agoBump ldb version to 1.1.4 after introduction of ldb_module_error.
Jelmer Vernooij [Wed, 30 Nov 2011 17:46:31 +0000 (18:46 +0100)]
Bump ldb version to 1.1.4 after introduction of ldb_module_error.

7 years agoselftest: Don't generate subunit file when writing subunit to stdout.
Jelmer Vernooij [Sun, 27 Nov 2011 20:50:23 +0000 (21:50 +0100)]
selftest: Don't generate subunit file when writing subunit to stdout.

7 years agoselftest: Prevent error about unfinished test command when using --list.
Jelmer Vernooij [Sun, 27 Nov 2011 20:07:07 +0000 (21:07 +0100)]
selftest: Prevent error about unfinished test command when using --list.

7 years agos4-tests: Use long option names in test list script, to prevent 'eating' --list argum...
Jelmer Vernooij [Sun, 27 Nov 2011 20:05:09 +0000 (21:05 +0100)]
s4-tests: Use long option names in test list script, to prevent 'eating' --list argument when e.g.  is not set.

7 years agotestr: Use test lists.
Jelmer Vernooij [Sun, 27 Nov 2011 18:59:01 +0000 (19:59 +0100)]
testr: Use test lists.

7 years agos4-testlist: Write diagnostic info to stderr, and purely test info to stdout.
Jelmer Vernooij [Sun, 27 Nov 2011 18:58:30 +0000 (19:58 +0100)]
s4-testlist: Write diagnostic info to stderr, and purely test info to stdout.

7 years agoselftest: Don't use fancy subunit formatters when generating a test list.
Jelmer Vernooij [Sun, 27 Nov 2011 18:57:53 +0000 (19:57 +0100)]
selftest: Don't use fancy subunit formatters when generating a test list.

7 years agoselftest: Don't write subunit output in --list mode.
Jelmer Vernooij [Sun, 27 Nov 2011 18:53:35 +0000 (19:53 +0100)]
selftest: Don't write subunit output in --list mode.

7 years agoselftesthelpers: write warnings to stderr rather than stdout.
Jelmer Vernooij [Sun, 27 Nov 2011 18:52:57 +0000 (19:52 +0100)]
selftesthelpers: write warnings to stderr rather than stdout.

7 years agos3: Attempt to fix the vfs_commit module
Volker Lendecke [Wed, 30 Nov 2011 17:51:27 +0000 (18:51 +0100)]
s3: Attempt to fix the vfs_commit module

This bug went in in 2007. I wonder how much this module is actually used....

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 30 21:46:09 CET 2011 on sn-devel-104

7 years agos4:lib/tls - call "gnutls_transport_set_lowat" only on GNUTLS < 3.0
Matthias Dieter Wallnöfer [Mon, 28 Nov 2011 19:55:37 +0000 (20:55 +0100)]
s4:lib/tls - call "gnutls_transport_set_lowat" only on GNUTLS < 3.0

This function call together with the lowat feature has been removed in release
3.0 as described in this mailing list post:
http://old.nabble.com/gnutls_transport_set_lowat-deprecated-td32554230.html.

Since we do not make any use of lowat (esprimed by each function call)
we are free to simply omit it on v3.0 and later.

This addresses bug #8537.

Reviewed by: abartlet + metze

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Nov 30 20:11:14 CET 2011 on sn-devel-104

7 years agos3-waf: fix the build with CTDB_CONTROL_CHECK_SRVIDS.
Günther Deschner [Wed, 30 Nov 2011 15:34:52 +0000 (16:34 +0100)]
s3-waf: fix the build with CTDB_CONTROL_CHECK_SRVIDS.

Volker, Michael, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 30 18:37:29 CET 2011 on sn-devel-104

7 years agos4:gensec/spnego: only try the mechs that match the client given ones
Stefan Metzmacher [Wed, 30 Nov 2011 14:17:05 +0000 (15:17 +0100)]
s4:gensec/spnego: only try the mechs that match the client given ones

Windows-Members of NT4/Samba3 domains, send

MechTypes:
1.3.6.1.4.1.311.2.2.10 [NTLMSSP]
1.2.840.48018.1.2.2    [krb5 broken]
1.2.840.113554.1.2.2   [krb5]

MechToken for NTLMSSP.

This patch makes sure we start NTLMSSP with the given MechToken,
instead of trying to pass the NTLMSSP MechToken to the krb5 backend
first. As that would fail the authentication with an error
instead of trying fallbacks.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 30 17:03:29 CET 2011 on sn-devel-104

7 years agos4:libcli/raw: implement on top of smbXcli_conn/req
Stefan Metzmacher [Fri, 23 Sep 2011 06:35:17 +0000 (08:35 +0200)]
s4:libcli/raw: implement on top of smbXcli_conn/req

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104

7 years agos4:libcli: do the nbss session request within smbcli_sock_connect_*()
Stefan Metzmacher [Wed, 30 Nov 2011 07:50:11 +0000 (08:50 +0100)]
s4:libcli: do the nbss session request within smbcli_sock_connect_*()

metze

7 years agos4:libcli/raw: remove unused functions
Stefan Metzmacher [Wed, 30 Nov 2011 07:35:33 +0000 (08:35 +0100)]
s4:libcli/raw: remove unused functions

metze

7 years agos4:libcli: use smbcli_sock_connect() in smbcli_socket_connect()
Stefan Metzmacher [Wed, 30 Nov 2011 07:33:29 +0000 (08:33 +0100)]
s4:libcli: use smbcli_sock_connect() in smbcli_socket_connect()

metze

7 years agos4:libcli: move smbcli_transport_establish() logic into smbcli_socket_connect()
Stefan Metzmacher [Wed, 30 Nov 2011 06:17:31 +0000 (07:17 +0100)]
s4:libcli: move smbcli_transport_establish() logic into smbcli_socket_connect()

metze

7 years agos4:libcli: convert smbcli_transport_connect_* to tevent_req
Stefan Metzmacher [Tue, 29 Nov 2011 10:57:11 +0000 (11:57 +0100)]
s4:libcli: convert smbcli_transport_connect_* to tevent_req

metze

7 years agos4:lib/socket: add socket_connect_multi_ex_*
Stefan Metzmacher [Tue, 29 Nov 2011 15:25:03 +0000 (16:25 +0100)]
s4:lib/socket: add socket_connect_multi_ex_*

This add an async establish hook, that gets called
before a connection success is detected.

This can be used to do a NBT session request
and it makes sure that we don't cancel the connection
on port 445, just because the tcp connect on port
139 worked.

metze

7 years agos3-ctdb: Make use of CTDB_CONTROL_CHECK_SRVIDS
Volker Lendecke [Mon, 31 Oct 2011 15:30:38 +0000 (16:30 +0100)]
s3-ctdb: Make use of CTDB_CONTROL_CHECK_SRVIDS

This should be a lot quicker than PROCESS_EXISTS followed by looking at
serverid.tdb

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 30 12:47:27 CET 2011 on sn-devel-104

7 years agoFix bug 8636 - When returning an ACL without SECINFO_DACL requested, we still set...
Jeremy Allison [Wed, 30 Nov 2011 00:31:18 +0000 (16:31 -0800)]
Fix bug 8636 - When returning an ACL without SECINFO_DACL requested, we still set SEC_DESC_DACL_PRESENT in the type field.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 30 04:59:07 CET 2011 on sn-devel-104

7 years agos4-kdc: Add hdb plugin for samba4, to allow kadmin to work
Andrew Bartlett [Tue, 29 Nov 2011 20:45:25 +0000 (07:45 +1100)]
s4-kdc: Add hdb plugin for samba4, to allow kadmin to work

This will help users who are used to the kadmin interface, and could
be extended to import existing MIT or Heimdal keys into a Samba4 AD
domain.

To use, add to your krb5.conf

[kdc]

database = {
   dbname = samba4:
}

or

[kdc]

database = {
   dbname = samba4:/usr/local/samba/etc/smb.conf
}

And copy hdb_samba4.so from PREFIX/modules/hdb to your Heimdal lib directory

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Nov 30 03:22:11 CET 2011 on sn-devel-104