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
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)
Rafal Szczesniak [Wed, 18 Oct 2006 21:21:28 +0000 (21:21 +0000)]
r19398: more comments
rafal
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')
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.
Jelmer Vernooij [Wed, 18 Oct 2006 16:40:55 +0000 (16:40 +0000)]
r19395: Fix replacement function compilation.
Jelmer Vernooij [Wed, 18 Oct 2006 16:08:22 +0000 (16:08 +0000)]
r19393: Add replacement function for socketpair()
Jelmer Vernooij [Wed, 18 Oct 2006 14:23:19 +0000 (14:23 +0000)]
r19392: Use torture_setting_* rather than lp_parm_* where possible.
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.
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.
Jelmer Vernooij [Wed, 18 Oct 2006 10:03:30 +0000 (10:03 +0000)]
r19387: Exit with 0 if failures were expected
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
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)
Derrell Lipman [Wed, 18 Oct 2006 00:28:05 +0000 (00:28 +0000)]
r19382: latest qooxdoo runtime build
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'.
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
Rafal Szczesniak [Tue, 17 Oct 2006 20:32:01 +0000 (20:32 +0000)]
r19379: add testing home directory field to the samr tests.
rafal
Jelmer Vernooij [Tue, 17 Oct 2006 19:36:55 +0000 (19:36 +0000)]
r19378: Add another type of test result 'error'
Jelmer Vernooij [Tue, 17 Oct 2006 19:06:50 +0000 (19:06 +0000)]
r19377: Simplify report functions.
Jelmer Vernooij [Tue, 17 Oct 2006 18:22:38 +0000 (18:22 +0000)]
r19376: Remove unused helper function.
Simo Sorce [Tue, 17 Oct 2006 17:16:50 +0000 (17:16 +0000)]
r19375: very basic helper script to build ldb standalone
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.
Jelmer Vernooij [Tue, 17 Oct 2006 13:19:55 +0000 (13:19 +0000)]
r19372: Fix segfault for ui's that don't support comments.
Simo Sorce [Tue, 17 Oct 2006 12:35:33 +0000 (12:35 +0000)]
r19370: Handle errors if talloc_reference fails
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
Love Hörnquist Åstrand [Tue, 17 Oct 2006 09:35:45 +0000 (09:35 +0000)]
r19367: Solaris needs <sys/filio.h> for FIONREAD.
Andrew Tridgell [Tue, 17 Oct 2006 06:07:54 +0000 (06:07 +0000)]
r19366: don't fail async echo tests due to rounding errors
Andrew Tridgell [Tue, 17 Oct 2006 05:50:01 +0000 (05:50 +0000)]
r19365: fixed a memory leak in the ldb attribute handling
Jelmer Vernooij [Tue, 17 Oct 2006 01:40:29 +0000 (01:40 +0000)]
r19364: Fix build for 'regular' installs.
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
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
Andrew Tridgell [Tue, 17 Oct 2006 01:18:47 +0000 (01:18 +0000)]
r19361: added a comment
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)
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
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)
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
Jelmer Vernooij [Tue, 17 Oct 2006 00:01:41 +0000 (00:01 +0000)]
r19356: Reapply portability fix..
Jelmer Vernooij [Mon, 16 Oct 2006 23:25:19 +0000 (23:25 +0000)]
r19352: Oops, missed a few changes...
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.
Jelmer Vernooij [Mon, 16 Oct 2006 21:39:07 +0000 (21:39 +0000)]
r19347: Add socketpair()
Jelmer Vernooij [Mon, 16 Oct 2006 21:32:36 +0000 (21:32 +0000)]
r19346: AF_LOCAL isn't defined on all platforms.
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
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.
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
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.
Simo Sorce [Mon, 16 Oct 2006 12:33:21 +0000 (12:33 +0000)]
r19338: leak on error
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
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
Simo Sorce [Mon, 16 Oct 2006 12:05:44 +0000 (12:05 +0000)]
r19334: Commit commented provisioning code to activate the schema
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
Simo Sorce [Mon, 16 Oct 2006 12:03:55 +0000 (12:03 +0000)]
r19332: ldb_parse_tree leaks
Simo Sorce [Mon, 16 Oct 2006 11:58:19 +0000 (11:58 +0000)]
r19331: Respect the mem hierarchy
Simo Sorce [Mon, 16 Oct 2006 11:57:44 +0000 (11:57 +0000)]
r19330: Fix memleaks
Andrew Tridgell [Mon, 16 Oct 2006 11:23:40 +0000 (11:23 +0000)]
r19329: fixed a leak in the password hash module
Andrew Tridgell [Mon, 16 Oct 2006 11:12:13 +0000 (11:12 +0000)]
r19328: another leak plugged ....
Andrew Tridgell [Mon, 16 Oct 2006 11:03:48 +0000 (11:03 +0000)]
r19327: fixed a leak in ldif_canonicalise_objectCategory()
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()
Andrew Tridgell [Mon, 16 Oct 2006 10:51:23 +0000 (10:51 +0000)]
r19325: leak fix from lha
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
Andrew Tridgell [Mon, 16 Oct 2006 09:28:39 +0000 (09:28 +0000)]
r19323: fixed a leak in the ldif parse 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
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
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
Andrew Bartlett [Mon, 16 Oct 2006 03:19:11 +0000 (03:19 +0000)]
r19315: Record some OID allocations.
Andrew Bartlett
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.
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 :-)
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
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
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
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
Andrew Bartlett [Mon, 16 Oct 2006 01:19:01 +0000 (01:19 +0000)]
r19308: Merge samsync fixes from SAMBA_4_0_RELEASE
Andrew Bartlett
Derrell Lipman [Mon, 16 Oct 2006 01:03:43 +0000 (01:03 +0000)]
r19306: ldbbrowse: handle input of Base and Scope in search tab
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
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
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
Simo Sorce [Sun, 15 Oct 2006 23:14:19 +0000 (23:14 +0000)]
r19299: Fix possible memleaks
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?
Andrew Tridgell [Sun, 15 Oct 2006 21:40:49 +0000 (21:40 +0000)]
r19297: fixed a leak in the ejs ldb interface
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 :)
Derrell Lipman [Sun, 15 Oct 2006 21:09:42 +0000 (21:09 +0000)]
r19295: ldbbrowse: the search tab is now doing something vaguely reasonable.
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.
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
Andrew Tridgell [Sun, 15 Oct 2006 10:11:15 +0000 (10:11 +0000)]
r19289: fixed a memory leak in ldb_dn_string_compose()
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
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.
Brad Henry [Sat, 14 Oct 2006 20:21:33 +0000 (20:21 +0000)]
r19280: Missed renaming a remove_qfileinfo_test() function call.
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.
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.
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.
Stefan Metzmacher [Sat, 14 Oct 2006 10:36:14 +0000 (10:36 +0000)]
r19276: remove unused file
metze
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
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
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
Andrew Bartlett [Fri, 13 Oct 2006 12:54:13 +0000 (12:54 +0000)]
r19265: It is not an error to set the target hostname to NULL.
Andrew Bartlett
Andrew Bartlett [Fri, 13 Oct 2006 09:44:55 +0000 (09:44 +0000)]
r19264: Clarify behaviour in ldb_search_callback() and provide more
information when modules fail to load.
Andrew Bartlett
Andrew Bartlett [Fri, 13 Oct 2006 09:14:43 +0000 (09:14 +0000)]
r19262: Don't DEBUG() an unitialised variable
Andrew Bartlett [Fri, 13 Oct 2006 07:25:51 +0000 (07:25 +0000)]
r19261: Fix use of unitialised variables. (The binding string is used, if not
NULL).
This showed up in a manual pre-TP3 test of the 'net samdump' code, and
shows the critical need for the windows testing infrustructure on the
build farm.
Andrew Bartlett
Derrell Lipman [Fri, 13 Oct 2006 02:49:16 +0000 (02:49 +0000)]
r19259: An ldb browser.
This has the layout complete so anyone interested can see what a qooxdoo
application might look like. It doesn't yet issue any JSON-RPC calls to do
anything useful (that's next), and it still has the appearance of a qooxdoo
test rather than something unique to Samba. I'll adjust the appearance later.
This layout is loosely (or not so loosely) based on 'gq'. A few things in
this layout won't apply to an ldb browser, but they're there for the time
being anyway until I decide exactly what to do with them.
Derrell
Andrew Bartlett [Fri, 13 Oct 2006 01:35:52 +0000 (01:35 +0000)]
r19258: Don't delete the contents of the partitions twice, and in particular
don't delete their contents until we have specified the new partition
locations.
However, preserve the important part of tridge's change, that is to
ensure that no database index is present when the mass delete occours.
In my testing, it is best to leave the index until the provision is
compleated.
Andrew Bartlett
Rafal Szczesniak [Thu, 12 Oct 2006 20:21:46 +0000 (20:21 +0000)]
r19256: add missing infolevel and fields to SetUserInfo call
that's why ntsrv and win2k3 srv could pass the net test
and we could not...
rafal