12 years agor22028: Fix include path for the srcidr != builddir case.
James Peach [Mon, 2 Apr 2007 17:03:30 +0000 (17:03 +0000)]
r22028: Fix include path for the srcidr != builddir case.
(This used to be commit a6141d40b15d52d40998c6206d632a27122a0060)

12 years agor22027: Allow separate build and source directories. Don't follow symlinks
James Peach [Mon, 2 Apr 2007 17:02:52 +0000 (17:02 +0000)]
r22027: Allow separate build and source directories. Don't follow symlinks
when copying hemidal_build since this leads to traversal loops.
(This used to be commit ef32ad83d2edbd8fe638d1f5493b960d2e09b6ae)

12 years agor22025: patch from Ronnie to make locktest also test the behaviour of pid
Andrew Tridgell [Mon, 2 Apr 2007 07:06:49 +0000 (07:06 +0000)]
r22025: patch from Ronnie to make locktest also test the behaviour of pid
changes in the locks
(This used to be commit 369b185f291f73e4e92481952781c13d59c068fd)

12 years agor22021: use the pid specified in the individual locks, not the request pid, in
Andrew Tridgell [Mon, 2 Apr 2007 04:47:19 +0000 (04:47 +0000)]
r22021: use the pid specified in the individual locks, not the request pid, in
locking requests.

This fixes a bug noticed by Ronnie Sahlberg (thanks!)
(This used to be commit b4ac085816cbec93c9fd4543a7ce48c5f3f9dca6)

