sfrench/samba-autobuild/.git
16 years agor19408: I think tm_mon is ending up as -1 on some platforms
Andrew Tridgell [Thu, 19 Oct 2006 03:04:00 +0000 (03:04 +0000)]
r19408: I think tm_mon is ending up as -1 on some platforms
(This used to be commit d01bdf1f2dcdf77043a5ad162ee336d3c6f2e944)

16 years agor19407: add a copyright notice
Derrell Lipman [Thu, 19 Oct 2006 01:19:44 +0000 (01:19 +0000)]
r19407: add a copyright notice
(This used to be commit 802ede34e83014fe216a5b7bcdf18586327a8a09)

16 years agor19406: ldbbrowse: done!
Derrell Lipman [Thu, 19 Oct 2006 01:10:57 +0000 (01:10 +0000)]
r19406: ldbbrowse: done!

With ldbbrowse, you can issue searches or browse the database in tree format.
To try it, ensure that "make installswat" is done (it's run by "make install"
so you shouldn't have to do anything special).  Run smbd and connect with your
browser to http://localhost:901/apps/samba/utils/ldbbrowse.html

(It looks great in firefox.  There's some problem with the layout in IE.
Maybe if I get really really motivated one of these days, I'll look into that.)

There's lots more that could be done with it, but as an example of using
qooxdoo and JSON-RPC, I think it accomplishes its task.

Enjoy!

Derrell
(This used to be commit 0888c7098daefc23738dd47fe1c072516ba55feb)

16 years agor19405: the talloc speed test suite was not giving an accurate picture of the
Andrew Tridgell [Thu, 19 Oct 2006 00:59:33 +0000 (00:59 +0000)]
r19405: the talloc speed test suite was not giving an accurate picture of the
cost of talloc versus malloc. The size parameter in the test suite was
constantly increasing, leading to a worst case for malloc. It is far
more common to have talloc calls of 100 bytes or lower, so change the
benchmark to reflect this.

This makes talloc look much worse - on my laptop I now get:

talloc: 5615164 ops/sec
malloc: 14337130 ops/sec

I'm working on improving that.
(This used to be commit db273ef4dd6ab58da57bb4b59fb1fd5568585ed8)

16 years agor19404: fixed the LOCAL-ICONV test
Andrew Tridgell [Wed, 18 Oct 2006 23:27:48 +0000 (23:27 +0000)]
r19404: fixed the LOCAL-ICONV test
(This used to be commit 0b3e83814bdf015064d7dd1f26cf9ec3ddadc7f4)

16 years agor19403: try to fix the crashes in the buildfarm related to timegm
Andrew Tridgell [Wed, 18 Oct 2006 22:33:20 +0000 (22:33 +0000)]
r19403: try to fix the crashes in the buildfarm related to timegm
(This used to be commit c4e1d2c5ae11acac7dd2cedca411b9b6be84962f)

16 years agor19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
Andrew Tridgell [Wed, 18 Oct 2006 21:45:46 +0000 (21:45 +0000)]
r19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
  by avoiding chain locks on each tdb_fetch() within the search

- use the tdb_get_seqnum() call to avoid re-reading the @BASEINFO
  record when it hasn't changed.

These speed up the LOCAL-DBSPEED test for ldb from 7k ops/sec to a bit
over 11k ops/sec
(This used to be commit 1347ad254eb8cd12ce22a5a2a37bec0a0ac8dbf1)

16 years agor19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
Andrew Tridgell [Wed, 18 Oct 2006 21:41:59 +0000 (21:41 +0000)]
r19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
call which does a read lock on all chains. These will be used to make
ldb searches more efficient
(This used to be commit de664ec1f8cf179f1d650563272c0de3f7636e2b)

16 years agor19400: fixed a valgrind error in the directory registry backend (name was
Andrew Tridgell [Wed, 18 Oct 2006 21:37:37 +0000 (21:37 +0000)]
r19400: fixed a valgrind error in the directory registry backend (name was
used after closedir(), which invalidates the name)
(This used to be commit d8af519c2d2fcab3baa822c5fd4c1079dcbd1de3)

16 years agor19398: more comments
Rafal Szczesniak [Wed, 18 Oct 2006 21:21:28 +0000 (21:21 +0000)]
r19398: more comments

rafal
(This used to be commit 2ed463e3cd36434c25833a0905e432b5b7f14e25)

16 years agor19397: Restrict databases which can be opened to a known set (currently only 'sam...
Derrell Lipman [Wed, 18 Oct 2006 18:55:50 +0000 (18:55 +0000)]
r19397: Restrict databases which can be opened to a known set (currently only 'sam.ldb')
(This used to be commit 023c3b02b9990eed90904d3ba7e506dfe3d28345)

16 years agor19396: Assume socketpair() is always available (cared for by libreplace) and
Jelmer Vernooij [Wed, 18 Oct 2006 16:47:35 +0000 (16:47 +0000)]
r19396: Assume socketpair() is always available (cared for by libreplace) and
create a socket for stderr.
(This used to be commit 16b6dbd713e306c88b5251e5092b8731749c5263)

16 years agor19395: Fix replacement function compilation.
Jelmer Vernooij [Wed, 18 Oct 2006 16:40:55 +0000 (16:40 +0000)]
r19395: Fix replacement function compilation.
(This used to be commit b79303f25180c777d9d09b2cdf852bf0a5eda70d)

16 years agor19393: Add replacement function for socketpair()
Jelmer Vernooij [Wed, 18 Oct 2006 16:08:22 +0000 (16:08 +0000)]
r19393: Add replacement function for socketpair()
(This used to be commit 448a3ecc0184bfa063db1eb3ae6dc16b8b792792)

16 years agor19392: Use torture_setting_* rather than lp_parm_* where possible.
Jelmer Vernooij [Wed, 18 Oct 2006 14:23:19 +0000 (14:23 +0000)]
r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6)

16 years agor19389: Remove samba3-specific checks: instead, always simply mark these tests as
Jelmer Vernooij [Wed, 18 Oct 2006 12:23:35 +0000 (12:23 +0000)]
r19389: Remove samba3-specific checks: instead, always simply mark these tests as
known failing.
(This used to be commit 3855ec9dcaa694fffa1f2a24205d490708d12750)

16 years agor19388: Start running all LOCAL-* tests but list some of them as known failing.
Jelmer Vernooij [Wed, 18 Oct 2006 10:39:07 +0000 (10:39 +0000)]
r19388: Start running all LOCAL-* tests but list some of them as known failing.
(This used to be commit bfa0fbfe94759bb120a4610f333c0beb940e3d76)

16 years agor19387: Exit with 0 if failures were expected
Jelmer Vernooij [Wed, 18 Oct 2006 10:03:30 +0000 (10:03 +0000)]
r19387: Exit with 0 if failures were expected
(This used to be commit b4fc06aeafa3ed8460759409a72b4de43a534d62)

16 years agor19384: ldbbrowse now has all basic functionality.
Derrell Lipman [Wed, 18 Oct 2006 00:35:56 +0000 (00:35 +0000)]
r19384: ldbbrowse now has all basic functionality.

Issues left for the enterprising developers:

  - Selection of the ldb file to open.  This version always browses sam.ldb.

  - When issuing a search which returns a huge amount of data, firefox times
    out while adding the data to the page.  The ldb functions on the server
    should be upgraded to allow providing a starting offset in the result set,
    and a limit of how many results to return.  The application can then issue
    multiple requests if necessary, to limit the amount of processing needed
    to handle any single result set.

Next step for me is to make it look more like a Samba application and less
like a qooxdoo example application.  Per Tridge's request, I'll leave the
debug console on the page.

Derrell
(This used to be commit 41ed250e020a0860d1769a3144ec7a153f138b57)

16 years agor19383: pass only the base filename of an ldb file to be opened; allow server to...
Derrell Lipman [Wed, 18 Oct 2006 00:29:26 +0000 (00:29 +0000)]
r19383: pass only the base filename of an ldb file to be opened; allow server to prepend path where it's located (private_dir)
(This used to be commit 5a21c97b73a896dbba0d814c2226e17a67034802)

16 years agor19382: latest qooxdoo runtime build
Derrell Lipman [Wed, 18 Oct 2006 00:28:05 +0000 (00:28 +0000)]
r19382: latest qooxdoo runtime build
(This used to be commit 7789ad2372ce5f6cca287bf31d9d08979112a8c4)

16 years agor19381: Print out the specific tests that failed after a smbtorture run.
Jelmer Vernooij [Tue, 17 Oct 2006 22:06:43 +0000 (22:06 +0000)]
r19381: Print out the specific tests that failed after a smbtorture run.

Support listing known failures as a list of wildcards in the file
`KNOWN_FAILURES'.
(This used to be commit 23f66efd564d1ad549fc0cd60348f54808f5cafa)

16 years agor19380: forgot to add home drive testing as well as home directory...
Rafal Szczesniak [Tue, 17 Oct 2006 20:56:46 +0000 (20:56 +0000)]
r19380: forgot to add home drive testing as well as home directory...

rafal
(This used to be commit 732c22071e78f16fd0731635ca4b3e093d49078a)

16 years agor19379: add testing home directory field to the samr tests.
Rafal Szczesniak [Tue, 17 Oct 2006 20:32:01 +0000 (20:32 +0000)]
r19379: add testing home directory field to the samr tests.

rafal
(This used to be commit 4dfd1d50274bc1ff539782e9bfdb2b7b20275d06)

16 years agor19378: Add another type of test result 'error'
Jelmer Vernooij [Tue, 17 Oct 2006 19:36:55 +0000 (19:36 +0000)]
r19378: Add another type of test result 'error'
(This used to be commit 77d13056bf437de77bfc94e21e9c945928e7f521)

16 years agor19377: Simplify report functions.
Jelmer Vernooij [Tue, 17 Oct 2006 19:06:50 +0000 (19:06 +0000)]
r19377: Simplify report functions.
(This used to be commit 0061f3c47e95f07461837c4051cf129b18961b56)

16 years agor19376: Remove unused helper function.
Jelmer Vernooij [Tue, 17 Oct 2006 18:22:38 +0000 (18:22 +0000)]
r19376: Remove unused helper function.
(This used to be commit 88c589940dfbc04c747cea4f97c84142ea139050)

16 years agor19375: very basic helper script to build ldb standalone
Simo Sorce [Tue, 17 Oct 2006 17:16:50 +0000 (17:16 +0000)]
r19375: very basic helper script to build ldb standalone
(This used to be commit b4c8bf7398cd8a9a2132dd4b04a0ea8004e7f1b0)

16 years agor19373: Merge changes from subunit branch: Convert libreplace testsuite to a
Jelmer Vernooij [Tue, 17 Oct 2006 14:54:47 +0000 (14:54 +0000)]
r19373: Merge changes from subunit branch: Convert libreplace testsuite to a
standalone program that speaks subunit.
(This used to be commit 48d316e7594dfc29b8e6a710e32bb5a6a036b7cf)

16 years agor19372: Fix segfault for ui's that don't support comments.
Jelmer Vernooij [Tue, 17 Oct 2006 13:19:55 +0000 (13:19 +0000)]
r19372: Fix segfault for ui's that don't support comments.
(This used to be commit 0eef6dabc6b6a4e883654c78a0b88cebb6b3d7cd)

16 years agor19370: Handle errors if talloc_reference fails
Simo Sorce [Tue, 17 Oct 2006 12:35:33 +0000 (12:35 +0000)]
r19370: Handle errors if talloc_reference fails
(This used to be commit 05134a90e3ff0e4039dbd34c52f824bc666feb11)

16 years agor19369: - we need to set the target:samba3 before calling torture_init()
Stefan Metzmacher [Tue, 17 Oct 2006 12:06:20 +0000 (12:06 +0000)]
r19369: - we need to set the target:samba3 before calling torture_init()
  otherwise BASE-DELETE will run all tests

- call ldb_global_init() directly after torture_init()
  this isn't strictly needed but looks better

metze
(This used to be commit 0c26c2aefdb603c5ffc87e9c0db0e9b2b34ec0ab)

16 years agor19367: Solaris needs <sys/filio.h> for FIONREAD.
Love Hörnquist Åstrand [Tue, 17 Oct 2006 09:35:45 +0000 (09:35 +0000)]
r19367: Solaris needs <sys/filio.h> for FIONREAD.
(This used to be commit e2866ce78851a84c937408c0781fcc1e7107f663)

16 years agor19366: don't fail async echo tests due to rounding errors
Andrew Tridgell [Tue, 17 Oct 2006 06:07:54 +0000 (06:07 +0000)]
r19366: don't fail async echo tests due to rounding errors
(This used to be commit 9389ca13a38b9a3ba6f3533293ab0d0c8c06a30a)

16 years agor19365: fixed a memory leak in the ldb attribute handling
Andrew Tridgell [Tue, 17 Oct 2006 05:50:01 +0000 (05:50 +0000)]
r19365: fixed a memory leak in the ldb attribute handling
(This used to be commit d7e07685164141f8fb2c2a6258e1fcb46ff9d06c)

16 years agor19364: Fix build for 'regular' installs.
Jelmer Vernooij [Tue, 17 Oct 2006 01:40:29 +0000 (01:40 +0000)]
r19364: Fix build for 'regular' installs.
(This used to be commit 916413097d2ca7b71c06cd701f09bc3b9fc06cfc)

16 years agor19363: - don't need to store the baseinfo message after cache load
Andrew Tridgell [Tue, 17 Oct 2006 01:21:25 +0000 (01:21 +0000)]
r19363: - don't need to store the baseinfo message after cache load
(This used to be commit 8c091bcdece5c17073838ad2367f3f4e22e97c31)

16 years agor19362: - don't need to store the baseinfo message after cache load
Andrew Tridgell [Tue, 17 Oct 2006 01:21:02 +0000 (01:21 +0000)]
r19362: - don't need to store the baseinfo message after cache load

- set better names on talloc structures in ldb modules, making leaks
  easier to track down
(This used to be commit 3bf76db42dc6dde5d71083216dba819869b31c75)

16 years agor19361: added a comment
Andrew Tridgell [Tue, 17 Oct 2006 01:18:47 +0000 (01:18 +0000)]
r19361: added a comment
(This used to be commit 1581babfb5a5bbbfc2706dbec9b37b03fe9a5af6)

16 years agor19360: improve the ldb leak detector - it now takes into account the number
Andrew Tridgell [Tue, 17 Oct 2006 01:18:32 +0000 (01:18 +0000)]
r19360: improve the ldb leak detector - it now takes into account the number
of blocks used at connect time (which depends on how many modules are
loaded)
(This used to be commit e3aa03bf1f7c7b770606f5e860fce11b4402fc84)

16 years agor19359: More portable way of figuring out whether something is a directory
Jelmer Vernooij [Tue, 17 Oct 2006 01:14:01 +0000 (01:14 +0000)]
r19359: More portable way of figuring out whether something is a directory
(This used to be commit 96dff03a2b357f937daa4296d4cedd0249f68ece)

16 years agor19358: Use subunit tests from the right location (from
Jelmer Vernooij [Tue, 17 Oct 2006 00:56:29 +0000 (00:56 +0000)]
r19358: Use subunit tests from the right location (from
$src/bin/torture when developing, $LIBDIR/torture when installed)
(This used to be commit 4ae6380e6bb48e27e9947e149b3d079b3e293cc0)

16 years agor19357: More ldbbrowse work.
Derrell Lipman [Tue, 17 Oct 2006 00:27:24 +0000 (00:27 +0000)]
r19357: More ldbbrowse work.

The 'Browse' tab is now doing something seemingly fairly reasonable.  It's
entirely usable.  Still pending is dealing with attribute values whose length
exceeds the width of the column (even if dynamic resizing of the column is
inadequate).  A tooltip which pops up would be nice, but seems difficult to
achieve with the Table implementation since it's 'virtual' and the whole table
is one widget.

Derrell
(This used to be commit ec63bd551b69c751290cef3376e2d80dda80918a)

16 years agor19356: Reapply portability fix..
Jelmer Vernooij [Tue, 17 Oct 2006 00:01:41 +0000 (00:01 +0000)]
r19356: Reapply portability fix..
(This used to be commit a48d1b2d16cb4edf5e10937427b1a757e0c5b822)

16 years agor19352: Oops, missed a few changes...
Jelmer Vernooij [Mon, 16 Oct 2006 23:25:19 +0000 (23:25 +0000)]
r19352: Oops, missed a few changes...
(This used to be commit 73f1d937808976bc0f87b6490ab72632f038ddbd)

16 years agor19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Jelmer Vernooij [Mon, 16 Oct 2006 23:09:15 +0000 (23:09 +0000)]
r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
(This used to be commit bde00d97068d559b025ab131ff698a82430d14b3)

16 years agor19347: Add socketpair()
Jelmer Vernooij [Mon, 16 Oct 2006 21:39:07 +0000 (21:39 +0000)]
r19347: Add socketpair()
(This used to be commit 8a8e974d2150d00855ccafef02b7ef2607921ea0)

16 years agor19346: AF_LOCAL isn't defined on all platforms.
Jelmer Vernooij [Mon, 16 Oct 2006 21:32:36 +0000 (21:32 +0000)]
r19346: AF_LOCAL isn't defined on all platforms.
(This used to be commit e9bd6f28d830ed7ead1412a26b532538cd1450e0)

16 years agor19344: run smbclient and cifsdd under valgrind and pass the correct configuration
Stefan Metzmacher [Mon, 16 Oct 2006 20:20:03 +0000 (20:20 +0000)]
r19344: run smbclient and cifsdd under valgrind and pass the correct configuration
to get useful backtraces in the build-farm

metze
(This used to be commit fa030e45985c39a7e4b6be032e817f1291357a45)

16 years agor19343: Add support for external scripts/binaries that write results using the
Jelmer Vernooij [Mon, 16 Oct 2006 20:05:19 +0000 (20:05 +0000)]
r19343: Add support for external scripts/binaries that write results using the
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that
can't depend on -ltorture into smbtorture. The protocol is very simple:

- write "comments" to stderr

Example output on stdout:
test: foo
success: foo
test: bar
success: bar
test: blah
failure: blah [
dummy.c:30: Expression 1 != 2 failed!
]
test: blie
skip: blie [
Iconv support not built in
]

I've already converted the talloc testsuite.
(This used to be commit e1742c14a247fabba969f8698108e73997d3f420)

16 years agor19341: ndr_push_union_blob() needs the same fix as ndr_push_struct_blob()
Stefan Metzmacher [Mon, 16 Oct 2006 14:32:07 +0000 (14:32 +0000)]
r19341: ndr_push_union_blob() needs the same fix as ndr_push_struct_blob()

metze
(This used to be commit 5c766ad48d0790b7ae865408fd0dbdb1769da2d8)

16 years agor19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
Jelmer Vernooij [Mon, 16 Oct 2006 13:06:41 +0000 (13:06 +0000)]
r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305776325c75081356309115f445a7218)

16 years agor19338: leak on error
Simo Sorce [Mon, 16 Oct 2006 12:33:21 +0000 (12:33 +0000)]
r19338: leak on error
(This used to be commit 326389afed0521133ac07339bd5e2bfbf8d80d0a)

16 years agor19337: never alloc on module unless you mean to attach a context to
Simo Sorce [Mon, 16 Oct 2006 12:30:02 +0000 (12:30 +0000)]
r19337: never alloc on module unless you mean to attach a context to
it to keep the data around as long as the module lives
(This used to be commit d2073c1f7e1bc674358df5da0dc09e183b4b8712)

16 years agor19336: Merge from release branch: new Mapped OIDs, in own subtree.
Andrew Bartlett [Mon, 16 Oct 2006 12:29:31 +0000 (12:29 +0000)]
r19336: Merge from release branch: new Mapped OIDs, in own subtree.

Andrew Bartlett
(This used to be commit ac5abff4b66619c29357adb7e013700bdf686709)

16 years agor19334: Commit commented provisioning code to activate the schema
Simo Sorce [Mon, 16 Oct 2006 12:05:44 +0000 (12:05 +0000)]
r19334: Commit commented provisioning code to activate the schema
(This used to be commit 57ee79c15579d1bbe7c0d3202b84a06b75320e40)

16 years agor19333: commit module changes I made some time ago before I loose them
Simo Sorce [Mon, 16 Oct 2006 12:05:06 +0000 (12:05 +0000)]
r19333: commit module changes I made some time ago before I loose them
(This used to be commit 524ec78086597e0507cb6ce307155ef1b6a47836)

16 years agor19332: ldb_parse_tree leaks
Simo Sorce [Mon, 16 Oct 2006 12:03:55 +0000 (12:03 +0000)]
r19332: ldb_parse_tree leaks
(This used to be commit 3e0e2787c1da1c3831e21b163e1370001d725a3d)

16 years agor19331: Respect the mem hierarchy
Simo Sorce [Mon, 16 Oct 2006 11:58:19 +0000 (11:58 +0000)]
r19331: Respect the mem hierarchy
(This used to be commit de45756ea6ee0893247ba74738d25b3699f42ffa)

16 years agor19330: Fix memleaks
Simo Sorce [Mon, 16 Oct 2006 11:57:44 +0000 (11:57 +0000)]
r19330: Fix memleaks
(This used to be commit f163f422e3f201d8b0e22538949eccf0f7e62143)

16 years agor19329: fixed a leak in the password hash module
Andrew Tridgell [Mon, 16 Oct 2006 11:23:40 +0000 (11:23 +0000)]
r19329: fixed a leak in the password hash module
(This used to be commit 3f48bcb0585684686ba7601eb7614589a1bc2f5d)

16 years agor19328: another leak plugged ....
Andrew Tridgell [Mon, 16 Oct 2006 11:12:13 +0000 (11:12 +0000)]
r19328: another leak plugged ....
(This used to be commit f57535b9c2214e58c71084fcb9d74848e7d26b89)

16 years agor19327: fixed a leak in ldif_canonicalise_objectCategory()
Andrew Tridgell [Mon, 16 Oct 2006 11:03:48 +0000 (11:03 +0000)]
r19327: fixed a leak in ldif_canonicalise_objectCategory()
(This used to be commit 5cc92d915b7442d2eebc4b66ab89bbd15b96a493)

16 years agor19326: don't leak a ndr_push structure on ndr_push_struct_blob()
Andrew Tridgell [Mon, 16 Oct 2006 11:03:12 +0000 (11:03 +0000)]
r19326: don't leak a ndr_push structure on ndr_push_struct_blob()
(This used to be commit 9817cc235c5fd787855c60fa58f68b14f78cdb94)

16 years agor19325: leak fix from lha
Andrew Tridgell [Mon, 16 Oct 2006 10:51:23 +0000 (10:51 +0000)]
r19325: leak fix from lha
(This used to be commit 248f3265e6339f279691be5d17ca4ce733c6590d)

16 years agor19324: fixed a leak on deleting records when no index is in place
Andrew Tridgell [Mon, 16 Oct 2006 10:12:43 +0000 (10:12 +0000)]
r19324: fixed a leak on deleting records when no index is in place
(This used to be commit 0824b3b8c1003064b0f2c5a3f084f3e711155e8c)

16 years agor19323: fixed a leak in the ldif parse code
Andrew Tridgell [Mon, 16 Oct 2006 09:28:39 +0000 (09:28 +0000)]
r19323: fixed a leak in the ldif parse code
(This used to be commit 06387e1cf2d12a74e15a6cdf19e83a28c75cb5fd)

16 years agor19322: fix a minor memory leak in the ltdb cache code
Andrew Tridgell [Mon, 16 Oct 2006 09:08:43 +0000 (09:08 +0000)]
r19322: fix a minor memory leak in the ltdb cache code
(This used to be commit e03ed5822a690e2d151107f2edb9b4f1d3a1e1b9)

16 years agor19321: Merge from release branch:
Andrew Bartlett [Mon, 16 Oct 2006 07:32:22 +0000 (07:32 +0000)]
r19321: Merge from release branch:

Always set the krb5key from the ntPwdHash, even if we don't have the
cleartext password in sambaPassword.  This fixes kerberos after a
vampire.

Andrew Bartlett
(This used to be commit 1d4d2271c9b944db3a9a2eba971aec5bcd9cf100)

16 years agor19318: Because we don't test the vampire code in SWAT very regularly, it bit-rotted.
Andrew Bartlett [Mon, 16 Oct 2006 03:53:12 +0000 (03:53 +0000)]
r19318: Because we don't test the vampire code in SWAT very regularly, it bit-rotted.

Fix up interfaces and interaction between the two..

Andrew Bartlett
(This used to be commit 9b77d285d8cd8999547c0d17e97681d236acbdb0)

16 years agor19315: Record some OID allocations.
Andrew Bartlett [Mon, 16 Oct 2006 03:19:11 +0000 (03:19 +0000)]
r19315: Record some OID allocations.

Andrew Bartlett
(This used to be commit 0ceffb52eb218cd2beff0054679a07f137f0f23a)

16 years agor19314: Commit tridge's fixes for a big mem leak in ltdb I introduced
Simo Sorce [Mon, 16 Oct 2006 03:15:41 +0000 (03:15 +0000)]
r19314: Commit tridge's fixes for a big mem leak in ltdb I introduced
when the code has been changed to be async.
With the other committed fixes now this works.
(This used to be commit 49fc640b5c0398516ac3a9e3f7c55205cd60b1de)

16 years agor19313: Don't mess with hierarchies!!
Simo Sorce [Mon, 16 Oct 2006 03:12:48 +0000 (03:12 +0000)]
r19313: Don't mess with hierarchies!!
There is a reason why we use them :-)
(This used to be commit e3b7e91299559ddc7f300be53785d313a4aa90fc)

16 years agor19312: This should fix a nasty bug with values and names being freed before the...
Simo Sorce [Mon, 16 Oct 2006 02:45:18 +0000 (02:45 +0000)]
r19312: This should fix a nasty bug with values and names being freed before the results where used.
Seem that el is hanging out of a request, and the target is put on the final results.

Still one to catch and fix, but this seem to cure most of them
(This used to be commit bfeaa08fde805439dbda974be6fcb692957b00f1)

16 years agor19311: Try to keep the schema map files fairly similar (hope for less weird bugs).
Andrew Bartlett [Mon, 16 Oct 2006 01:38:00 +0000 (01:38 +0000)]
r19311: Try to keep the schema map files fairly similar (hope for less weird bugs).

Andrew Bartlett
(This used to be commit a1f14d10fd0779eba244d63529600556ba9e9292)

16 years agor19310: Add another conflicting oid
Andrew Bartlett [Mon, 16 Oct 2006 01:36:22 +0000 (01:36 +0000)]
r19310: Add another conflicting oid

Cope with there being no attributes to skip in the ad2oLscheam tool

Andrew Bartlett
(This used to be commit 942d7ad0c3534770ad05977b180e1c8111a5b6a6)

16 years agor19309: Split out checks for LDB_SUCCESS from checks for the expected number
Andrew Bartlett [Mon, 16 Oct 2006 01:20:31 +0000 (01:20 +0000)]
r19309: Split out checks for LDB_SUCCESS from checks for the expected number
of returned entries.

Andrew Bartlett
(This used to be commit 84efd9ecd994b53817dde8c1ad995afb7ebc8192)

16 years agor19308: Merge samsync fixes from SAMBA_4_0_RELEASE
Andrew Bartlett [Mon, 16 Oct 2006 01:19:01 +0000 (01:19 +0000)]
r19308: Merge samsync fixes from SAMBA_4_0_RELEASE

Andrew Bartlett
(This used to be commit 331003239972d80864211377e864f7e469bd3d77)

16 years agor19306: ldbbrowse: handle input of Base and Scope in search tab
Derrell Lipman [Mon, 16 Oct 2006 01:03:43 +0000 (01:03 +0000)]
r19306: ldbbrowse: handle input of Base and Scope in search tab
(This used to be commit 6536e5a3c0f2fd3c20099fc5a53345ceadc2b49f)

16 years agor19305: Potential memleak on the ldb_context if we don't use a temp mem context
Simo Sorce [Mon, 16 Oct 2006 01:01:37 +0000 (01:01 +0000)]
r19305: Potential memleak on the ldb_context if we don't use a temp mem context
(This used to be commit c989dfbe18a2f700e952f478e258bd626c9eb2f5)

16 years agor19304: If you really want to look at the contents undef this one
Simo Sorce [Mon, 16 Oct 2006 01:00:47 +0000 (01:00 +0000)]
r19304: If you really want to look at the contents undef this one
(This used to be commit fe20ac404d654abe31729664584391f3b3cd0214)

16 years agor19303: It seem ok to have around this amount of blocks hanging out of an ldb context...
Simo Sorce [Mon, 16 Oct 2006 01:00:04 +0000 (01:00 +0000)]
r19303: It seem ok to have around this amount of blocks hanging out of an ldb context for sam.ldb
(This used to be commit 5861ff69cc929c553e2c828ff42761cec6647d79)

16 years agor19299: Fix possible memleaks
Simo Sorce [Sun, 15 Oct 2006 23:14:19 +0000 (23:14 +0000)]
r19299: Fix possible memleaks
(This used to be commit 6fad80bb09113a60689061a2de67711c9924708b)

16 years agor19298: make sure torture_fail() gives a useful message
Andrew Tridgell [Sun, 15 Oct 2006 21:42:45 +0000 (21:42 +0000)]
r19298: make sure torture_fail() gives a useful message

Jelmer, is there a better approach for this?
(This used to be commit 67e2cf921709e0833362cb3b1bd5558f3c359033)

16 years agor19297: fixed a leak in the ejs ldb interface
Andrew Tridgell [Sun, 15 Oct 2006 21:40:49 +0000 (21:40 +0000)]
r19297: fixed a leak in the ejs ldb interface
(This used to be commit 6978225ffcc12ffdda0d3404e855219808c0597c)

16 years agor19296: added a leak detector to ldb_wrap_connect()
Andrew Tridgell [Sun, 15 Oct 2006 21:31:58 +0000 (21:31 +0000)]
r19296: added a leak detector to ldb_wrap_connect()

this makes 'make test' _very_ noisy, apologies for that, but nearly
all the noise is real memory leaks, so if you don't like it then jump
in and help fix the leaks :)
(This used to be commit d791fd7b7b7a0a2674a70afe6cbbf0e3bd014544)

16 years agor19295: ldbbrowse: the search tab is now doing something vaguely reasonable.
Derrell Lipman [Sun, 15 Oct 2006 21:09:42 +0000 (21:09 +0000)]
r19295: ldbbrowse: the search tab is now doing something vaguely reasonable.
(This used to be commit 039069b3fd10e2ea614c385c6b432b235e1c226b)

16 years agor19294: a little speed tester for ldb/tdb
Andrew Tridgell [Sun, 15 Oct 2006 20:53:20 +0000 (20:53 +0000)]
r19294: a little speed tester for ldb/tdb

I wrote this to see if using a ldb for idmap store (the equivalent of
winbindd_idmap.tdb) makes sense. It's a long lived database that
administrators may wish to edit, so ldb makes sense, but at the moment
ldb is too slow. This test will help us speed it up.
(This used to be commit 10f8260455a55530f5701a136af8fa8b05ca8532)

16 years agor19293: Add RPC-SAMBA3-WINREG, the start of a test of what Samba3 is able to perform
Volker Lendecke [Sun, 15 Oct 2006 16:17:17 +0000 (16:17 +0000)]
r19293: Add RPC-SAMBA3-WINREG, the start of a test of what Samba3 is able to perform
right now.

Volker
(This used to be commit f381232c3ad032fcffb37d68d005e94cb2c95971)

16 years agor19289: fixed a memory leak in ldb_dn_string_compose()
Andrew Tridgell [Sun, 15 Oct 2006 10:11:15 +0000 (10:11 +0000)]
r19289: fixed a memory leak in ldb_dn_string_compose()
(This used to be commit 669aa1424c7a931f57856af0cd4a6f6f4a60b823)

16 years agor19282: make the recent qooxdoo work that Derrell has done available via the
Andrew Tridgell [Sat, 14 Oct 2006 21:02:38 +0000 (21:02 +0000)]
r19282: make the recent qooxdoo work that Derrell has done available via the
main menu
(This used to be commit b0fee976edd35c35b315637253297169afac35ab)

16 years agor19281: Generalize what we do for the RAW-QFILEINFO test call so that the same process
Brad Henry [Sat, 14 Oct 2006 20:27:33 +0000 (20:27 +0000)]
r19281: Generalize what we do for the RAW-QFILEINFO test call so that the same process
is used for other tests that operate on a share when run against windows.
(This used to be commit 3d0cadb303fe9db49289d300a1c9fca44eee9d33)

16 years agor19280: Missed renaming a remove_qfileinfo_test() function call.
Brad Henry [Sat, 14 Oct 2006 20:21:33 +0000 (20:21 +0000)]
r19280: Missed renaming a remove_qfileinfo_test() function call.
(This used to be commit 059d52167cbc36d9dbf17b7a9e6463700fa4749d)

16 years agor19279: These setup and cleanup functions are general enough for any test which needs
Brad Henry [Sat, 14 Oct 2006 20:18:53 +0000 (20:18 +0000)]
r19279: These setup and cleanup functions are general enough for any test which needs
a share to operate on, not just the qfileinfo test, so now they are named
more appropriately.
(This used to be commit eb16d5324d6e1f4e4b33993e23a6446c3289a85f)

16 years agor19278: Change the delete_directory() expect function so that rmdir will
Brad Henry [Sat, 14 Oct 2006 19:25:14 +0000 (19:25 +0000)]
r19278: Change the delete_directory() expect function so that rmdir will
automatically remove any subdirs and files of the directory to be deleted.
(This used to be commit a41eefaaa738177f55d93b227f341f903a902939)

16 years agor19277: This commit adds support to run the smbtorture RPC-ASYNCBIND RPC-ATSVC
Brad Henry [Sat, 14 Oct 2006 14:50:30 +0000 (14:50 +0000)]
r19277: This commit adds support to run the smbtorture RPC-ASYNCBIND RPC-ATSVC
RPC-DSSETUP RPC-EPMAPPER RPC-INITSHUTDOWN RPC-LSA-GETUSER RPC-MULTIBIND RPC-ROT
RPC-SECRETS RPC-SRVSVC RPC-SVCCTL  RPC-WKSSVC tests against windows, either
by 'make wintest' or in the build farm.

I was surprised when RPC-EVENTLOG and RPC-LSA failed, so i'll investigate today.
(This used to be commit 542bddacc8a57d5486d0b721ddd9357179b597b5)

16 years agor19276: remove unused file
Stefan Metzmacher [Sat, 14 Oct 2006 10:36:14 +0000 (10:36 +0000)]
r19276: remove unused file

metze
(This used to be commit bd4cd24a9dc370552a90f267bdcabf4cb45c8507)

16 years agor19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
Andrew Tridgell [Sat, 14 Oct 2006 08:26:10 +0000 (08:26 +0000)]
r19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
fails
(This used to be commit 330a722f1330059cbba19f99210a1a5a7c773a36)

16 years agor19273: - fixed error handling with the ldap backend
Andrew Tridgell [Sat, 14 Oct 2006 04:43:51 +0000 (04:43 +0000)]
r19273: - fixed error handling with the ldap backend

- propogate errors to the ldbadd command line tool

- use the rdn_name module when testing the tdb backend to allow the
  same test code to correctly test the ldap and non-ldap backends
(This used to be commit dd82c474a123d90329bda653a4cb73c93e087b15)

16 years agor19266: Add a target_hostname element to the binding struct. This allows us
Andrew Bartlett [Fri, 13 Oct 2006 13:01:48 +0000 (13:01 +0000)]
r19266: Add a target_hostname element to the binding struct.  This allows us
to perform a lookup once, resolve the name to an IP, while still
communicating the full name to the lower layers, for kerberos etc.

This fixes 'net samdump', which was failing due to the schannel target
name being *smbserver.

Andrew Bartlett
(This used to be commit 0546f487f4cc99b5549dc1e457ea243d4bd66333)