kai/samba.git
16 years agor18947: overload listen() and ioctl() in socket_wrapper
Stefan Metzmacher [Wed, 27 Sep 2006 10:13:45 +0000 (10:13 +0000)]
r18947: overload listen() and ioctl() in socket_wrapper

metze
(This used to be commit dfaccdca1b6954cd61828749d7b000f804f3b066)

16 years agor18946: fix compiler warning
Stefan Metzmacher [Wed, 27 Sep 2006 06:48:24 +0000 (06:48 +0000)]
r18946: fix compiler warning

metze
(This used to be commit 450595822441ebaa199d6b10d568274940b1a91b)

16 years agor18945: fix compiler warnings and end-of-non-void function bugs
Stefan Metzmacher [Wed, 27 Sep 2006 06:42:19 +0000 (06:42 +0000)]
r18945: fix compiler warnings and end-of-non-void function bugs

metze
(This used to be commit ed195999c0c7d89cdc61e980576d191fc05d65d7)

16 years agor18944: talloc_reference() can fail...
Stefan Metzmacher [Wed, 27 Sep 2006 06:39:56 +0000 (06:39 +0000)]
r18944: talloc_reference() can fail...
(remove compiler warning)

metze
(This used to be commit 515f4eb1cef11d8f942aeffc72c9da1bbd4d78cd)

16 years agor18943: Samba4 wants its databases private to root. I know some of them could
Andrew Tridgell [Wed, 27 Sep 2006 06:02:07 +0000 (06:02 +0000)]
r18943: Samba4 wants its databases private to root. I know some of them could
potentially be public, but we'd need to think about them
carefully.
(This used to be commit 142a235f663f707eee3f16d0c1265b01fe1ecf32)

16 years agor18942: add a ldb_set_create_perms() function in ldb. I didn't call it
Andrew Tridgell [Wed, 27 Sep 2006 05:57:41 +0000 (05:57 +0000)]
r18942: add a ldb_set_create_perms() function in ldb. I didn't call it
ldb_set_umask() (which is what we had discussed) as it doesn't
actually set the umask (in effect it sets the inverse of the umask -
the perms to be used for the file)
(This used to be commit 7e2ec875908c112d5c3b0f6d18f9a8bbacf33539)

16 years agor18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Andrew Tridgell [Wed, 27 Sep 2006 03:34:50 +0000 (03:34 +0000)]
r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
(This used to be commit 1a42f38dfdc55d7429a1f8d3e811f3d857195a58)

16 years agor18936: hopefully fix the test for negative enum values. When a compiler
Andrew Tridgell [Wed, 27 Sep 2006 02:00:13 +0000 (02:00 +0000)]
r18936: hopefully fix the test for negative enum values. When a compiler
truncates the enums, the test was passing.
(This used to be commit c6216f7dbf68012fa8351dcae17fe4c7ab165b58)

16 years agor18933: Add helpful emacs marker
Andrew Bartlett [Tue, 26 Sep 2006 22:14:15 +0000 (22:14 +0000)]
r18933: Add helpful emacs marker
(This used to be commit 5fd53ea6a3a6d7638a9f542f46623a19143ff81d)

16 years agor18925: Add current snapshot of the ejs-2.0 code. Tridge, will you be incorporating...
Derrell Lipman [Tue, 26 Sep 2006 16:58:27 +0000 (16:58 +0000)]
r18925: Add current snapshot of the ejs-2.0 code.  Tridge, will you be incorporating this?
(This used to be commit 917af234a8d517f82bd42256a940608a16b988f4)

16 years agor18918: - bail out with unsupported option to socket()
Stefan Metzmacher [Tue, 26 Sep 2006 13:15:31 +0000 (13:15 +0000)]
r18918: - bail out with unsupported option to socket()
- don't reuse portnumbers in the autobind code
- use if (!...) return; logic instead of if (...) { do everything } return
  for swrap_close

metze
(This used to be commit 68a65aa4490c12ca70db335f928f3ac507902337)

16 years agor18917: having 255 virtual interfaces available in socket wrapper means we
Andrew Tridgell [Tue, 26 Sep 2006 11:31:14 +0000 (11:31 +0000)]
r18917: having 255 virtual interfaces available in socket wrapper means we
stat() 240 files that don't exist on every broadcast. That's a bit
excessive!

reduce max virtual interfaces to 16
(This used to be commit 3c4100027c7d3806a2021cb4d70ec6adf9dd2dc6)

