samba.git
16 years agor16571: - make push/pull_ascii()/_ucs() functions static,
Stefan Metzmacher [Tue, 27 Jun 2006 17:58:57 +0000 (17:58 +0000)]
r16571: - make push/pull_ascii()/_ucs() functions static,
  callers should use push/pull_string() functions with STR_ASCII or STR_UNICODE
- make the push/pull_ascii/ucs2/utf8_talloc() functions complete
  (they should be reduced to pull/push_string_talloc() later...)

metze
(This used to be commit b0af976187d2d46b7dbe5a532a5491476b459119)

16 years agor16569: - use push_string()
Stefan Metzmacher [Tue, 27 Jun 2006 17:55:02 +0000 (17:55 +0000)]
r16569: - use push_string()

metze
(This used to be commit f099fcb6e3a38d6df22cb3a0c7c666333e41f11b)

16 years agor16568: add parsing code for SMB2 SetInfo
Stefan Metzmacher [Tue, 27 Jun 2006 17:46:57 +0000 (17:46 +0000)]
r16568: add parsing code for SMB2 SetInfo

metze
(This used to be commit 70cc9928437d6edab3de5a858078870f510398d0)

16 years agor16566: add pull function for a site32/offset32 blob
Stefan Metzmacher [Tue, 27 Jun 2006 17:16:14 +0000 (17:16 +0000)]
r16566: add pull function for a site32/offset32 blob

metze
(This used to be commit 81702c36c28e9e32860c5d91887d2ad2121ce306)

16 years agor16561: - create version.h relative to srcdir
Stefan Metzmacher [Tue, 27 Jun 2006 11:07:55 +0000 (11:07 +0000)]
r16561: - create version.h relative to srcdir
- let version.h depend on VERSION
- add a rule to manualy regenerate version.h
  e.g. after a svn up

metze
(This used to be commit 7167579cbfcda0a130f9eaf80d4783f4bd134802)

16 years agor16560: print out the correct value
Stefan Metzmacher [Tue, 27 Jun 2006 10:55:19 +0000 (10:55 +0000)]
r16560: print out the correct value

metze
(This used to be commit 0e10282f89bffa29f75762ca4c3704ea150ce5ab)

16 years agor16558: Add make rule to generate version.h. Metze, can you please review?
James Peach [Tue, 27 Jun 2006 06:24:43 +0000 (06:24 +0000)]
r16558: Add make rule to generate version.h. Metze, can you please review?
(This used to be commit 47b6a3d7f37faba7f8defbaf9a406f4bdf431615)

16 years agor16557: Silently succeed when torture_register_suite is passed NULL.
James Peach [Tue, 27 Jun 2006 06:17:11 +0000 (06:17 +0000)]
r16557: Silently succeed when torture_register_suite is passed NULL.
(This used to be commit dbcb190aa0a687e62cc109ab6314aa705a0c7aca)

16 years agor16556: Add mkdtemp to libreplace. This is apparantly available on Linux
James Peach [Tue, 27 Jun 2006 05:49:09 +0000 (05:49 +0000)]
r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
and BSD systems, but it's not everywhere.
(This used to be commit b3d2512ed4fc8c378607bcc2dc241a1f77ab7197)

16 years agor16533: Perform a cleanup after testing. Also, add changed name argument.
Rafal Szczesniak [Mon, 26 Jun 2006 21:21:59 +0000 (21:21 +0000)]
r16533: Perform a cleanup after testing. Also, add changed name argument.
This test currently triggers internal corruption in ldb database,
according to status code returned. I'm investigating win servers
behaviour here.

rafal
(This used to be commit c73f4e11e4747b907dffafed09d354e12307435a)