12 years agor22005: Add more code (doesn't work at the moment) preparing a place for
Rafal Szczesniak [Wed, 28 Mar 2007 23:01:35 +0000 (23:01 +0000)]
r22005: Add more code (doesn't work at the moment) preparing a place for
listing user accounts.

(This used to be commit aac34f79d05654d094c8d91ad8e8b7f8e17710d6)

12 years agor22004: Check for dereferencing null pointers.
Jelmer Vernooij [Wed, 28 Mar 2007 22:52:37 +0000 (22:52 +0000)]
r22004: Check for dereferencing null pointers.

Patch by Ronnie Sahlberg.
(This used to be commit fa5722111dede37d0d6f9a9d227b7ec3ae28f1d4)

12 years agor21996: Fix a bug for invalid casts of pointers.
Jelmer Vernooij [Tue, 27 Mar 2007 23:22:41 +0000 (23:22 +0000)]
r21996: Fix a bug for invalid casts of pointers.

Patch by Ronnie Sahlberg.
(This used to be commit 52a13ddf0242318785b05a8888640b2172435c45)

12 years agor21995: Patch from Ronnie Sahlberg.
Jelmer Vernooij [Tue, 27 Mar 2007 23:04:08 +0000 (23:04 +0000)]
r21995: Patch from Ronnie Sahlberg.

Change the signatures for all functions it generates to specify
_U_ so that GCC "parameter not used" warnings are suppressed.
(This used to be commit ec6c503e9d077103c3fecff08400beb2a28e462d)

12 years agor21971: Fill in some more values in config files from variables, so we can
Andrew Bartlett [Tue, 27 Mar 2007 08:06:05 +0000 (08:06 +0000)]
r21971: Fill in some more values in config files from variables, so we can
better setup multiple environments.

Run the mk-keyblobs script before we need variables it defines.

Andrew Bartlett
(This used to be commit 448ffc68f35f54ea9e754764311eceaf84b465da)

12 years agor21970: Ensure that Fedora DS can be shut down correctly with the stop script:
Andrew Bartlett [Tue, 27 Mar 2007 04:21:16 +0000 (04:21 +0000)]
r21970: Ensure that Fedora DS can be shut down correctly with the stop script:
This needs the pid file to be in the right spot.

Andrew Bartlett
(This used to be commit cf9993a309ffe605610e4aaa2281576f319b5df0)

12 years agor21951: Hopefully fix valgrind warning.
James Peach [Fri, 23 Mar 2007 20:28:45 +0000 (20:28 +0000)]
r21951: Hopefully fix valgrind warning.
(This used to be commit e5d0487f3196da4e5aa79a6f285b3f3d23d303ca)

12 years agor21949: After discussion with the Apple and Linux client maintainers,
James Peach [Fri, 23 Mar 2007 19:24:21 +0000 (19:24 +0000)]
r21949: After discussion with the Apple and Linux client maintainers,
changing the FindFirst response for the UNIX_INFO2 level to include
a length field before the name. The name is not required to be null
terminated. the lenght field does not count any null.
(This used to be commit eef672bfff6b112ceceec2a58c78042352e83276)

12 years agor21943: don't send unitialized data
Stefan Metzmacher [Fri, 23 Mar 2007 09:11:53 +0000 (09:11 +0000)]
r21943: don't send unitialized data

(This used to be commit 7cb01a64953580d72bda3a8ddb727b5abd1ec0ff)

12 years agor21928: fix the interface uuid of wzcsvc.
Stefan Metzmacher [Thu, 22 Mar 2007 08:17:30 +0000 (08:17 +0000)]
r21928: fix the interface uuid of wzcsvc.


thanks to jbm for the report!

(This used to be commit 8bc1316741e59da100aee434617136136fdedb3f)

12 years agor21911: Some more work on making the ncacn_np handling in smbd be less special.
Jelmer Vernooij [Wed, 21 Mar 2007 17:05:39 +0000 (17:05 +0000)]
r21911: Some more work on making the ncacn_np handling in smbd be less special.
(This used to be commit 52f32b7330ee1a2dd5850fd0e412279777edc00d)

12 years agor21910: Clean up some unused functions.
Jelmer Vernooij [Wed, 21 Mar 2007 16:26:25 +0000 (16:26 +0000)]
r21910: Clean up some unused functions.
(This used to be commit 36cd3406db06e3101cfede2f3935879cb11eeb93)

12 years agor21909: Merge some of my recent improvements to the test infrastructure:
Jelmer Vernooij [Wed, 21 Mar 2007 15:57:07 +0000 (15:57 +0000)]
r21909: Merge some of my recent improvements to the test infrastructure:
- Allow tests to specify what environment they need to run in (dc and none are thecurrent supported ones).

- Move more Samba4-specific code out of the common code
(This used to be commit dbe9de10287c902f4a5ea5d431dea4a79f9b170b)

12 years agor21896: - Enable creating default NetContext when no explicit credentials are
Rafal Szczesniak [Tue, 20 Mar 2007 22:44:22 +0000 (22:44 +0000)]
r21896: - Enable creating default NetContext when no explicit credentials are
  passed. In such case use what's been provided on swat session logon.
- Create a proper NetContext object only once and add it to the resources
  for later use.

(This used to be commit 106779fcf3bf96eaa82adfa020a31a4634afda43)

12 years agor21859: add a comment why we remove the rid_crypt obfuscation
Stefan Metzmacher [Fri, 16 Mar 2007 16:35:44 +0000 (16:35 +0000)]
r21859: add a comment why we remove the rid_crypt obfuscation

(This used to be commit e44b6df1387096989726c0a68189fe6c4e37dfd7)

12 years agor21852: Further work on initialising libnet context from netmgr.
Rafal Szczesniak [Fri, 16 Mar 2007 00:19:40 +0000 (00:19 +0000)]
r21852: Further work on initialising libnet context from netmgr.

(This used to be commit 2ee075605e54813ebdae20995deb0e090faa5a9a)

12 years agor21843: the computer_dn isn't needed anymore because we don't manually reset the...
Stefan Metzmacher [Thu, 15 Mar 2007 13:21:54 +0000 (13:21 +0000)]
r21843: the computer_dn isn't needed anymore because we don't manually reset the password

(This used to be commit fee2c6d13de8752b7e6c379cdf6a3f5fcb4a29a6)

12 years agor21842: fix typo in comment
Stefan Metzmacher [Thu, 15 Mar 2007 07:22:49 +0000 (07:22 +0000)]
r21842: fix typo in comment

(This used to be commit 8fcd5209ae46823f7d99bddff6e61873e75dd24c)

12 years agor21841: Rename the method and check parameters more strictly.
Rafal Szczesniak [Wed, 14 Mar 2007 23:25:54 +0000 (23:25 +0000)]
r21841: Rename the method and check parameters more strictly.

(This used to be commit 6824172940e175f2af6ab2c9c25a1495f024de42)

12 years agor21839: add my email address
Stefan Metzmacher [Wed, 14 Mar 2007 19:10:21 +0000 (19:10 +0000)]
r21839: add my email address

(This used to be commit e3be33c1d9f9e44ef37e6ef72a23576474f6e725)

12 years agor21838: generate no metadata for constructed attributes
Stefan Metzmacher [Wed, 14 Mar 2007 12:07:56 +0000 (12:07 +0000)]
r21838: generate no metadata for constructed attributes

(This used to be commit 7e0620e524886a66dbdb16f35fee4f51f2867a2a)

12 years agor21837: Make dcerpc_mgmt a separate library again, as the linker leaves it out when...
Jelmer Vernooij [Wed, 14 Mar 2007 00:44:29 +0000 (00:44 +0000)]
r21837: Make dcerpc_mgmt a separate library again, as the linker leaves it out when it's part of dcerpc.
(This used to be commit dc4428553ec2749ef1ba24fbffeaabf0af6bf364)

12 years agor21836: Assume that if an OpenLDAP system is 'modular' then everything is a
Andrew Bartlett [Tue, 13 Mar 2007 23:16:09 +0000 (23:16 +0000)]
r21836: Assume that if an OpenLDAP system is 'modular' then everything is a
module, so we have to bring in syncprov too.

Andrew Bartlett
(This used to be commit b9d06c70adcf34d3272797027b6cf89a174b862a)

12 years agor21835: fixed a rpc server bug where we failed to remove a call from one
Andrew Tridgell [Tue, 13 Mar 2007 22:58:23 +0000 (22:58 +0000)]
r21835: fixed a rpc server bug where we failed to remove a call from one
linked list when moving it to another. This could cause a valgrind
error under the RPC-SCANNER test.
(This used to be commit 9ba8c008513e362fbb860af899006505cadb4a2f)

12 years agor21834: Remove unnecessary includes
Jelmer Vernooij [Tue, 13 Mar 2007 22:03:04 +0000 (22:03 +0000)]
r21834: Remove unnecessary includes
(This used to be commit 7d10e192caa60b816466a9deddf736afd2445080)

12 years agor21833: Don't install static libs, they can't be used anyway.
Jelmer Vernooij [Tue, 13 Mar 2007 21:47:57 +0000 (21:47 +0000)]
r21833: Don't install static libs, they can't be used anyway.
(This used to be commit 6fb7097edfa222234505a4223c627dd506f5df7d)

12 years agor21832: Ignore some more autogenerated files.
Jelmer Vernooij [Tue, 13 Mar 2007 21:00:27 +0000 (21:00 +0000)]
r21832: Ignore some more autogenerated files.
(This used to be commit f7fc7e21922355afb5c66cf6b5afb69ad79a9b46)

12 years agor21830: Fix header installation, remove proto header with a single prototype.
Jelmer Vernooij [Tue, 13 Mar 2007 20:44:14 +0000 (20:44 +0000)]
r21830: Fix header installation, remove proto header with a single prototype.
(This used to be commit 47a17a741af625eb52f611b3d0f3ea0e207f2c3a)

12 years agor21829: Integrate mgmt in libdcerpc. We have enough libraries as it is and mgmt...
Jelmer Vernooij [Tue, 13 Mar 2007 20:26:35 +0000 (20:26 +0000)]
r21829:  Integrate mgmt in libdcerpc. We have enough libraries as it is and mgmt is part of the DCE/RPC standard.
(This used to be commit b0d05727b4e2688f182ae3427e3215b22562ae6c)

12 years agor21828: Hardcode prototypes, as they're a public API.
Jelmer Vernooij [Tue, 13 Mar 2007 20:08:44 +0000 (20:08 +0000)]
r21828: Hardcode prototypes, as they're a public API.
(This used to be commit 02ae0b9cde8a18498bc72583d8cac9b0217da4ad)

12 years agor21827: move comments to the place where the functionality is implemented
Stefan Metzmacher [Tue, 13 Mar 2007 18:17:31 +0000 (18:17 +0000)]
r21827: move comments to the place where the functionality is implemented

(This used to be commit 5d49d8b9e149d320cb08c5c2a4fc4cb8bfd74129)

12 years agor21826: reorder functions
Stefan Metzmacher [Tue, 13 Mar 2007 18:12:21 +0000 (18:12 +0000)]
r21826: reorder functions

(This used to be commit 3d0a810ccd5d7490d46f91ca6aef6052ca0c56c3)

12 years agor21821: move comment about the becoming a dc to the code which implements it
Stefan Metzmacher [Tue, 13 Mar 2007 15:41:25 +0000 (15:41 +0000)]
r21821: move comment about the becoming a dc to the code which implements it
and extent the comments a bit

(This used to be commit 16c958600ea6d4481f32081262bf8bae4b56a247)

12 years agor21820: move function, so that all are in top-down order as they get called
Stefan Metzmacher [Tue, 13 Mar 2007 14:32:20 +0000 (14:32 +0000)]
r21820: move function, so that all are in top-down order as they get called

(This used to be commit 38bb7f5445cf1d1a52a9edb21475ed2d5ed20ce4)

12 years agor21817: give fields a meaning
Stefan Metzmacher [Tue, 13 Mar 2007 11:10:48 +0000 (11:10 +0000)]
r21817: give fields a meaning

(This used to be commit 521355b57b74dbdccc6ae15738345e1d989ce262)

12 years agor21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
Andrew Tridgell [Tue, 13 Mar 2007 04:42:49 +0000 (04:42 +0000)]
r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 37aa32e2fe4829ec467c606cfcc7485508a2682c)

12 years agor21812: fixed an integer overflow error in the ndr push code.
Andrew Tridgell [Tue, 13 Mar 2007 04:18:07 +0000 (04:18 +0000)]
r21812: fixed an integer overflow error in the ndr push code.

This needs to be fixed in Samba3 as well. It might be exploitable (I
haven't confirmed one way or the other), so I think this should be
fixed for 3.0.25
(This used to be commit 4766175ff2d0de8af92046e29280c7893ac8fe1f)

12 years agor21811: fixed a queueing error in the dcerpc client code. WHen the
Andrew Tridgell [Tue, 13 Mar 2007 03:43:16 +0000 (03:43 +0000)]
r21811: fixed a queueing error in the dcerpc client code. WHen the
dcerpc_ship_next_request() logic was added the penidng queue was split
in two, but we also needed to update the code which removes requests
from the queue to know about the two queues. Following the pattern
used in other client libs, I based which queue to remove from on
req->state, and added a new state RPC_REQUEST_QUEUED. This fixes a
crash that happens when rpc requests time out.

This patch also fixes the handling of timed out bind requests, and the
talloc_reference handling in dcerpc_ndr_request_recv().
(This used to be commit f51a129b52d53059cc1567538f986400c0ea5602)

12 years agor21810: - The height of a widget is in relation to its enclosing widget. Specifying a
Derrell Lipman [Tue, 13 Mar 2007 02:58:05 +0000 (02:58 +0000)]
r21810: - The height of a widget is in relation to its enclosing widget.  Specifying a
  height of 100% means that if the enclosing widget is 100 pixels high, this
  widget should be 100 pixels high.  If this widget is then placed someplace
  other than at the top of the enclosing widget, e.g. with top:20, the bottom
  of this widget will fall off the bottom of the enclosing widget.

  The normal way to solve this is to specify top and bottom attributes rather
  than top and height attributes.  Also, since widgets often look better if
  they don't extend all the way to the very bottom, specifying a bottom
  attribute equal to the top attribute typically has an appealing appearance.

  I've fixed the tree widget so it no longer falls off the bottom of the page.
(This used to be commit 44d5f5ec6db76c981f94e7322f82592e5d85be9f)

12 years agor21809: - If the canvas is never initialized with the tree, the tree will never
Derrell Lipman [Tue, 13 Mar 2007 02:54:06 +0000 (02:54 +0000)]
r21809: - If the canvas is never initialized with the tree, the tree will never
  appear.  Now that the finite state machine properly ignores events from
  widgets which are not handled, the initialization of the tree should be done
  when the module's canvas appears (i.e. just after the canvas has had the
  module's gui applied to it).
(This used to be commit ab620c9554642f1289d6d0136fb104e475f22316)

12 years agor21808: - Fix a nasty bug in the finite state machine that allowed an event from a
Derrell Lipman [Tue, 13 Mar 2007 02:51:49 +0000 (02:51 +0000)]
r21808: - Fix a nasty bug in the finite state machine that allowed an event from a
  non-handled widget to be processed as if the event originated from a handled
  widget.  This was allowing the appear event for the module's canvas in
  Mimir's Net Manager (an event which was not handled) to load the tree,
  followed by the tree appear event (intended to be handled, albeit
  incorrectly -- see subsequent check-in of Mimir's Fsm.js) to again load the
  tree, thus the double entry.

  Wow, the above paragraph is really hard to read. :-)
(This used to be commit 512dc61e846669311b1605c6c4e1b49241c1c8be)

12 years agor21807: modularise the opendb code, so different backends can be
Andrew Tridgell [Tue, 13 Mar 2007 01:47:04 +0000 (01:47 +0000)]
r21807: modularise the opendb code, so different backends can be
implemented. This will allow for a ctdb opendb backend.
(This used to be commit 6b91ca0968209ad17489341c78d9610607cc8320)

12 years agor21806: I've been working over the last week to fix up the LDAP backend for
Andrew Bartlett [Tue, 13 Mar 2007 00:59:06 +0000 (00:59 +0000)]
r21806: I've been working over the last week to fix up the LDAP backend for
Samba4.  This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his

I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue.  This ensures
consistency, and should help with finding issues like this in future.

As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.

I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request.  I need some help to generate a correct error packet when it is
marked critical.

Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...

Andrew Bartlett
(This used to be commit eef710668f91d1bbaa2d834d9e653e11c8aac817)

12 years agor21805: Add PAC_TYPE_CONSTRAINED_DELEGATION to the PAC_TYPE enum.
Andrew Bartlett [Mon, 12 Mar 2007 23:39:00 +0000 (23:39 +0000)]
(This used to be commit 6fb3b4be10d204bec61a1fddd1c50c1c24d52ebf)

12 years agor21799: tell to not generate prototypes for setenv() and unsetenv()
Stefan Metzmacher [Mon, 12 Mar 2007 16:05:57 +0000 (16:05 +0000)]
r21799: tell to not generate prototypes for setenv() and unsetenv()

(This used to be commit 974eb5eb6837685ee93efea814544cc7051c070e)

12 years agor21798: unsetenv() returns void on some platforms (BSD)
Stefan Metzmacher [Mon, 12 Mar 2007 11:37:12 +0000 (11:37 +0000)]
r21798: unsetenv() returns void on some platforms (BSD)

(This used to be commit 9cdb9f1cee9af47e42e11357397b828b86632805)

12 years agor21797: remove the key directly from the environ array
Stefan Metzmacher [Mon, 12 Mar 2007 11:32:19 +0000 (11:32 +0000)]
r21797: remove the key directly from the environ array

inspired by:

(This used to be commit 8787525e518805f8445a376dc4964921598cb2e0)

12 years agor21796: check if unsetenv() works on an non-existing key
Stefan Metzmacher [Mon, 12 Mar 2007 11:31:06 +0000 (11:31 +0000)]
r21796: check if unsetenv() works on an non-existing key

(This used to be commit c6b4f2d1518c989cacdc8869df89f02dc54857d7)

12 years agor21795: fix the prototype of unsetenv()...
Stefan Metzmacher [Mon, 12 Mar 2007 10:12:27 +0000 (10:12 +0000)]
r21795: fix the prototype of unsetenv()...

(This used to be commit 2952c20b779fc6c797e2ab33ba3bda19cbb7a00d)

12 years agor21794: add setenv()/unsetenv() testsuite
Stefan Metzmacher [Mon, 12 Mar 2007 09:59:48 +0000 (09:59 +0000)]
r21794: add setenv()/unsetenv() testsuite

(This used to be commit 3df206ddfadea5bf39a22e8c4c262764c79d302c)

12 years agor21793: add replacement for unsetenv()
Stefan Metzmacher [Mon, 12 Mar 2007 09:59:06 +0000 (09:59 +0000)]
r21793: add replacement for unsetenv()

(This used to be commit d6de7f2cda70cfd55f0f7fbb9f3b93a5a58c6f51)

12 years agor21791: This test is still just as valid without as much CPU time wasted.
Andrew Bartlett [Mon, 12 Mar 2007 01:05:26 +0000 (01:05 +0000)]
r21791: This test is still just as valid without as much CPU time wasted.

Andrew Bartlett
(This used to be commit 3549785700cb412fae0e58c530faa40683952d55)

12 years agor21790: Setup the socket_wrapper_dir when we set the environment variable.
Andrew Bartlett [Mon, 12 Mar 2007 00:24:03 +0000 (00:24 +0000)]
r21790: Setup the socket_wrapper_dir when we set the environment variable.

Andrew Bartlett
(This used to be commit 5c07dbd2487c5c23355ad0e3db6e9f9caf8ce145)

12 years agor21789: We do actually need this, to get a contextCSN attribute, which we need
Andrew Bartlett [Mon, 12 Mar 2007 00:16:24 +0000 (00:16 +0000)]
r21789: We do actually need this, to get a contextCSN attribute, which we need
for USN support.

Andrew Bartlett
(This used to be commit 5f363502434e88c16920b219d7a854a22fee658f)

12 years agor21788: Add new JSON-RPC services.
Rafal Szczesniak [Sun, 11 Mar 2007 18:37:45 +0000 (18:37 +0000)]
r21788: Add new JSON-RPC services.

(This used to be commit 78e123518cbc808424e776751f4112fbaa8b74eb)

12 years agor21787: Add new module to the swat application.
Rafal Szczesniak [Sun, 11 Mar 2007 18:36:36 +0000 (18:36 +0000)]
r21787: Add new module to the swat application.

(This used to be commit de0f7c42be10d87dd9e5f230bb8e708dfb4b740b)

12 years agor21786: My initial attempts in qooxdoo coding. Derrell, please take
Rafal Szczesniak [Sun, 11 Mar 2007 18:35:19 +0000 (18:35 +0000)]
r21786: My initial attempts in qooxdoo coding. Derrell, please take
a look and I'll have a lot of questions to you.

(This used to be commit d92604ebd2f9d8d2d0a8883c193110780102912f)

12 years agor21773: fix typo orginating -> originating
Stefan Metzmacher [Fri, 9 Mar 2007 10:09:37 +0000 (10:09 +0000)]
r21773: fix typo orginating -> originating

and use the struct member names in all cases

(This used to be commit c543ee57454d006c545e3e9e20c9ac0114081d3d)

12 years agor21772: add DS_BEHAVIOR_WIN2003_INTERIM constant
Stefan Metzmacher [Fri, 9 Mar 2007 07:20:50 +0000 (07:20 +0000)]
r21772: add DS_BEHAVIOR_WIN2003_INTERIM constant

(This used to be commit 59fffa7ba148a082d0cf13226d0577b3fcd7b5ad)

12 years agor21771: We just don't need to test this on more than one transport.
Andrew Bartlett [Fri, 9 Mar 2007 06:48:36 +0000 (06:48 +0000)]
r21771: We just don't need to test this on more than one transport.

Andrew Bartlett
(This used to be commit c55edacba5f45a756a01baa1bf6401b4815bada8)

12 years agor21761: - Give more detail on LDAP client library failures (make it clear
Andrew Bartlett [Thu, 8 Mar 2007 06:23:39 +0000 (06:23 +0000)]
r21761: - Give more detail on LDAP client library failures (make it clear
  where the error is from)

- Make default error string more consistant

Andrew Bartlett
(This used to be commit 7f115579d20a3112efd11444fafcbf78698fc9a1)

12 years agor21760: Try to pin down were some errors are coming from. Ensure we at least
Andrew Bartlett [Thu, 8 Mar 2007 03:32:28 +0000 (03:32 +0000)]
r21760: Try to pin down were some errors are coming from.  Ensure we at least
name the module.

Andrew Bartlett
(This used to be commit 2e85b1583b3da95db9b5b724b38748ff7d1f9efd)

12 years agor21751: These 2 tests pass for me, so add them to the standard test script.
Andrew Bartlett [Wed, 7 Mar 2007 20:33:15 +0000 (20:33 +0000)]
r21751: These 2 tests pass for me, so add them to the standard test script.

Andrew Bartlett
(This used to be commit 8a5b3067e9ec8d7810687cd0a4909c02bdb86d15)

12 years agor21746: We don't link in this file any more.
Andrew Bartlett [Wed, 7 Mar 2007 11:42:21 +0000 (11:42 +0000)]
r21746: We don't link in this file any more.
(This used to be commit 123ae858c77c2507bdac6a93be1e2932a3fd7375)

12 years agor21745: indent
Andrew Bartlett [Wed, 7 Mar 2007 11:35:06 +0000 (11:35 +0000)]
r21745: indent
(This used to be commit 7841b299061ec8f4f6a14720dbe4fa7108313848)

12 years agor21744: Test more talloc failure cases.
Andrew Bartlett [Wed, 7 Mar 2007 11:15:44 +0000 (11:15 +0000)]
r21744: Test more talloc failure cases.

Andrew Bartlett
(This used to be commit ddf7354986a800455b6f55c2fdbeb8bb39381716)

12 years agor21743: Always use the 'escaped' LDAPI path.
Andrew Bartlett [Wed, 7 Mar 2007 11:05:59 +0000 (11:05 +0000)]
r21743: Always use the 'escaped' LDAPI path.

Wait around for the server to start, so we don't try to contact it
during it's starup phase.

Andrew Bartlett
(This used to be commit f484b0a924809dd8c9861ade8d184fb44b3b5e1f)

12 years agor21742: reenable the smbclient test now that the d_printf bug is fixed
Andrew Tridgell [Wed, 7 Mar 2007 10:29:39 +0000 (10:29 +0000)]
r21742: reenable the smbclient test now that the d_printf bug is fixed
(This used to be commit f483f5b26a702cffb72a46e0f172d82c18471e26)

12 years agor21741: Like starting smbd, ensure we have acutally started slapd, and it is
Andrew Bartlett [Wed, 7 Mar 2007 10:17:50 +0000 (10:17 +0000)]
r21741: Like starting smbd, ensure we have acutally started slapd, and it is
listening, before we continue.

Andrew Bartlett
(This used to be commit 171540e06a3eb42320238ad81bc9993e86137dc7)

12 years agor21740: this fixes the real cause of the large log files we had. The problem
Andrew Tridgell [Wed, 7 Mar 2007 10:00:14 +0000 (10:00 +0000)]
r21740: this fixes the real cause of the large log files we had. The problem
was we were not checking the result of a convert_string() call, and it
was giving -1. We then passed -1 to fwrite() on stdout, which on aix
and macosx wrote all of available memory to stdout :)

To fix this, replace non-printing chars with ? in d_printf if the
string cannot be converted
(This used to be commit d20102d363f4b9214e29296ad8ec45c8d95614b5)

12 years agor21739: Make it easy to change the log level for the slapd processes, and have
Andrew Bartlett [Wed, 7 Mar 2007 05:29:12 +0000 (05:29 +0000)]
r21739: Make it easy to change the log level for the slapd processes, and have
the logs go to a file.

Andrew Bartlett
(This used to be commit 9aaa19319718a5a8fcc1df066cbce67eaa3431d8)

12 years agor21737: Print the error strings in the ejs ldb test.
Andrew Bartlett [Wed, 7 Mar 2007 04:25:52 +0000 (04:25 +0000)]
r21737: Print the error strings in the ejs ldb test.
(This used to be commit fed42cf5a359e8dcbabd82dba5b18058260ddc07)

12 years agor21736: Fix the smbclient test to do something more interesting with the last
Andrew Bartlett [Wed, 7 Mar 2007 04:20:10 +0000 (04:20 +0000)]
r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests.  Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.

To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().

Andrew Bartlett
(This used to be commit 3430d8c072407a1c33c32229095fc9db2142b6fa)

12 years agor21735: skip the smbclient test until jelmer can take a look at it. The
Andrew Tridgell [Wed, 7 Mar 2007 03:10:30 +0000 (03:10 +0000)]
r21735: skip the smbclient test until jelmer can take a look at it. The
current test makes no sense with the new test system. For example, it
does "mkdir bla" then "cd bla" then "cd ..", but it now does these as
separate smbclient commands, which makes no sense at all. It even
seems to try to run them in parallel???

The test fails (segfault, plus lots of errors), but gets reported as a
(This used to be commit 9e3bbdee50a5372fa79c493c1cf1c378f1068467)

12 years agor21733: Merge testenv back into core
Jelmer Vernooij [Wed, 7 Mar 2007 02:11:40 +0000 (02:11 +0000)]
r21733: Merge testenv back into core
(This used to be commit 4b78ed3a606b6697512f1e4e9b9c6c93816e71f8)

12 years agor21732: Use smbtorture for enumerating tests.
Jelmer Vernooij [Wed, 7 Mar 2007 01:46:02 +0000 (01:46 +0000)]
r21732: Use smbtorture for enumerating tests.
(This used to be commit f6aa921521ab6b091823643b7df30d2f5af620ab)

12 years agor21730: Reintroduce summary for testenv, remove old (no longer used) file.
Jelmer Vernooij [Tue, 6 Mar 2007 23:23:15 +0000 (23:23 +0000)]
r21730: Reintroduce summary for testenv, remove old (no longer used) file.
(This used to be commit 0140aa5fd9e634620d42b8c4cdd4f43c6b681102)

12 years agor21729: Some more tests
Jelmer Vernooij [Tue, 6 Mar 2007 23:03:34 +0000 (23:03 +0000)]
r21729: Some more tests
(This used to be commit d2baa8218cf504d6631d610f9fd393ad8c61574c)

12 years agor21728: Perhaps we don't need this on recent OpenLDAP servers. This overlay
Andrew Bartlett [Tue, 6 Mar 2007 22:54:42 +0000 (22:54 +0000)]
r21728: Perhaps we don't need this on recent OpenLDAP servers.  This overlay
is depricated.

Andrew Bartlett
(This used to be commit 32e39b377ac3b3592c226428728c4238f6c9f8f0)

12 years agor21727: Walk some more of the error branches in the ChangePasswordUser server.
Andrew Bartlett [Tue, 6 Mar 2007 22:22:25 +0000 (22:22 +0000)]
r21727: Walk some more of the error branches in the ChangePasswordUser server.

(This used to be commit c1ee06703ac09708a8ff10a641b593362f1bd309)

12 years agor21722: Add the dead record functionality presented on If
Volker Lendecke [Tue, 6 Mar 2007 10:11:15 +0000 (10:11 +0000)]
r21722: Add the dead record functionality presented on If
you do a tdb_set_max_dead(tdb, n), then for this tdb a delete operation will
only mark a record as dead and re-use it if a new record is created. The
parameter n allows for at most n dead records per hash chain. If this number
is exceeded, all dead records are put on the central freelist.

(This used to be commit 98a27ab28a3cd554e370a9a0e3652f4dea8749e9)

12 years agor21721: Push the 'Success! Your new directory server instance was created'
Andrew Bartlett [Tue, 6 Mar 2007 08:21:45 +0000 (08:21 +0000)]
r21721: Push the 'Success!  Your new directory server instance was created'
message to stderr.

Andrew Bartlett
(This used to be commit 0b8b3f66716a8602438d9e9268c25ea14c2f564f)

12 years agor21720: Try to make 'TEST_LDAP=yes make test' work again. These recent
Andrew Bartlett [Tue, 6 Mar 2007 06:30:36 +0000 (06:30 +0000)]
r21720: Try to make 'TEST_LDAP=yes make test' work again.  These recent
changes seem to have been lost in the merge, and some variables were
not yet exported.

Andrew Bartlett
(This used to be commit ee9d9fb6c0bd3d4d01dea771025536ff83057072)

12 years agor21719: Try to cover more of the server-side password processing.
Andrew Bartlett [Tue, 6 Mar 2007 05:30:25 +0000 (05:30 +0000)]
r21719: Try to cover more of the server-side password processing.

Don't just exit the test with 'return True', actually process the result.

Turn off password complexity checking for the password length test.

Andrew Bartlett
(This used to be commit 1a7635baa701c6268eebd84dd0dc187379c44e6e)

12 years agor21716: Report status in a way the build farm recognizes.
Jelmer Vernooij [Tue, 6 Mar 2007 00:45:30 +0000 (00:45 +0000)]
r21716: Report status in a way the build farm recognizes.
(This used to be commit 8d775e87b58d3f6d87338197728530c94b8c841b)

12 years agor21713: Redirect stderr output to stdout.
Jelmer Vernooij [Mon, 5 Mar 2007 23:12:50 +0000 (23:12 +0000)]
r21713: Redirect stderr output to stdout.
(This used to be commit a5000b286d6ffb847edf47404f82ff93173208c4)

12 years agor21712: Run tdb stress test.
Jelmer Vernooij [Mon, 5 Mar 2007 23:01:41 +0000 (23:01 +0000)]
r21712: Run tdb stress test.
(This used to be commit e480beb9569421da103aafb440eb687daa2359f3)

12 years agor21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
James Peach [Mon, 5 Mar 2007 22:26:38 +0000 (22:26 +0000)]
r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
(This used to be commit 7f56da2d1fa0718e5282bb4aea7d9a63a62f0bc7)

12 years agor21709: Add a list of tests that should be skipped rather than ad-hoc test skipping...
Jelmer Vernooij [Mon, 5 Mar 2007 22:24:21 +0000 (22:24 +0000)]
r21709: Add a list of tests that should be skipped rather than ad-hoc test skipping in various places.
(This used to be commit 01befd52111b8c183d78f9e0d80065fe0825b87c)

12 years agor21707: Finally merge my (long-living) perlselftest branch.
Jelmer Vernooij [Mon, 5 Mar 2007 21:28:55 +0000 (21:28 +0000)]
r21707: Finally merge my (long-living) perlselftest branch.

This changes the main selftest code to be in perl rather than in shell script.

The selftest script is now no longer a black box but a regular executable that takes

This adds the following features:

 * "make test TESTS=foo" will run only the tests that match the regex "foo"
 * ability to deal with expected failures. the suite will not warn about tests
   that fail and are known to fail, but will warn about other failing tests and
   tests that are succeeding tests but incorrectly marked as failing.
 * ability to print a summary with all failures at the end of the run

It also opens up the way to the following features, which I hope to implement later:
 * "environments", for example having a complete domains with DCs and domain members
 in a testenvironment
 * only set up smbd if necessary (not when running LOCAL tests, for example)
 * different mktestsetup scripts per target. except for the mktestsetup script, we can
   use the same infrastructure for samba 3 or windows.
(This used to be commit 38f867880beb40c691e9713f854426031310629c)

12 years agor21701: Fix ejs tests.
Jelmer Vernooij [Mon, 5 Mar 2007 14:18:07 +0000 (14:18 +0000)]
r21701: Fix ejs tests.
(This used to be commit e4cf8f1dea9063b9b83e629ea0e7a116bf4fc5f7)

12 years agor21700: Run mktestsetup as an external program. This guarantees that it can be used...
Jelmer Vernooij [Mon, 5 Mar 2007 13:51:05 +0000 (13:51 +0000)]
r21700: Run mktestsetup as an external program. This guarantees that it can be used for other selftest implementations (in particular the perl one I've been working on).
(This used to be commit aa29907327a91a64c769b1f2712f553e13964418)

12 years agor21699: Because TALLOC_CTX is a void*, I didn't get a compiler warning about
Andrew Bartlett [Mon, 5 Mar 2007 11:48:15 +0000 (11:48 +0000)]
r21699: Because TALLOC_CTX is a void*, I didn't get a compiler warning about
this incorrect argument.

This also fixes the server-side valgrind issue, but we need to chase
down the real issue.

Andrew Bartlett
(This used to be commit a0c78a75acb9bc581dd8d2688aa91d7b59549c3e)

12 years agor21698: Check for talloc failures.
Andrew Bartlett [Mon, 5 Mar 2007 10:28:24 +0000 (10:28 +0000)]
r21698: Check for talloc failures.

Andrew Bartlett
(This used to be commit c9eb5bf19a702af32a4e4f109a27e4076303efdc)

12 years agor21697: Try to cover the 'bad session key' codepaths too.
Andrew Bartlett [Mon, 5 Mar 2007 09:54:37 +0000 (09:54 +0000)]
r21697: Try to cover the 'bad session key' codepaths too.

Andrew Bartlett
(This used to be commit 33cfe1ca221de9ef9dec264772fb299125c39447)

12 years agor21696: Run the RPC-COUNTCALLS test to try and walk some of the NDR layer for
Andrew Bartlett [Mon, 5 Mar 2007 03:02:43 +0000 (03:02 +0000)]
r21696: Run the RPC-COUNTCALLS test to try and walk some of the NDR layer for
routines for which we don't have any tests.

Andrew Bartlett
(This used to be commit e5b9bdf03729a913f3c6cc7709abcbdf50899562)