16 years agor18916: fixed the messaging layer on *BSD systems. When a socket was full we
Andrew Tridgell [Tue, 26 Sep 2006 11:27:09 +0000 (11:27 +0000)]
r18916: fixed the messaging layer on *BSD systems. When a socket was full we
were getting ENOBUFS, which mapped to NT_STATUS_NO_MEMORY, which in
turn caused the messaging code to loop trying until it gave up.

Now it correctly falls back to select. Messaging speed goes from 3
messages per second to over 7000 on my test vmware box. Not bad for a
one line change :)
(This used to be commit 6568f30adf980c572f9ffd6ff884336ebe652f90)

16 years agor18915: fix usage of popt, do make -W setting the recursive flag on SuSE 10.1
Stefan Metzmacher [Tue, 26 Sep 2006 10:34:40 +0000 (10:34 +0000)]
r18915: fix usage of popt, do make -W setting the recursive flag on SuSE 10.1

metze
(This used to be commit 0fef3f807dd3e156970e315d83f5cb4a45e20d12)

16 years agor18914: this bug fix needs to be for just hpux 11.11
Andrew Tridgell [Tue, 26 Sep 2006 05:40:57 +0000 (05:40 +0000)]
r18914: this bug fix needs to be for just hpux 11.11
(This used to be commit 2cccede13d34011767159c3345bb6da24ed09bd3)

16 years agor18913: an attempt to get tdb/ldb working on the HPUX box 'gwen'. This idea
Andrew Tridgell [Tue, 26 Sep 2006 03:11:31 +0000 (03:11 +0000)]
r18913: an attempt to get tdb/ldb working on the HPUX box 'gwen'. This idea
come from Don McCall. Don may well be able to provide us with a
configure test in the future which does this in a nicer way, I just
want to see if it works now.
(This used to be commit f7f548a1c79a78a1b15e96732994135cba94aa3d)

16 years agor18911: add a JSON encoder
Derrell Lipman [Tue, 26 Sep 2006 02:26:36 +0000 (02:26 +0000)]
r18911: add a JSON encoder
(This used to be commit 774e87974951a03663a1efd15dfde3d012bcf526)

16 years agor18910: Change ldb_msg_add_string() to not actually add an attribute if the
Andrew Tridgell [Tue, 26 Sep 2006 01:21:34 +0000 (01:21 +0000)]
r18910: Change ldb_msg_add_string() to not actually add an attribute if the
string is zero length. This allows callers to not have to worry about
creating an invalid ldap attribute.

See extensive discussion on samba-technical list :-)
(This used to be commit 7a1db8c2a432b9ab59b29ee1bfce6c8fe8e981a2)

16 years agor18909: use newer functions that were introduced after this code was made
Simo Sorce [Mon, 25 Sep 2006 22:55:56 +0000 (22:55 +0000)]
r18909: use newer functions that were introduced after this code was made
(This used to be commit 3ce1796eb4cca7fd78366ee540a998a1ca377866)

16 years agor18908: Store the schema structure into an opaque pointer so that it can be reused...
Simo Sorce [Mon, 25 Sep 2006 22:53:03 +0000 (22:53 +0000)]
r18908: Store the schema structure into an opaque pointer so that it can be reused by multiple connections
(This used to be commit ca8827d8f9a9f6ec60afed29b0b85f491d725d1c)

16 years agor18903: merge from samba3:
Stefan Metzmacher [Mon, 25 Sep 2006 16:59:00 +0000 (16:59 +0000)]
r18903: merge from samba3:

define HAVE_LDB_LDAP and HAVE_LDB_SQLITE3

metze
(This used to be commit 4e2f5ba490d717283ab089d90ebd5c108a8c53b0)

16 years agor18894: Merge const fixes from 3_0
Volker Lendecke [Mon, 25 Sep 2006 05:59:38 +0000 (05:59 +0000)]
r18894: Merge const fixes from 3_0
(This used to be commit 4ce447223cc71b8b2a31c2da3b0afd8e3fcf0c01)

16 years agor18890: sort the flags out and remove unknown as there's still
Rafal Szczesniak [Mon, 25 Sep 2006 05:03:08 +0000 (05:03 +0000)]
r18890: sort the flags out and remove unknown as there's still
quite a few of them (not sure if these are used actually).

rafal
(This used to be commit 1622d4608bc738b73d6f51c758828f96602b3e59)

16 years agor18887: add flags found while on the plane.
Rafal Szczesniak [Mon, 25 Sep 2006 04:43:23 +0000 (04:43 +0000)]
r18887: add flags found while on the plane.

rafal
(This used to be commit ec59441977205af9a38926b3d432ec0de6379573)

16 years agor18885: Fix bug in our IDL pointed out by Ronnie
Simo Sorce [Mon, 25 Sep 2006 04:04:40 +0000 (04:04 +0000)]
r18885: Fix bug in our IDL pointed out by Ronnie
(This used to be commit 77e8d96bc488a574b0b728d5b8facd51e69822d5)

