Andrew Tridgell [Thu, 5 Apr 2007 04:08:00 +0000 (04:08 +0000)]
r22083: opendb backend to ctdb now passes simple tests
Andrew Tridgell [Thu, 5 Apr 2007 03:51:49 +0000 (03:51 +0000)]
r22082: merged the ctdb changes from bzr
added opendb ctdb backend from ronnie
Andrew Tridgell [Thu, 5 Apr 2007 03:22:08 +0000 (03:22 +0000)]
r22081: transaction_brlock() should be static
thanks to Ted T'so for pointing this out
Jelmer Vernooij [Wed, 4 Apr 2007 14:24:44 +0000 (14:24 +0000)]
r22077: Import only necessary test variables, more refactoring.
Andrew Bartlett [Wed, 4 Apr 2007 12:40:19 +0000 (12:40 +0000)]
r22076: Fill in short and long domain names into the generated krb5.conf
Andrew Bartlett [Wed, 4 Apr 2007 12:39:44 +0000 (12:39 +0000)]
r22075: Configure the bitwise match plugin, until it becomes accepted upstream.
Andrew Bartlett
Jelmer Vernooij [Wed, 4 Apr 2007 12:23:10 +0000 (12:23 +0000)]
r22074: More refactoring.
Andrew Tridgell [Wed, 4 Apr 2007 06:06:52 +0000 (06:06 +0000)]
r22072: in order to implement the opendb ctdb backend, I've found that the
existing ctdb_call() mechanism isn't sufficient. The main problem is
that the operations on the record need to be done with a lock held
while a local posix file operation is happening. We can't use a
ctdb_call callback function to do the actual file opens, renames,
unlinks etc as the callback would run on the wrong node.
So this commit adds the prototypes for two new ctdb API functions
which will make a opendb backend easier. Volker will probably
recognise these functions as they are basically the same as what he
did in his earlier Samba clustering code :-)
Andrew Tridgell [Wed, 4 Apr 2007 04:57:30 +0000 (04:57 +0000)]
r22070: merge in the changes from the bzr ctdb tree, and convert the brlock
ctdb backend to use the updated multi-database API
Jelmer Vernooij [Tue, 3 Apr 2007 22:43:35 +0000 (22:43 +0000)]
r22063: Fix the RPC-EPMAPPER test.
Stefan Metzmacher [Tue, 3 Apr 2007 09:08:18 +0000 (09:08 +0000)]
r22053: remove samba3 specific stuff from tdbtool
should I merge this to SAMBA_3_0? as it's also totally
broken there, as the connection_struct definition is completely
different
metze
Stefan Metzmacher [Tue, 3 Apr 2007 07:04:37 +0000 (07:04 +0000)]
r22052: merge tdbtool from samba3 and build it
metze
James Peach [Mon, 2 Apr 2007 21:26:32 +0000 (21:26 +0000)]
r22048: Sigh. Commit the other half of r22047.
James Peach [Mon, 2 Apr 2007 21:21:56 +0000 (21:21 +0000)]
r22047: Move suffix rules into smb_build. Enable $< if we are building with
GNU Make. This lets GNU Make users bild with $srcdir != $builddir.
James Peach [Mon, 2 Apr 2007 20:19:00 +0000 (20:19 +0000)]
r22046: Rever r22040, which breaks the build on FreeBSD 5.4 (BSD make).
Stefan Metzmacher [Mon, 2 Apr 2007 18:56:25 +0000 (18:56 +0000)]
r22041: merge trivial changes from samba3
metze
James Peach [Mon, 2 Apr 2007 18:43:31 +0000 (18:43 +0000)]
r22040: Use $< to specify the immediate prerequisit instead of $*. This is
needed for VPATH to find the correct files when srcdir != builddir.
This checkin is a test to see which platforms this change will break.
Stefan Metzmacher [Mon, 2 Apr 2007 18:14:27 +0000 (18:14 +0000)]
r22038: - fix perl warning
- use the same if statement as in input.pm
metze
James Peach [Mon, 2 Apr 2007 17:29:03 +0000 (17:29 +0000)]
r22037: Make sure STATICDIR exists before linking a static archive.
James Peach [Mon, 2 Apr 2007 17:26:18 +0000 (17:26 +0000)]
r22036: Make sure both srcdir and builddir are in VPATH.
James Peach [Mon, 2 Apr 2007 17:23:23 +0000 (17:23 +0000)]
r22035: Introduce HOSTLD which is needed to link the asn1 compiler when cross
compiling.
James Peach [Mon, 2 Apr 2007 17:17:40 +0000 (17:17 +0000)]
r22034: Use builddir and srcdir instead on samba_builddir and samba_srcdir.
James Peach [Mon, 2 Apr 2007 17:14:43 +0000 (17:14 +0000)]
r22032: Make sure static libraries end up in bin/static.
James Peach [Mon, 2 Apr 2007 17:11:36 +0000 (17:11 +0000)]
r22031: Make sure we rewrite the include directives in CFLAGS to contain
paths from builddir and srcdir. builddir has precedence.
James Peach [Mon, 2 Apr 2007 17:08:21 +0000 (17:08 +0000)]
r22030: Simplify include parsing for config.mk files, making sure we get
it right for the srcdir != builddir case. Emit some comment lines
that can be used to figure out which parts of the Makefile output
is generated from which config files.
James Peach [Mon, 2 Apr 2007 17:06:14 +0000 (17:06 +0000)]
r22029: Make sure we respect $srcdir correctly for the srcdir != builddir case.
James Peach [Mon, 2 Apr 2007 17:03:30 +0000 (17:03 +0000)]
r22028: Fix include path for the srcidr != builddir case.
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.
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
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!)
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.
rafal
Jelmer Vernooij [Wed, 28 Mar 2007 22:52:37 +0000 (22:52 +0000)]
r22004: Check for dereferencing null pointers.
Patch by Ronnie Sahlberg.
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.
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.
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
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
James Peach [Fri, 23 Mar 2007 20:28:45 +0000 (20:28 +0000)]
r21951: Hopefully fix valgrind warning.
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.
Stefan Metzmacher [Fri, 23 Mar 2007 09:11:53 +0000 (09:11 +0000)]
r21943: don't send unitialized data
metze
Stefan Metzmacher [Thu, 22 Mar 2007 08:17:30 +0000 (08:17 +0000)]
r21928: fix the interface uuid of wzcsvc.
see http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_wzcsvc.html
and http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_scheduler.html
thanks to jbm for the report!
metze
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.
Jelmer Vernooij [Wed, 21 Mar 2007 16:26:25 +0000 (16:26 +0000)]
r21910: Clean up some unused functions.
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
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.
rafal
Stefan Metzmacher [Fri, 16 Mar 2007 16:35:44 +0000 (16:35 +0000)]
r21859: add a comment why we remove the rid_crypt obfuscation
metze
Rafal Szczesniak [Fri, 16 Mar 2007 00:19:40 +0000 (00:19 +0000)]
r21852: Further work on initialising libnet context from netmgr.
rafal
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
anymore
metze
Stefan Metzmacher [Thu, 15 Mar 2007 07:22:49 +0000 (07:22 +0000)]
r21842: fix typo in comment
metze
Rafal Szczesniak [Wed, 14 Mar 2007 23:25:54 +0000 (23:25 +0000)]
r21841: Rename the method and check parameters more strictly.
rafal
Stefan Metzmacher [Wed, 14 Mar 2007 19:10:21 +0000 (19:10 +0000)]
r21839: add my email address
metze
Stefan Metzmacher [Wed, 14 Mar 2007 12:07:56 +0000 (12:07 +0000)]
r21838: generate no metadata for constructed attributes
metze
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.
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
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.
Jelmer Vernooij [Tue, 13 Mar 2007 22:03:04 +0000 (22:03 +0000)]
r21834: Remove unnecessary includes
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.
Jelmer Vernooij [Tue, 13 Mar 2007 21:00:27 +0000 (21:00 +0000)]
r21832: Ignore some more autogenerated files.
Jelmer Vernooij [Tue, 13 Mar 2007 20:44:14 +0000 (20:44 +0000)]
r21830: Fix header installation, remove proto header with a single prototype.
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.
Jelmer Vernooij [Tue, 13 Mar 2007 20:08:44 +0000 (20:08 +0000)]
r21828: Hardcode prototypes, as they're a public API.
Stefan Metzmacher [Tue, 13 Mar 2007 18:17:31 +0000 (18:17 +0000)]
r21827: move comments to the place where the functionality is implemented
metze
Stefan Metzmacher [Tue, 13 Mar 2007 18:12:21 +0000 (18:12 +0000)]
r21826: reorder functions
metze
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
metze
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
metze
Stefan Metzmacher [Tue, 13 Mar 2007 11:10:48 +0000 (11:10 +0000)]
r21817: give fields a meaning
metze
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
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
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().
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.
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).
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. :-)
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.
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
DRSUAPI work.
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
Andrew Bartlett [Mon, 12 Mar 2007 23:39:00 +0000 (23:39 +0000)]
r21805: Add PAC_TYPE_CONSTRAINED_DELEGATION to the PAC_TYPE enum.
Stefan Metzmacher [Mon, 12 Mar 2007 16:05:57 +0000 (16:05 +0000)]
r21799: tell roken.h.in to not generate prototypes for setenv() and unsetenv()
metze
Stefan Metzmacher [Mon, 12 Mar 2007 11:37:12 +0000 (11:37 +0000)]
r21798: unsetenv() returns void on some platforms (BSD)
metze
Stefan Metzmacher [Mon, 12 Mar 2007 11:32:19 +0000 (11:32 +0000)]
r21797: remove the key directly from the environ array
inspired by:
http://cvs.linux-ha.org/viewcvs/viewcvs.cgi/linux-ha/replace/unsetenv.c?rev=1.4&view=auto
metze
Stefan Metzmacher [Mon, 12 Mar 2007 11:31:06 +0000 (11:31 +0000)]
r21796: check if unsetenv() works on an non-existing key
metze
Stefan Metzmacher [Mon, 12 Mar 2007 10:12:27 +0000 (10:12 +0000)]
r21795: fix the prototype of unsetenv()...
metze
Stefan Metzmacher [Mon, 12 Mar 2007 09:59:48 +0000 (09:59 +0000)]
r21794: add setenv()/unsetenv() testsuite
metze
Stefan Metzmacher [Mon, 12 Mar 2007 09:59:06 +0000 (09:59 +0000)]
r21793: add replacement for unsetenv()
metze
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
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
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
Rafal Szczesniak [Sun, 11 Mar 2007 18:37:45 +0000 (18:37 +0000)]
r21788: Add new JSON-RPC services.
rafal
Rafal Szczesniak [Sun, 11 Mar 2007 18:36:36 +0000 (18:36 +0000)]
r21787: Add new module to the swat application.
rafal
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.
rafal
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
metze
Stefan Metzmacher [Fri, 9 Mar 2007 07:20:50 +0000 (07:20 +0000)]
r21772: add DS_BEHAVIOR_WIN2003_INTERIM constant
metze
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
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
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
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
Andrew Bartlett [Wed, 7 Mar 2007 11:42:21 +0000 (11:42 +0000)]
r21746: We don't link in this file any more.
Andrew Bartlett [Wed, 7 Mar 2007 11:35:06 +0000 (11:35 +0000)]
r21745: indent
Andrew Bartlett [Wed, 7 Mar 2007 11:15:44 +0000 (11:15 +0000)]
r21744: Test more talloc failure cases.
Andrew Bartlett
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
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
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
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