16 years agor16532: Tell username from account name (source from target, when
Rafal Szczesniak [Mon, 26 Jun 2006 21:19:41 +0000 (21:19 +0000)]
r16532: Tell username from account name (source from target, when
changing).

rafal
(This used to be commit e5a50ca14a1ebc2fc6e18852264b5caac69fea1d)

16 years agor16531: Add a function preparing argument for modify user routine.
Rafal Szczesniak [Mon, 26 Jun 2006 21:18:45 +0000 (21:18 +0000)]
r16531: Add a function preparing argument for modify user routine.

rafal
(This used to be commit d91cbec2644030a6e7978dd2e2c854e9d7a3d313)

16 years agor16530: Send monitor messages only after successful receiving result of a stage.
Rafal Szczesniak [Mon, 26 Jun 2006 21:17:31 +0000 (21:17 +0000)]
r16530: Send monitor messages only after successful receiving result of a stage.

rafal
(This used to be commit e5dc6311633146e44063ba5eb20488468af75914)

16 years agor16529: Fix type.
Jelmer Vernooij [Mon, 26 Jun 2006 20:32:22 +0000 (20:32 +0000)]
r16529: Fix type.
(This used to be commit f9a9884c0da038f2a390444d1ab9219049f95cc3)

16 years agor16527: Add target argument for smbtorture.
Jelmer Vernooij [Mon, 26 Jun 2006 20:09:35 +0000 (20:09 +0000)]
r16527: Add target argument for smbtorture.
Remove duplicate unc path separator conversion.
Add prefix for tempdirs.
(This used to be commit 3763ed3092fa89558390a9721be8437a7c380790)

16 years agor16526: Add torture_setup_server() with test.
Jelmer Vernooij [Mon, 26 Jun 2006 19:30:00 +0000 (19:30 +0000)]
r16526: Add torture_setup_server() with test.
(This used to be commit 6a1ed8ad756b97f61d4af9df2c7a7d889a2d09ef)

16 years agor16525: Move selftest-specific code back to selftest.
Jelmer Vernooij [Mon, 26 Jun 2006 19:29:43 +0000 (19:29 +0000)]
r16525: Move selftest-specific code back to selftest.
(This used to be commit e659d772480ef9acb58f899f25f09f917cece30f)

16 years agor16524: Fix double evaluation.
Jelmer Vernooij [Mon, 26 Jun 2006 19:23:21 +0000 (19:23 +0000)]
r16524: Fix double evaluation.
(This used to be commit 93f7adfb140d9e77120dd197d05a8fdd50e768bd)

16 years agor16523: pass spoolss_XcvData calls to the ntptr backends...
Stefan Metzmacher [Mon, 26 Jun 2006 18:31:39 +0000 (18:31 +0000)]
r16523: pass spoolss_XcvData calls to the ntptr backends...
I wrote this code last year and found it in a working tree...

metze
(This used to be commit 9a685c5beff6936d354d541e875899d33b735ba9)

16 years agor16522: Move code to create the test data out of selftest.sh.
Jelmer Vernooij [Mon, 26 Jun 2006 17:43:39 +0000 (17:43 +0000)]
r16522: Move code to create the test data out of selftest.sh.
(This used to be commit 2c601df23f3390954bf77918e198b1d027e43b24)

16 years agor16520: move smb2srv_break_recv back to fileio.c
Stefan Metzmacher [Mon, 26 Jun 2006 15:24:10 +0000 (15:24 +0000)]
r16520: move smb2srv_break_recv back to fileio.c

metze
(This used to be commit cdee9b2168da47a38da769eb2b4f403bc4699dfe)

16 years agor16518: Split up torture_util.c in smb and non-smb specific parts.
Jelmer Vernooij [Mon, 26 Jun 2006 11:33:37 +0000 (11:33 +0000)]
r16518: Split up torture_util.c in smb and non-smb specific parts.
Add torture_temp_dir() function, with test.
(This used to be commit c9d287dc0e3f8fc4e8399cd5095ef38f2b9f40c6)

16 years agor16517: Get rid of pointless safe_free() (not SAFE_FREE()!) function.
Jelmer Vernooij [Mon, 26 Jun 2006 11:29:48 +0000 (11:29 +0000)]
r16517: Get rid of pointless safe_free() (not SAFE_FREE()!) function.
(This used to be commit 6bc91497827a66af6d9adf26c689e9cc458d8ecf)

16 years agor16516: Get rid of file_exists() as there already is a file_exist().
Jelmer Vernooij [Mon, 26 Jun 2006 11:23:06 +0000 (11:23 +0000)]
r16516: Get rid of file_exists() as there already is a file_exist().
(This used to be commit c4b3c2b18c6df43c8a4808fab72bc45439ba9421)

16 years agor16514: Fix build (not run!) of --enable-dso.
Jelmer Vernooij [Sun, 25 Jun 2006 22:42:12 +0000 (22:42 +0000)]
r16514: Fix build (not run!) of --enable-dso.
(This used to be commit cebabc7588b171f575f2193f4f6ead01b524acb2)

16 years agor16489: Because the torture/ui.h file isn't automaticly generated, the
Andrew Bartlett [Fri, 23 Jun 2006 21:05:45 +0000 (21:05 +0000)]
r16489: Because the torture/ui.h file isn't automaticly generated, the
prototypes in it need to use the PRINTF_ATTRIBUTE() macro, rather than
_PRINTF_ATTRIBUTE() (which becomes PRINTF_ATTRIBUTE() only in proto
files, but not C files).

This found a number of missing descriptions in the LOCAL-SOCKET test.

Andrew Bartlett
(This used to be commit 1009d55c8caa173e9998b38235c06b4ae4b30d80)

16 years agor16476: Error in composite functions implemented the 'old way' (single event handler,
Rafal Szczesniak [Thu, 22 Jun 2006 21:29:21 +0000 (21:29 +0000)]
r16476: Error in composite functions implemented the 'old way' (single event handler,
no continue functions) need to report an error by means of state only.
composite_error calls event handler function which frees the context and
state structure. This fixes a segfault in some cases (caught it on modifyuser
test).

rafal
(This used to be commit 9e800fd0cfda9e731905fc0f19781def5cdba89f)

16 years agor16469: do some smb2 tests
Stefan Metzmacher [Thu, 22 Jun 2006 17:50:02 +0000 (17:50 +0000)]
r16469: do some smb2 tests

metze
(This used to be commit 1ca34c90902d71d95ea2310286a591af86804d51)

16 years agor16468: implement SMB2_ALL_INFORMATION in the posix backend
Stefan Metzmacher [Thu, 22 Jun 2006 17:36:06 +0000 (17:36 +0000)]
r16468: implement SMB2_ALL_INFORMATION in the posix backend

metze
(This used to be commit 1bce493cbc003db37e9ea94c20019990e1eb785a)

16 years agor16467: implement SMB2 GetInfo server code
Stefan Metzmacher [Thu, 22 Jun 2006 17:35:04 +0000 (17:35 +0000)]
r16467: implement SMB2 GetInfo server code

metze
(This used to be commit 49b5b3cd58c41b67adfbb77b4244989fba6bcd2e)

16 years agor16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to return
Stefan Metzmacher [Thu, 22 Jun 2006 17:33:56 +0000 (17:33 +0000)]
r16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to return
0 eas, they should return an error:
NO_EAS_ON_FILE or NO_MORE_EAS

metze
(This used to be commit fdefec1de99273978345d4a183a9660bd741e045)

16 years agor16464: split client and server min/max protocol settings
Stefan Metzmacher [Thu, 22 Jun 2006 17:06:36 +0000 (17:06 +0000)]
r16464: split client and server min/max protocol settings

metze
(This used to be commit 6164d1e22e0545f558315591d49f862de06ea945)

16 years agor16463: TORTURE_NBENCH should be a module...
Stefan Metzmacher [Thu, 22 Jun 2006 17:00:11 +0000 (17:00 +0000)]
r16463: TORTURE_NBENCH should be a module...

thanks to jpeach!

metze
(This used to be commit fc63205e0c63b3e4767889e1a981736519d12deb)

16 years agor16457: fix typo
Stefan Metzmacher [Thu, 22 Jun 2006 07:59:42 +0000 (07:59 +0000)]
r16457: fix typo

metze
(This used to be commit 049ddc8a96da7a8fb0bbf1ef652c1963e9103d9b)

16 years agor16456: return on error...
Stefan Metzmacher [Thu, 22 Jun 2006 07:36:00 +0000 (07:36 +0000)]
r16456: return on error...

metze
(This used to be commit 44ab067d146503bd1cc008cf01c08b91fb14b204)

16 years agor16450: fix the build...
Stefan Metzmacher [Wed, 21 Jun 2006 21:28:07 +0000 (21:28 +0000)]
r16450: fix the build...

metze
(This used to be commit 316f3312d228a8c29185bf38c93c7f3aa1c6333e)

16 years agor16449: move some code to a generic place
Stefan Metzmacher [Wed, 21 Jun 2006 21:24:00 +0000 (21:24 +0000)]
r16449: move some code to a generic place

metze
(This used to be commit 77a711c54ae7543a26f0ace1f189d6ed580c48d9)

16 years agor16448: add more error checks
Stefan Metzmacher [Wed, 21 Jun 2006 20:43:59 +0000 (20:43 +0000)]
r16448: add more error checks

metze
(This used to be commit d6d86c65bf1835061713e0d8f2450e38455a3e1d)

16 years agor16447: print the result of talloc_set_parent()
Stefan Metzmacher [Wed, 21 Jun 2006 20:28:51 +0000 (20:28 +0000)]
r16447: print the result of talloc_set_parent()

trying to find the bug on HPUX

metze
(This used to be commit 3db6bd87158cd615a3e35009598863758099595b)

16 years agor16446: talloc_set_name() allocates and can fail...
Stefan Metzmacher [Wed, 21 Jun 2006 19:28:24 +0000 (19:28 +0000)]
r16446: talloc_set_name() allocates and can fail...
pass the error to the callers

metze
(This used to be commit 7aa07a1e0b2abd1a6ecd490410685d20c0201094)

16 years agor16445: print out values
Stefan Metzmacher [Wed, 21 Jun 2006 19:26:48 +0000 (19:26 +0000)]
r16445: print out values

metze
(This used to be commit 972634b2021e60b27d68b0fd6d49ef95398d92e2)

16 years agor16444: - split out qfsinfo passthru levels
Stefan Metzmacher [Wed, 21 Jun 2006 19:22:40 +0000 (19:22 +0000)]
r16444: - split out qfsinfo passthru levels
- use 1 to 1 mapping of interface and wire levels

metze
(This used to be commit e7d339d49669e72588461584b66ef9b19eb0a2f8)

16 years agor16443: add push code for SMB2 levels
Stefan Metzmacher [Wed, 21 Jun 2006 18:26:17 +0000 (18:26 +0000)]
r16443: add push code for SMB2 levels

metze
(This used to be commit 142680ab9b4ca04ea94ed40659358e1158f88c7a)

16 years agor16442: if we want to use CHECK_SIZE(NULL, 3)
Stefan Metzmacher [Wed, 21 Jun 2006 17:49:34 +0000 (17:49 +0000)]
r16442: if we want to use CHECK_SIZE(NULL, 3)
we need null tracking, so enable it explicit before running any tests

metze
(This used to be commit f3cd971ab70c3edee4da87b8ca38ec215c8bff49)

16 years agor16441: - give old tests a chance to report errors
Stefan Metzmacher [Wed, 21 Jun 2006 17:47:19 +0000 (17:47 +0000)]
r16441: - give old tests a chance to report errors
- display the correct test name

metze
(This used to be commit 7d62b0b7e96222f29dd3cd6066523f517d757620)

16 years agor16440: split out passthru level into a new functions,
Stefan Metzmacher [Wed, 21 Jun 2006 17:22:55 +0000 (17:22 +0000)]
r16440: split out passthru level into a new functions,
so they can we reused for smb2 later

metze
(This used to be commit 42324c1f63e2f16b27c43bf17b434c644244b931)

16 years agor16410: remove some warnings of talloc_steal() usage without target
Stefan Metzmacher [Tue, 20 Jun 2006 09:57:00 +0000 (09:57 +0000)]
r16410: remove some warnings of talloc_steal() usage without target
I only commit this as this is used in a global macro

tridge: we should try to get rid of this warning without using
(void)talloc_steal(ctx, ptr);
everywhere!!!

metze
(This used to be commit 3f8ce6d680b0c86abc698b8f9c6d8840da3ffd35)

16 years agor16407: add parsing code the SMB2 GetInfo in the server
Stefan Metzmacher [Tue, 20 Jun 2006 07:05:51 +0000 (07:05 +0000)]
r16407: add parsing code the SMB2 GetInfo in the server

metze
(This used to be commit c4755c83c61c0cc822c69cd274056ec20ba66fdb)

16 years agor16406: use the generic smb_handle in smb2_getinfo/smb2_setinfo
Stefan Metzmacher [Tue, 20 Jun 2006 07:03:53 +0000 (07:03 +0000)]
r16406: use the generic smb_handle in smb2_getinfo/smb2_setinfo

metze
(This used to be commit dcc02df8297162a7fd913560194d9e821798dbe0)

16 years agor16405: fix compiler warning of missing smb2_handle
Stefan Metzmacher [Tue, 20 Jun 2006 07:02:19 +0000 (07:02 +0000)]
r16405: fix compiler warning of missing smb2_handle

metze
(This used to be commit 73194e9ec3d1c18e7042bdaa008c7fd503e6e534)

16 years agor16403: remove dependency to smbsrv_request next part...
Stefan Metzmacher [Tue, 20 Jun 2006 06:32:29 +0000 (06:32 +0000)]
r16403: remove dependency to smbsrv_request next part...

metze
(This used to be commit 708a5d3bf08f62ba99740c3007a8882e22a01bc9)

16 years agor16402: start to remove the dependecy to smbsrv_request from the parsing functions
Stefan Metzmacher [Tue, 20 Jun 2006 06:20:05 +0000 (06:20 +0000)]
r16402: start to remove the dependecy to smbsrv_request from the parsing functions

metze
(This used to be commit e4a5e2db7f3333e7cb15bdd6eeb5b08a6f1d912f)

16 years agor16401: keep the old pointer when realloc fails, this is needed for the
Stefan Metzmacher [Tue, 20 Jun 2006 06:05:10 +0000 (06:05 +0000)]
r16401: keep the old pointer when realloc fails, this is needed for the
search callback

metze
(This used to be commit c868b8b7d7ee0424ed955f699543593aaa633e92)

16 years agor16400: add more error checks
Stefan Metzmacher [Tue, 20 Jun 2006 05:06:10 +0000 (05:06 +0000)]
r16400: add more error checks

metze
(This used to be commit 779c51ad52bd54c10e208b108cb34500e542097f)

16 years agor16399: - split out pushing smb_fsinfo into a DATA_BLOB
Stefan Metzmacher [Tue, 20 Jun 2006 04:14:37 +0000 (04:14 +0000)]
r16399: - split out pushing smb_fsinfo into a DATA_BLOB
- add error checks

metze
(This used to be commit 2aaca1631f4e9f312a8de506b21290b9452c2a43)

16 years agor16357: - start get rid of void parsing functions
Stefan Metzmacher [Mon, 19 Jun 2006 18:01:27 +0000 (18:01 +0000)]
r16357: - start get rid of void parsing functions
- there will more changes come but I want to do them in
  relative small chunks

metze
(This used to be commit d021a8b3ee986194fbfddfc096edb715b01dafe5)

16 years agor16342: Placeholder for a function implementing NET-API-MODIFYUSER test.
Rafal Szczesniak [Sun, 18 Jun 2006 22:26:30 +0000 (22:26 +0000)]
r16342: Placeholder for a function implementing NET-API-MODIFYUSER test.

rafal
(This used to be commit 82ac02dd18e96312ca15b8f79f6f1e3c330d01de)

16 years agor16341: newer autoconf versions export 'datarootdir',
Stefan Metzmacher [Sun, 18 Jun 2006 17:44:47 +0000 (17:44 +0000)]
r16341: newer autoconf versions export 'datarootdir',
fix a warning with old autoconf versions

metze
(This used to be commit 906c27caefa9802a72b6ea71e46e0725e445d189)

16 years agor16333: Move more code out of the core smbtorture. It now no longer
Jelmer Vernooij [Sat, 17 Jun 2006 02:20:39 +0000 (02:20 +0000)]
r16333: Move more code out of the core smbtorture. It now no longer
contains protocol-specific code.
(This used to be commit 819d3b457648ffb7526a770e842badc17b6061fb)

16 years agor16332: Fix two small bugs found by the buildfarm.
Jelmer Vernooij [Sat, 17 Jun 2006 01:20:02 +0000 (01:20 +0000)]
r16332: Fix two small bugs found by the buildfarm.
(This used to be commit 3decb34bb607b83f72deaa4baca935f4f253e2f2)

16 years agor16331: Split out registering of multi fn tests, fix typo in name of pac suite.
Jelmer Vernooij [Sat, 17 Jun 2006 01:12:28 +0000 (01:12 +0000)]
r16331: Split out registering of multi fn tests, fix typo in name of pac suite.
(This used to be commit 9e8574ac6cd38d1ff388f0c9ff37d86b316a431e)

16 years agor16330: Show number of succeeded, failed and skipped tests and success rate at the
Jelmer Vernooij [Sat, 17 Jun 2006 00:56:17 +0000 (00:56 +0000)]
r16330: Show number of succeeded, failed and skipped tests and success rate at the
end of a smbtorture run.
(This used to be commit 745f3d544bb1158c7c0001d36181916cd932bc08)

16 years agor16329: Convert to new UI API.
Jelmer Vernooij [Sat, 17 Jun 2006 00:41:53 +0000 (00:41 +0000)]
r16329: Convert to new UI API.
(This used to be commit c7d1d86853eb659ee4a5cbfb4ff65b31f6fe0375)

16 years agor16328: Wrap all existing tests in simple single-function testsuites.
Jelmer Vernooij [Sat, 17 Jun 2006 00:17:50 +0000 (00:17 +0000)]
r16328: Wrap all existing tests in simple single-function testsuites.
(This used to be commit 7e811adf59841936b7e634fca4e95630f890c5af)

16 years agor16321: Add suite_start/suite_finish hooks, support --format=quiet
Jelmer Vernooij [Fri, 16 Jun 2006 23:10:15 +0000 (23:10 +0000)]
r16321: Add suite_start/suite_finish hooks, support --format=quiet
(This used to be commit 6da39533d77f686b26787bebfe9e3db4bb8c740d)

16 years agor16316: Convert to new torture UI API.
Jelmer Vernooij [Fri, 16 Jun 2006 22:59:40 +0000 (22:59 +0000)]
r16316: Convert to new torture UI API.
(This used to be commit ff87504c41e76a14b95a2063a4eb62d96fb02127)

16 years agor16315: Convert to new API.
Jelmer Vernooij [Fri, 16 Jun 2006 22:48:50 +0000 (22:48 +0000)]
r16315: Convert to new API.
(This used to be commit 0e52a831ed88b5d61033aee56a17e49b84df6773)

16 years agor16304: Improve testing UI API. This now allows registering the full
Jelmer Vernooij [Fri, 16 Jun 2006 22:06:09 +0000 (22:06 +0000)]
r16304: Improve testing UI API. This now allows registering the full
test suite tree, looks a bit more like other unit testing API's,
fixes some memory responsibility issues, introduces testcases,
and removes the need for tests to call torture_ok().
(This used to be commit 0445b1a56a02552f895f400960b9ced39244a144)

16 years agor16265: Fix 'newuser' command.
Andrew Bartlett [Thu, 15 Jun 2006 18:25:41 +0000 (18:25 +0000)]
r16265: Fix 'newuser' command.

Andrew Bartlett
(This used to be commit 82f5f6c03d005741613c5b00705613c4078c844e)

16 years agor16264: Add, but do not yet enable, the partitions module.
Andrew Bartlett [Thu, 15 Jun 2006 18:04:24 +0000 (18:04 +0000)]
r16264: Add, but do not yet enable, the partitions module.

This required changes to the rootDSE module, to allow registration of
partitions.  In doing so I renamed the 'register' operation to
'register_control' and 'register_partition', which changed a few more
modules.

Due to the behaviour of certain LDAP servers, we create the baseDN
entry in two parts: Firstly, we allow the admin to export a simple
LDIF file to add to their server.  Then we perform a modify to add the
remaining attributes.

To delete all users in partitions, we must now search and delete all
objects in the partition, rather than a simple search from the root.
Against LDAP, this might not delete all objects, so we allow this to
fail.

In testing, we found that the 'Domain Controllers' container was
misnamed, and should be 'CN=', rather than 'OU='.

To avoid the Templates being found in default searches, they have been
moved to CN=Templates from CN=Templates,${BASEDN}.

Andrew Bartlett
(This used to be commit b49a4fbb57f10726bd288fdc9fc95c0cbbe9094a)

16 years agor16263: A number of these searches need to be under the partitions DN, and the
Andrew Bartlett [Thu, 15 Jun 2006 17:19:18 +0000 (17:19 +0000)]
r16263: A number of these searches need to be under the partitions DN, and the
other needs the default basedn.

Andrew Bartlett
(This used to be commit 42c2495683083110ec41aeab5adeee09762db3dd)

16 years agor16262: Another basedn fix.
Andrew Bartlett [Thu, 15 Jun 2006 17:18:08 +0000 (17:18 +0000)]
r16262: Another basedn fix.

Andrew Bartlett
(This used to be commit abf104a0d7c548af0a4744798c53064303a1dc3f)

16 years agor16240: Add better error reporting in the password_hash module
Andrew Bartlett [Thu, 15 Jun 2006 00:29:11 +0000 (00:29 +0000)]
r16240: Add better error reporting in the password_hash module

Remove duplicate attribute in search request

Search for the domain by NDR-encoded SID, not string (consistant with
the rest of the C code, and helps partially-constructed LDAP
backends).

Use the default basedn for the domain search.

Andrew Bartlett
(This used to be commit 2f104612cd6f170dd28fd4ce09156168d47a681a)

16 years agor16239: Search for the domain in the correct partition, so this will work with
Andrew Bartlett [Wed, 14 Jun 2006 23:52:18 +0000 (23:52 +0000)]
r16239: Search for the domain in the correct partition, so this will work with
LDAP backends.

Andrew Bartlett
(This used to be commit 270a77bfff65c9e1d5d7c535338f9b9b86d53fa3)

16 years agor16238: Use a baseDN for the auth_sam searches, to allow continued function
Andrew Bartlett [Wed, 14 Jun 2006 23:50:58 +0000 (23:50 +0000)]
r16238: Use a baseDN for the auth_sam searches, to allow continued function
with partitions.

Also fix some debug messages.

Andrew Bartlett
(This used to be commit a2441ae99a6c3b4bf40f5369477a9bc0f3019c34)

16 years agor16237: Use an appropriate basedn for these searches, so they occour into the
Andrew Bartlett [Wed, 14 Jun 2006 23:49:14 +0000 (23:49 +0000)]
r16237: Use an appropriate basedn for these searches, so they occour into the
correct partition.

Andrew Bartlett
(This used to be commit f661dafe4edcd017a8d3bda1a40ff8b0d7a1348e)

16 years agor16236: Add a proper baseDN to a large number of queries. Searching the NULL
Andrew Bartlett [Wed, 14 Jun 2006 23:47:45 +0000 (23:47 +0000)]
r16236: Add a proper baseDN to a large number of queries.  Searching the NULL
baseDN won't work once the partitions module is loaded.

Andrew Bartlett
(This used to be commit c4ab9e8a754ca4a23a47f38a2344df305b4a351d)

16 years agor16235: Don't update minor_status when cleaning up on error. This restores
Andrew Bartlett [Wed, 14 Jun 2006 23:46:27 +0000 (23:46 +0000)]
r16235: Don't update minor_status when cleaning up on error.  This restores
sensible log messages to gensec_gssapi.

Andrew Bartlett
(This used to be commit df2e4f061f3bc82930dfcdbb75b775939ae8832e)

16 years agor16234: Set the request timeout from the LDAP search. Without this, the
Andrew Bartlett [Wed, 14 Jun 2006 23:39:18 +0000 (23:39 +0000)]
r16234: Set the request timeout from the LDAP search.  Without this, the
initial request time is uninitialised, and this causes havoc later.
This also allows us to honour the client's wishes.

We should be doing this for all the operations...

Andrew Bartlett
(This used to be commit c8f5b1c9281072179cd3f3cf282cf376dca24ba0)

16 years agor16232: Avoid searching on domainDns, as it is not an AD attribute in the
Andrew Bartlett [Wed, 14 Jun 2006 23:32:19 +0000 (23:32 +0000)]
r16232: Avoid searching on domainDns, as it is not an AD attribute in the
official schema.

Add baseDNs, so we search the correct partition.

Andrew Bartlett
(This used to be commit f47b7720a3a69f60e60b3671b621f49b0c444eec)

16 years agor16227: Don't segfault if the ldb_search() fails.
Andrew Bartlett [Wed, 14 Jun 2006 16:09:34 +0000 (16:09 +0000)]
r16227: Don't segfault if the ldb_search() fails.

Andrew Bartlett
(This used to be commit af11f464a717cc7db0393070da780091a6053ee0)

16 years agor16226: Fixes for various segfault bugs found against a buggy Samba4. With
Andrew Bartlett [Wed, 14 Jun 2006 16:08:43 +0000 (16:08 +0000)]
r16226: Fixes for various segfault bugs found against a buggy Samba4.  With
the current API we need to check both that the RPC didn't fault, and
that the query succeeded.

Also print the right things in debug messages.

Andrew Bartlett
(This used to be commit d18e515391f8f5038e9aaaba596099052011b53a)

16 years agor16218: If a connection is forced as 'anonymous', don't treat it as
Andrew Bartlett [Wed, 14 Jun 2006 04:00:42 +0000 (04:00 +0000)]
r16218: If a connection is forced as 'anonymous', don't treat it as
'authentication requested'...

Andrew Bartlett
(This used to be commit d5fc88c93697dbcab13b2356ef4e5d1d2a7d59eb)

16 years agor16211: Refactor domain_opened function a bit and add a few comments.
Rafal Szczesniak [Tue, 13 Jun 2006 21:57:44 +0000 (21:57 +0000)]
r16211: Refactor domain_opened function a bit and add a few comments.

rafal
(This used to be commit d8113fa5e19570fcf67a7d3cd8a0d8ab12ef147e)

16 years agor16186: Use full include path to make sure it's being picked up by the
Jelmer Vernooij [Tue, 13 Jun 2006 10:47:08 +0000 (10:47 +0000)]
r16186: Use full include path to make sure it's being picked up by the
dependency generator.
(This used to be commit fbbc3b11683d594d31e6487873946b68c2c46923)

16 years agor16185: Remove autogenerated file from SVN.
Jelmer Vernooij [Tue, 13 Jun 2006 10:21:52 +0000 (10:21 +0000)]
r16185: Remove autogenerated file from SVN.
(This used to be commit a975f11d452deb2c5e06b8ba02f528b08d2842e1)

16 years agor16184: Convert to UI API. The async test was previously broken (fails
Jelmer Vernooij [Tue, 13 Jun 2006 10:19:01 +0000 (10:19 +0000)]
r16184: Convert to UI API. The async test was previously broken (fails
with NT_STATUS_NO_MEMORY) and still does.
(This used to be commit 5c2e136ef97fb98ae5314d1b2c73bb7b2fe4d8ee)

16 years agor16182: Better test the 15 out of 20 tests we right now survive than not test at
Volker Lendecke [Tue, 13 Jun 2006 09:11:29 +0000 (09:11 +0000)]
r16182: Better test the 15 out of 20 tests we right now survive than not test at
all...

Volker
(This used to be commit 1d4a129bb56ef7b944dbd386313ea8345a675e6f)

16 years agor16174: Couple of fixes to the UI code - make 'torture_ok()' optional, be more verbos...
Jelmer Vernooij [Mon, 12 Jun 2006 23:03:02 +0000 (23:03 +0000)]
r16174: Couple of fixes to the UI code - make 'torture_ok()' optional, be more verbose by default.
(This used to be commit 8ef13a50b9e80811342058cdf15cf84a8ed7532e)

16 years agor16173: Use memory context provided by smbtorture.
Jelmer Vernooij [Mon, 12 Jun 2006 23:01:51 +0000 (23:01 +0000)]
r16173: Use memory context provided by smbtorture.
(This used to be commit 88046d59517a595cfb8e9385ad87e8460eececac)

16 years agor16172: Translate the ldb error codes into appropriate messages for the
Andrew Bartlett [Mon, 12 Jun 2006 21:29:21 +0000 (21:29 +0000)]
r16172: Translate the ldb error codes into appropriate messages for the
transaction cases.

Andrew Bartlett
(This used to be commit 28883f719304ee438c54a4d33e6bf1239f8c4094)

16 years agor16171: Convert to UI API
Jelmer Vernooij [Mon, 12 Jun 2006 20:26:01 +0000 (20:26 +0000)]
r16171: Convert to UI API
(This used to be commit 075dfb4c52132ea34dec643b12dcd01f05f3240f)

16 years agor16170: Convert to UI API
Jelmer Vernooij [Mon, 12 Jun 2006 20:15:14 +0000 (20:15 +0000)]
r16170: Convert to UI API
(This used to be commit 7dad6f9c0aade8585f874d0362290d06696a5087)

16 years agor16169: Convert to UI API
Jelmer Vernooij [Mon, 12 Jun 2006 20:10:11 +0000 (20:10 +0000)]
r16169: Convert to UI API
(This used to be commit 6306a3cc17aff23f54e3f4e7a36d6ab9f6739739)

16 years agor16168: Make the example match the actual function.
Andrew Bartlett [Mon, 12 Jun 2006 20:08:19 +0000 (20:08 +0000)]
r16168: Make the example match the actual function.

This was very confusing until I really looked at it.

Andrew Bartlett
(This used to be commit 0053d06d9f85f2304191ab8f68eee7f48b2f2aa8)

16 years agor16167: Add tests for the changes to use hex digits, including some tests
Andrew Bartlett [Mon, 12 Jun 2006 20:02:16 +0000 (20:02 +0000)]
r16167: Add tests for the changes to use hex digits, including some tests
commented out until we fix some more things on our server.

Andrew Bartlett
(This used to be commit ac9d3cb5b004ef1f8e06537634f8f5c33b6c0965)

16 years agor16166: Remove hexidecimal constants from the Samba4 provision files.
Andrew Bartlett [Mon, 12 Jun 2006 20:00:18 +0000 (20:00 +0000)]
r16166: Remove hexidecimal constants from the Samba4 provision files.

This change is required for compatibility with the OSX client, in
particular, but returning 0x80000002 rather than -2147483646 violates
what LDAP clients expect in general.

Andrew Bartlett
(This used to be commit 81f3cd1c4592d2108d521acd701ed4a70a23c465)

16 years agor16165: Add some more helper utilities
Jelmer Vernooij [Mon, 12 Jun 2006 19:49:53 +0000 (19:49 +0000)]
r16165: Add some more helper utilities
(This used to be commit 584cd50d2bbace27220427ab23d032b2aab7f047)

16 years agor16164: Convert to UI API
Jelmer Vernooij [Mon, 12 Jun 2006 19:48:58 +0000 (19:48 +0000)]
r16164: Convert to UI API
(This used to be commit 5cd95ec885cb0ffd5b40f53a5a0193388ec5fc6a)

16 years agor16163: Convert to UI API
Jelmer Vernooij [Mon, 12 Jun 2006 19:42:58 +0000 (19:42 +0000)]
r16163: Convert to UI API
(This used to be commit 067c58f0d9743b52a05dd4c7cf78a64ea16133d9)