16 years agor18884: client_test.exp getting changed to client_tests.exp was an intentional error...
Brad Henry [Mon, 25 Sep 2006 03:54:46 +0000 (03:54 +0000)]
r18884: client_test.exp getting changed to client_tests.exp was an intentional error that I inserted for testing earlier and forgot to take out before commiting.
The other error was a real bug. :)
(This used to be commit 0269f3101555daaa4b2c4080ab24c1ca75cdc2f6)

16 years agor18883: Start including test_functions.sh.
Brad Henry [Mon, 25 Sep 2006 03:29:59 +0000 (03:29 +0000)]
r18883: Start including test_functions.sh.
test_win.sh has been rewritten to use the testit() function from test_functions.sh.
(This used to be commit d0ed99859f7cbed599abf7083e7fb20bd58b1556)

16 years agor18882: make style consistent
Simo Sorce [Mon, 25 Sep 2006 02:56:41 +0000 (02:56 +0000)]
r18882: make style consistent
(This used to be commit a141ee9473ae46c63dea247456f156b40f766d42)

16 years agor18881: remove wrong check and statement.
Simo Sorce [Mon, 25 Sep 2006 02:56:20 +0000 (02:56 +0000)]
r18881: remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.
(This used to be commit 3e131177dae3536c07632fe09e7ebe877bcd9332)

16 years agor18880: JSON-RPC work in progress
Derrell Lipman [Mon, 25 Sep 2006 02:49:56 +0000 (02:49 +0000)]
r18880: JSON-RPC work in progress
(This used to be commit 34bffbaebf50c2a75c91285d5ec82e8f377981cc)

16 years agor18873: Use WERR_errors table rather than DOS_errors table for wireshark.
Jelmer Vernooij [Sun, 24 Sep 2006 16:39:28 +0000 (16:39 +0000)]
r18873: Use WERR_errors table rather than DOS_errors table for wireshark.
(This used to be commit 5a2e103ea0b31e80e4b2c2237b5fd9940820cec6)

16 years agor18872: when converting IDL to use out,ref pointers, you also must fix any
Andrew Tridgell [Sun, 24 Sep 2006 08:01:24 +0000 (08:01 +0000)]
r18872: when converting IDL to use out,ref pointers, you also must fix any
length_is() statements.
(This used to be commit 2f9a1f1d62351e20274227c3068a2e8211148535)

16 years agor18862: as andrew pointed our on irc, if we are going to define _TRUE, then
Andrew Tridgell [Sun, 24 Sep 2006 02:13:52 +0000 (02:13 +0000)]
r18862: as andrew pointed our on irc, if we are going to define _TRUE, then
better make it be true :)
(This used to be commit 4bda5ed3f9fda437c3f9b7e8ce83853999601c74)

16 years agor18861: merge from samba3
Andrew Tridgell [Sun, 24 Sep 2006 02:06:05 +0000 (02:06 +0000)]
r18861: merge from samba3
(This used to be commit c5e2fcdc10a0869264bb1c6a13ada5f12e1b655f)

16 years agor18860: fixed some code that bitrotted while we didn't have the safety check
Andrew Tridgell [Sun, 24 Sep 2006 02:05:37 +0000 (02:05 +0000)]
r18860: fixed some code that bitrotted while we didn't have the safety check
with NTSTATUS, WERROR etc.
(This used to be commit fddb85bfa8bb5df7812d226a7a6f6fb41ccf107f)

16 years agor18859: finally worked out what is going wrong with immediate structures. The
Andrew Tridgell [Sun, 24 Sep 2006 01:52:20 +0000 (01:52 +0000)]
r18859: finally worked out what is going wrong with immediate structures. The
problem is that the AC_PROG_CC_C99 macro ends up selecting either
-std=std99 or -std=gnu99 for gcc. Ironically enough, that breaks
constant structure initialisers!

So, simplest solution is to not try that configure test if we know we
are using gcc
(This used to be commit 331435daf3275acaf282c1032c6e9f7dc3e685bb)

16 years agor18851: Some C++ warnings
Volker Lendecke [Sat, 23 Sep 2006 20:29:54 +0000 (20:29 +0000)]
r18851: Some C++ warnings
(This used to be commit 69f05f288ce7a8508760db861d0910495bd1d578)

16 years agor18850: add strspn() function i ejs
Derrell Lipman [Sat, 23 Sep 2006 19:17:50 +0000 (19:17 +0000)]
r18850: add strspn() function i ejs
(This used to be commit e8f892bedc65042565442ac802df6eda96388f14)

16 years agor18849: a bit of help for the new user, to figure out how to do initial setup
Derrell Lipman [Sat, 23 Sep 2006 19:16:42 +0000 (19:16 +0000)]
r18849: a bit of help for the new user, to figure out how to do initial setup
(This used to be commit 72f350ec2cc36865c790df314deb09ac3049c580)

16 years agor18848: Save the json library before I start hacking on it. I'm going to be
Derrell Lipman [Sat, 23 Sep 2006 19:15:27 +0000 (19:15 +0000)]
r18848: Save the json library before I start hacking on it.  I'm going to be
converting it to natively use ejs objects, instead of its own internal
format.
(This used to be commit 119db8924a6e9c40a94c76c57198877875c53afc)

16 years agor18847: Add WERR_NO_SYSTEM_RESOURCES showing up in dfs torture testing.
Günther Deschner [Sat, 23 Sep 2006 19:04:39 +0000 (19:04 +0000)]
r18847: Add WERR_NO_SYSTEM_RESOURCES showing up in dfs torture testing.

Guenther
(This used to be commit 692746ff8d1352a93a19ba9d537ca894a2ea186f)

16 years agor18844: Workaround win2k behaviour (which returns WERR_NO_MORE_ITEMS instead of
Günther Deschner [Sat, 23 Sep 2006 09:13:48 +0000 (09:13 +0000)]
r18844: Workaround win2k behaviour (which returns WERR_NO_MORE_ITEMS instead of
WERR_OK) in the dfs torture test.

Guenther
(This used to be commit dc1b8a3aae9f00fb7dfb0dc2fdd2ee3647ecebf1)

16 years agor18843: Got DFS_MANAGER_VERSION_NT4 wrong.
Günther Deschner [Sat, 23 Sep 2006 08:17:14 +0000 (08:17 +0000)]
r18843: Got DFS_MANAGER_VERSION_NT4 wrong.

Guenther
(This used to be commit 8e19284fbd425d04954eaed374c72b0230d4ff99)

16 years agor18840: make these compatible with g++ warnings
Andrew Tridgell [Sat, 23 Sep 2006 04:36:30 +0000 (04:36 +0000)]
r18840: make these compatible with g++ warnings
(This used to be commit bcfa93954fdb00f500f174cd227e3d9b2ef94fdc)

16 years agor18839: align all directory search blobs on an 8 byte boundary to keep the
Andrew Tridgell [Sat, 23 Sep 2006 02:45:06 +0000 (02:45 +0000)]
r18839: align all directory search blobs on an 8 byte boundary to keep the
current vista release happy.
(This used to be commit d3f0114a9dc8458cccfda71087668b1ddf4d380c)

16 years agor18838: make sure we cleanup after SMB2-MAXWRITE (it creates a large file)
Andrew Tridgell [Sat, 23 Sep 2006 02:32:47 +0000 (02:32 +0000)]
r18838: make sure we cleanup after SMB2-MAXWRITE (it creates a large file)
(This used to be commit 54894fb8b87a10dbf36476a001e2e32a0263c4fa)

16 years agor18835: expand IO limits on SMB2. Samba4 now tops out at 16.7MB IOs.
Andrew Tridgell [Sat, 23 Sep 2006 02:19:15 +0000 (02:19 +0000)]
r18835: expand IO limits on SMB2. Samba4 now tops out at 16.7MB IOs.
(This used to be commit 1e34e4d5a1fd3d74080424140e4ab276b6042d12)

16 years agor18834: get the log context code right
Andrew Tridgell [Sat, 23 Sep 2006 01:59:48 +0000 (01:59 +0000)]
r18834: get the log context code right
(This used to be commit b6bb5d7b772467042cee6ea372119781c42b91c1)

16 years agor18833: darn, forgot to commit this
Andrew Tridgell [Sat, 23 Sep 2006 01:54:29 +0000 (01:54 +0000)]
r18833: darn, forgot to commit this

sorry about the build breakage
(This used to be commit c0684d0f26917e6623bad1e0f9b8312873230300)

16 years agor18832: fixed standalone build
Andrew Tridgell [Fri, 22 Sep 2006 23:25:16 +0000 (23:25 +0000)]
r18832: fixed standalone build
(This used to be commit 1ebc098b6776d38451e441280ac13664d64569f4)

16 years agor18831: minor build changes for samba3. The logging changes will be removed
Andrew Tridgell [Fri, 22 Sep 2006 23:22:39 +0000 (23:22 +0000)]
r18831: minor build changes for samba3. The logging changes will be removed
when the tdb api is updated
(This used to be commit 6ace943fac101839e35cbc83dc54fde2068f704b)

16 years agor18830: ensure backends aren't added twice (needed for samba3)
Andrew Tridgell [Fri, 22 Sep 2006 23:21:36 +0000 (23:21 +0000)]
r18830: ensure backends aren't added twice (needed for samba3)
(This used to be commit 54b864b491d8a10c28833d28b764262503a72e91)

16 years agor18829: Print a nice welcome message when we enter the test environment.
Andrew Bartlett [Fri, 22 Sep 2006 20:00:49 +0000 (20:00 +0000)]
r18829: Print a nice welcome message when we enter the test environment.

Andrew Bartlett
(This used to be commit 77f1c15d92d13f6e4f278d9d4b0f15fab66b4bbc)

16 years agor18828: Export some more useful environment varibles, particularly for use in
Andrew Bartlett [Fri, 22 Sep 2006 19:43:08 +0000 (19:43 +0000)]
r18828: Export some more useful environment varibles, particularly for use in
'make testenv'

Andrew Bartlett
(This used to be commit 5215b834bd08ae01b055aed0f2dc074b58996709)

16 years agor18827: I forgot to commit this:
Andrew Bartlett [Fri, 22 Sep 2006 19:39:27 +0000 (19:39 +0000)]
r18827: I forgot to commit this:

Make kpasswdd use the new prototype for
_krb5_principalname2krb5_principal()

Andrew Bartlett
(This used to be commit 989f40ea027328cdaa31dc89ce52b2243b4aad76)

16 years agor18826: Allow 'enterprise' principal names to log in.
Andrew Bartlett [Fri, 22 Sep 2006 18:39:49 +0000 (18:39 +0000)]
r18826: Allow 'enterprise' principal names to log in.

These principals do not need to be in the same realm as the rest of
the ticket, the full principal name is in the first componet of the
ASN.1.

Samba4's backend will handle getting this to the 'right' place.

Andrew Bartlett
(This used to be commit 90b01b8af21609e2e5c8b6bd8cab8bd393844acf)

16 years agor18825: speed up the test_cifsdd.sh test by using a smaller file. It was
Andrew Tridgell [Fri, 22 Sep 2006 15:14:53 +0000 (15:14 +0000)]
r18825: speed up the test_cifsdd.sh test by using a smaller file. It was
taking over half an hour on some systems
(This used to be commit 13ca7297dd8645085f12d4cf586c2c07f0f1b287)

16 years agor18824: fixed a bug in cifsdd when the file is exactly a multiple of the block
Andrew Tridgell [Fri, 22 Sep 2006 15:14:03 +0000 (15:14 +0000)]
r18824: fixed a bug in cifsdd when the file is exactly a multiple of the block
size (cifsdd incorrectly reported an error and exited)
(This used to be commit 897b1ae3bff4914e5cfbcb333184045c2a1deaf3)

16 years agor18822: Automatically remove a forced dfs standard root creation.
Günther Deschner [Fri, 22 Sep 2006 10:37:43 +0000 (10:37 +0000)]
r18822: Automatically remove a forced dfs standard root creation.

Guenther
(This used to be commit 5af5c1877465092b0682d4f166f6e33511e4a292)

16 years agor18821: Correctly name dfs_AddStdRootForced() test.
Günther Deschner [Fri, 22 Sep 2006 10:31:19 +0000 (10:31 +0000)]
r18821: Correctly name dfs_AddStdRootForced() test.

Guenther
(This used to be commit 0ee08738697bee4fbeebb1e45211d193a6dc7abb)

16 years agor18815: Fill in IDL for domain based DFS root functions (dfs_AddFtRoot,
Günther Deschner [Fri, 22 Sep 2006 08:36:30 +0000 (08:36 +0000)]
r18815: Fill in IDL for domain based DFS root functions (dfs_AddFtRoot,
dfs_RemoveFtRoot and dfs_FlushFtTable).

Guenther
(This used to be commit 91d4fc25c5448cd8e3d6991b38a9f2190324c6b2)

16 years agor18808: added SMB2-MAXWRITE test and SMB2-DIR tests
Andrew Tridgell [Fri, 22 Sep 2006 04:04:46 +0000 (04:04 +0000)]
r18808: added SMB2-MAXWRITE test and SMB2-DIR tests

expanded size of dangerous level for write in SMB2-CONNECT test
(This used to be commit 355c6e78a91f4e934479829e722f873ca7e66baf)

16 years agor18807: don't overtax the imaginations of servers that can't do mkdir on \\dirname\\
Andrew Tridgell [Fri, 22 Sep 2006 03:50:15 +0000 (03:50 +0000)]
r18807: don't overtax the imaginations of servers that can't do mkdir on \\dirname\\
(This used to be commit 6f2b585f8eb0feb79c0a9d11f1cae3b16e8f162f)

16 years agor18806: fixed two spelling errors
Andrew Tridgell [Fri, 22 Sep 2006 03:49:40 +0000 (03:49 +0000)]
r18806: fixed two spelling errors
(This used to be commit f11112d7f0a6b1550008fd8192be2592412fb222)

16 years agor18805: make error message match function name
Andrew Tridgell [Fri, 22 Sep 2006 03:49:24 +0000 (03:49 +0000)]
r18805: make error message match function name
(This used to be commit e46d8ed53f8eb4ba596ab6fc1924eb7f1829a3df)

16 years agor18800: fix a write behind the buffer bug...
Stefan Metzmacher [Thu, 21 Sep 2006 22:55:00 +0000 (22:55 +0000)]
r18800: fix a write behind the buffer bug...

Thanks Herb for finding this:-)

This was my bug, I typed it in on gd's laptop and he just run 'svn ci'

metze
(This used to be commit 3c08e29f4fdde586084bdcf1b36eaf92ae944750)

16 years agor18786: I moved the usnChanged code around, and it now loaded in a different
Andrew Bartlett [Thu, 21 Sep 2006 16:42:56 +0000 (16:42 +0000)]
r18786: I moved the usnChanged code around, and it now loaded in a different
module.  I forgot to commit this last night.

Andrew Bartlett
(This used to be commit 6c5f4af01fea1e3b38d18d5b1491cb22701317cf)

16 years agor18783: fix make pch
Stefan Metzmacher [Thu, 21 Sep 2006 07:35:30 +0000 (07:35 +0000)]
r18783: fix make pch

metze
(This used to be commit e2b16a09b3363d3a72edce03724cb05204f2a350)

16 years agor18782: Do not send random data to the password change (although that reveals
Günther Deschner [Thu, 21 Sep 2006 07:19:47 +0000 (07:19 +0000)]
r18782: Do not send random data to the password change (although that reveals
interesting new password set tests), make sure to send valid characters.

Guenther
(This used to be commit f193c5347cf5ef019becbc98965b83c6b249483c)

16 years agor18781: Move the usnCreated and usnChanged handling around again.
Andrew Bartlett [Thu, 21 Sep 2006 06:44:12 +0000 (06:44 +0000)]
r18781: Move the usnCreated and usnChanged handling around again.

This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb.  For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.

This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.

To assist this, we also store the last modified time in the TDB,
whenever we change a value.

Andrew Bartlett
(This used to be commit 72858f859483c0c532dddb2c146d6bd7b9be5072)

16 years agor18780: Add convenience "make testenv" to launch the xtermtest Andrew just added.
Jelmer Vernooij [Thu, 21 Sep 2006 06:42:52 +0000 (06:42 +0000)]
r18780: Add convenience "make testenv" to launch the xtermtest Andrew just added.
(This used to be commit e2cf38eca0f6fd632a9f544837eea90d66fd9cc6)

16 years agor18779: Not simo's fault, this is actually a bug I introduced a week ago, when I...
Andrew Bartlett [Thu, 21 Sep 2006 06:34:21 +0000 (06:34 +0000)]
r18779: Not simo's fault, this is actually a bug I introduced a week ago, when I fixed the previous bug in this code.

We need to remove fragments from the incoming fragment list, or else
we leak (actually, we walk free()'ed data as we add/remove elements).

Andrew Bartlett
(This used to be commit 77473d2ef9a7673cebb56b398acf390fd51a08c8)

16 years agor18777: add helper functions to create an ldb_request structure
Simo Sorce [Thu, 21 Sep 2006 06:14:32 +0000 (06:14 +0000)]
r18777: add helper functions to create an ldb_request structure
(This used to be commit bcbe82873f2f0a4e2552ed27eb171028de4560a7)

16 years agor18776: Fill in and test dfs_ManagerInitialize().
Günther Deschner [Thu, 21 Sep 2006 06:06:59 +0000 (06:06 +0000)]
r18776: Fill in and test dfs_ManagerInitialize().

Guenther
(This used to be commit 3e0e9506b62322cba65d992fc8d783001595e7e7)

16 years agor18775: Performing an ldb op of 'do nothing' is pointless, and breaks against
Andrew Bartlett [Thu, 21 Sep 2006 05:44:39 +0000 (05:44 +0000)]
r18775: Performing an ldb op of 'do nothing' is pointless, and breaks against
OpenLDAP.

Andrew Bartlett
(This used to be commit 9ce88a8917d383104c47f794a8c554c43d13e383)

16 years agor18774: This allows an automated way to setup the test environment in a shell,
Andrew Bartlett [Thu, 21 Sep 2006 05:42:56 +0000 (05:42 +0000)]
r18774: This allows an automated way to setup the test environment in a shell,
with all the helpful env variables set.

TEST_LDAP=yes script/tests/selftest.sh st/ xterm SOCKET_WRAPPER

Andrew Bartlett
(This used to be commit 1a48fa96bc4b096a72bf5e4455aaa43c63966c10)

16 years agor18770: Avoid crashes and fix up other issues in the client-side paged_searches module.
Andrew Bartlett [Thu, 21 Sep 2006 04:52:49 +0000 (04:52 +0000)]
r18770: Avoid crashes and fix up other issues in the client-side paged_searches module.

In particular, we must query the remote server to find out if paged
searches are supported, not the local ldb.

This patch also removes the ue of bool, and returns it to LDB error codes.

Andrew Bartlett
(This used to be commit d36d05858bb9b87802f5ffb83285ef12b9646741)

16 years agor18769: Re-enable __VA_ARGS__ test (but don't make it fatal)
Jelmer Vernooij [Thu, 21 Sep 2006 04:48:41 +0000 (04:48 +0000)]
r18769: Re-enable __VA_ARGS__ test (but don't make it fatal)
(This used to be commit cc8c403de8c6558031c14f929a485361b7eb0222)

16 years agor18768: Fix some warnings.
Jelmer Vernooij [Thu, 21 Sep 2006 04:33:19 +0000 (04:33 +0000)]
r18768: Fix some warnings.
(This used to be commit ac6c925f64f348e27a95f687398d1aaa913fd846)

16 years agor18767: Fix [ref] pointer in object oriented interfaces. Removes a
Jelmer Vernooij [Thu, 21 Sep 2006 04:26:31 +0000 (04:26 +0000)]
r18767: Fix [ref] pointer in object oriented interfaces. Removes a
bunch of warnings when compiling dcom.idl.
(This used to be commit 6f6dd761460e063eda3c1d0706358cb336c181fd)

16 years agor18766: Getting rid of one test_GetManagerVersion() call and fix the build.
Günther Deschner [Thu, 21 Sep 2006 03:36:10 +0000 (03:36 +0000)]
r18766: Getting rid of one test_GetManagerVersion() call and fix the build.

Guenther
(This used to be commit dc9045b30c97e676a4d77356d3430f7337089ab5)

16 years agor18765: Fill in dfs_SetInfo() IDL and align function arguments with the names
Günther Deschner [Thu, 21 Sep 2006 03:11:51 +0000 (03:11 +0000)]
r18765: Fill in dfs_SetInfo() IDL and align function arguments with the names
found in the documentation.

Guenther
(This used to be commit 56d16c10ef35eb160528381c81fd4561e49c3531)

16 years agor18764: Test all standalone DFS root functions in the torture test.
Günther Deschner [Thu, 21 Sep 2006 02:45:02 +0000 (02:45 +0000)]
r18764: Test all standalone DFS root functions in the torture test.

Guenther
(This used to be commit 54f41ac444b9dd083ca1bd33bc8a2585f3c03344)

16 years agor18763: Removing old dfs_Add test, will be replaced with another one soon.
Günther Deschner [Thu, 21 Sep 2006 02:41:52 +0000 (02:41 +0000)]
r18763: Removing old dfs_Add test, will be replaced with another one soon.

Guenther
(This used to be commit eca9c200849d02006c171b7fe87b85054c26b7a5)

16 years agor18762: Fillin standalone DFS root functions IDL.
Günther Deschner [Thu, 21 Sep 2006 02:10:02 +0000 (02:10 +0000)]
r18762: Fillin standalone DFS root functions IDL.

Guenther
(This used to be commit a8a6d7b649eb8610d7ee6d666e3df91afb50ac01)

16 years agor18759: Do not use "simple" as test password as pointed out by Andrew Bartlett.
Günther Deschner [Wed, 20 Sep 2006 23:59:17 +0000 (23:59 +0000)]
r18759: Do not use "simple" as test password as pointed out by Andrew Bartlett.
Thanks metze.

Guenther
(This used to be commit ea313d55655626cd4c8058cf5e89c0baa1cdcd6d)

16 years agor18757: Disable this for now
Simo Sorce [Wed, 20 Sep 2006 23:52:58 +0000 (23:52 +0000)]
r18757: Disable this for now
(This used to be commit f84a130c4bda8cc0221fff324d93a8617cacc511)

16 years agor18753: expand the test so that it does a growing number of changes
Rafal Szczesniak [Wed, 20 Sep 2006 23:42:58 +0000 (23:42 +0000)]
r18753: expand the test so that it does a growing number of changes
(up to 8, currently) randomly generated _and_ verify if the
change has actually been made.

surprising results when running the test (I hope it's just
a bug somewhere in it or in the libnet code).

rafal
(This used to be commit 652a291145ac18de2734266ebba843abe659b7db)

16 years agor18752: When change is a big one, it needs to be made in a couple
Rafal Szczesniak [Wed, 20 Sep 2006 23:39:15 +0000 (23:39 +0000)]
r18752: When change is a big one, it needs to be made in a couple
of set user info calls one after another (each one using
different info level). Also, try to do as many changes as
possible using a single infolevel.

rafal
(This used to be commit cee9a69ffaa51f0a2a0e7dcf89e183b3925feb97)

16 years agor18751: Check for samr reject codes and their particular order.
Günther Deschner [Wed, 20 Sep 2006 23:32:56 +0000 (23:32 +0000)]
r18751: Check for samr reject codes and their particular order.

Guenther
(This used to be commit 8f9ab07e78a3c89085754c9f6447c2b56292980c)

16 years agor18750: Disable not updating the last-modifification-time of proto headers because...
Jelmer Vernooij [Wed, 20 Sep 2006 23:22:08 +0000 (23:22 +0000)]
r18750: Disable not updating the last-modifification-time of proto headers because this was confusing make.
(This used to be commit 4f5987e77f653984c60e3b34cd5aac5aa0a01124)

16 years agor18749: Disable automatic dependencies by default (use --enable-automatic-dependencie...
Jelmer Vernooij [Wed, 20 Sep 2006 23:19:37 +0000 (23:19 +0000)]
r18749: Disable automatic dependencies by default (use --enable-automatic-dependencies to reenable).
(This used to be commit 5506c404877434c403bbe3055c6dd6c32531c96d)

16 years agor18746: Fix the build.
Günther Deschner [Wed, 20 Sep 2006 22:31:04 +0000 (22:31 +0000)]
r18746: Fix the build.

Guenther
(This used to be commit 34cff06e25ce63e2e3e78f9191138d21189a60a8)

16 years agor18743: Mention share name in error output.
Günther Deschner [Wed, 20 Sep 2006 21:00:07 +0000 (21:00 +0000)]
r18743: Mention share name in error output.

Guenther
(This used to be commit 18505ce2834e768e8f9fe09f7dbf2a3e93290e91)

16 years agor18741: test dfs_Enum and dfs_EnumEx in the torture test.
Günther Deschner [Wed, 20 Sep 2006 20:40:45 +0000 (20:40 +0000)]
r18741: test dfs_Enum and dfs_EnumEx in the torture test.

Guenther
(This used to be commit de5fe8350d7c5812d4197ad2712275f338e43243)

16 years agor18740: Some more work around srvsvc
Simo Sorce [Wed, 20 Sep 2006 20:32:36 +0000 (20:32 +0000)]
r18740: Some more work around srvsvc
(This used to be commit be2f4a2c44ed2b4d586f0d6e9976158f33fb29d8)

16 years agor18738: Fill in dfs_VolumeState.
Günther Deschner [Wed, 20 Sep 2006 19:09:33 +0000 (19:09 +0000)]
r18738: Fill in dfs_VolumeState.

Hm, wondering if there is a better way to let that be composed out of
one dfs_VolumeFlavor flag and one dfs_VolumeState flag.

Guenther
(This used to be commit 152fcddebc459624002c002bd2ee457ff6bca9ba)

16 years agor18737: Fill in the documented dfs_Target_PriorityClass.
Günther Deschner [Wed, 20 Sep 2006 19:06:52 +0000 (19:06 +0000)]
r18737: Fill in the documented dfs_Target_PriorityClass.

Guenther
(This used to be commit d2805754a242a395d0322fb6b44965f41a81c217)

16 years agor18736: Fill in the dfs_PropertyFlags (verified with dfsutil.exe).
Günther Deschner [Wed, 20 Sep 2006 19:05:26 +0000 (19:05 +0000)]
r18736: Fill in the dfs_PropertyFlags (verified with dfsutil.exe).

Guenther
(This used to be commit f402f9898819a50886213e921f1136db40142ed6)

16 years agor18735: Fill in dfs_StorageState.
Günther Deschner [Wed, 20 Sep 2006 19:02:44 +0000 (19:02 +0000)]
r18735: Fill in dfs_StorageState.

Guenther
(This used to be commit 4b767d6eefe66e742980cbad3f5bbbf941556820)