Derrell Lipman [Sun, 14 Jan 2007 03:03:40 +0000 (03:03 +0000)]
r20753: editorial change
Derrell Lipman [Sun, 14 Jan 2007 02:56:09 +0000 (02:56 +0000)]
r20752: There's no reason to wait 5 seconds before the first Status and Statistics
report is generated. Upon "appear" events, set timer expiry to 0 seconds for
the first timeout.
Derrell Lipman [Sun, 14 Jan 2007 02:54:41 +0000 (02:54 +0000)]
r20751: It's unlikely that even 1 in 1000 users of SWAT will be running IE. That not
withstanding, although many web sites ignore Gecko and work properly only when
accessed via IE, we should strive to a higher standard.
This check-in makes the Samba4 Web Application Framework work in IE as well.
Jelmer Vernooij [Sun, 14 Jan 2007 02:02:06 +0000 (02:02 +0000)]
r20750: Use files in script/tests to build a recipe rather than running the tests immediately.
Jelmer Vernooij [Sun, 14 Jan 2007 01:42:07 +0000 (01:42 +0000)]
r20748: Add file I forgot to commit
Jelmer Vernooij [Sun, 14 Jan 2007 01:39:34 +0000 (01:39 +0000)]
r20747: Move cifsdd to blackbox section
Jelmer Vernooij [Sun, 14 Jan 2007 01:33:16 +0000 (01:33 +0000)]
r20746: Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
Jelmer Vernooij [Sat, 13 Jan 2007 20:02:10 +0000 (20:02 +0000)]
r20739: Add more command-line options.
Jelmer Vernooij [Sat, 13 Jan 2007 16:08:58 +0000 (16:08 +0000)]
r20737: Add option parsing.
Stefan Metzmacher [Sat, 13 Jan 2007 15:49:32 +0000 (15:49 +0000)]
r20736: skip the NBT-WINSREPLICATION-OWNED test in make quicktest
metze
Stefan Metzmacher [Sat, 13 Jan 2007 15:40:33 +0000 (15:40 +0000)]
r20735: print out a headline and the oMObjectClass
metze
Stefan Metzmacher [Sat, 13 Jan 2007 15:39:49 +0000 (15:39 +0000)]
r20734: always terminate the string... so that an empty data_blob
gets '\0' as "" string
metze
Stefan Metzmacher [Sat, 13 Jan 2007 15:29:47 +0000 (15:29 +0000)]
r20733: add a function to load the oid mappings from ldb_val's
metze
Stefan Metzmacher [Sat, 13 Jan 2007 15:28:24 +0000 (15:28 +0000)]
r20732: add idl for storing the prefixMap attribute
as w2k3 doesn't return it when you ask for we don't know
the exact format, but we assume that it starts with a uint32 version
and as this attribute is not replicated we can chosse our own version...
metze
Stefan Metzmacher [Sat, 13 Jan 2007 15:03:00 +0000 (15:03 +0000)]
r20731: we need the complex memmove() handling for removing an attribute only in one place
metze
Stefan Metzmacher [Sat, 13 Jan 2007 15:01:39 +0000 (15:01 +0000)]
r20730: this can be const
metze
Stefan Metzmacher [Sat, 13 Jan 2007 11:37:13 +0000 (11:37 +0000)]
r20729: add a version number to struct dsdb_extended_replicated_objects
metze
Stefan Metzmacher [Sat, 13 Jan 2007 11:24:39 +0000 (11:24 +0000)]
r20728: the DSDB_CONTROL_REPLICATED_OBJECT_OID control isn't used anymore
because we now use DSDB_EXTENDED_REPLICATED_OBJECTS_OID extended operation
metze
Stefan Metzmacher [Sat, 13 Jan 2007 11:17:27 +0000 (11:17 +0000)]
r20727: implement basic merging of replicated objects when it already exist
in the ldb
metze
Stefan Metzmacher [Sat, 13 Jan 2007 10:53:12 +0000 (10:53 +0000)]
r20726: - only add the rdn attribute and it's meta_data when the 'name' attribute is there
- add the values for objectGUID and whenChanged inside the ldb module,
so that the ldb module has only replicated attributes as input
metze
Derrell Lipman [Sat, 13 Jan 2007 02:27:54 +0000 (02:27 +0000)]
r20723: Web Application Framework
- Clearly no one has ever tried to obtain the Referer from the web server
before. :-)
- Send the Referer from the web application, in preparation for later security
updates. (These updates are not immediately necessary, as ScriptTransport
is disabled and we check the content type on XmlHttpTransport. This isn't
anything to worry about.)
Stefan Metzmacher [Fri, 12 Jan 2007 17:58:38 +0000 (17:58 +0000)]
r20716: add a dsdb_cache ldb module which will load the dsdb_schema and other things
on startup into memory structures in future.
metze
Stefan Metzmacher [Fri, 12 Jan 2007 17:26:55 +0000 (17:26 +0000)]
r20715: set the dsdb_schema on the ldb_context
after we have created a temporary one
metze
Stefan Metzmacher [Fri, 12 Jan 2007 17:25:43 +0000 (17:25 +0000)]
r20714: we can use talloc_asprintf_append() again, because strupper_talloc()
creates string with the correct memory size without padding zero bytes
at the end
metze
Stefan Metzmacher [Fri, 12 Jan 2007 17:19:48 +0000 (17:19 +0000)]
r20713: sort the cursors in replUpToDateVector by source_dsa_invocation_id,
w2k3 seems to do the same.
It's later useful, when we would have a large array
be could use a binary search
metze
Stefan Metzmacher [Fri, 12 Jan 2007 17:17:02 +0000 (17:17 +0000)]
r20712: add a function to compare GUID's
metze
Stefan Metzmacher [Fri, 12 Jan 2007 17:02:55 +0000 (17:02 +0000)]
r20710: update or create the "repsFrom" values after applying replicated objects
metze
Stefan Metzmacher [Fri, 12 Jan 2007 16:02:10 +0000 (16:02 +0000)]
r20709: pass a repsFromTo1 struct down as it contains all needed info for the source dsa
and the highwater mark vector
metze
Stefan Metzmacher [Fri, 12 Jan 2007 14:26:08 +0000 (14:26 +0000)]
r20708: fix crash bug! we can't use stack memory for async requests...
jelmer: please take more care when you fix pidl warnings:-)
metze
Stefan Metzmacher [Fri, 12 Jan 2007 14:05:07 +0000 (14:05 +0000)]
r20706: the '@' chars should only be in front of each line,
but here the line is wrapped with '\' ...
metze
Stefan Metzmacher [Fri, 12 Jan 2007 13:17:25 +0000 (13:17 +0000)]
r20705: store the "replUpToDateVector" attribute in DSDB_EXTENDED_REPLICATED_OBJECTS
metze
Stefan Metzmacher [Fri, 12 Jan 2007 13:08:06 +0000 (13:08 +0000)]
r20704: add functions to get and set the ntds objectGUID and invocationId
metze
Stefan Metzmacher [Fri, 12 Jan 2007 13:00:55 +0000 (13:00 +0000)]
r20703: fix minor memory leak
metze
Stefan Metzmacher [Fri, 12 Jan 2007 12:55:30 +0000 (12:55 +0000)]
r20702: fix spelling
metze
Andrew Tridgell [Fri, 12 Jan 2007 05:47:00 +0000 (05:47 +0000)]
r20698: added AIO writing support
James Peach [Fri, 12 Jan 2007 03:05:31 +0000 (03:05 +0000)]
r20697: A couple of minot cross-compile fixes.
Jelmer Vernooij [Fri, 12 Jan 2007 03:00:47 +0000 (03:00 +0000)]
r20696: Print mktestsetup errors to stderr rather than to either stderr or stdout.
Instead, print variables for the setup created to mktestsetup's stdout.
Jelmer Vernooij [Fri, 12 Jan 2007 02:33:09 +0000 (02:33 +0000)]
r20693: Add reimplementation of selftest in perl. Once this has been tested
more properly, I hope to use this as a replacement for the existing
file.
Simo Sorce [Thu, 11 Jan 2007 23:09:57 +0000 (23:09 +0000)]
r20689: "pdc" and "bdc" have been replaced by "domain controller"
Jelmer Vernooij [Thu, 11 Jan 2007 22:47:29 +0000 (22:47 +0000)]
r20688: Use argv[0] equivalent of perl.
Stefan Metzmacher [Thu, 11 Jan 2007 14:21:23 +0000 (14:21 +0000)]
r20686: this is a generic uptodateness vector
metze
Stefan Metzmacher [Thu, 11 Jan 2007 13:15:53 +0000 (13:15 +0000)]
r20685: apply records using dsdb_extended_replicated_objects_commit()
metze
Stefan Metzmacher [Thu, 11 Jan 2007 12:18:17 +0000 (12:18 +0000)]
r20684: if we don't have any indexes, then we should not waste time
to traverse the whole tdb and unpack each record
metze
Stefan Metzmacher [Thu, 11 Jan 2007 11:11:34 +0000 (11:11 +0000)]
r20683: load indexes before applying replicated objects,
as for every object the repl_meta_data module needs to look
up the object by objectGUID
metze
Stefan Metzmacher [Thu, 11 Jan 2007 10:21:38 +0000 (10:21 +0000)]
r20682: make the dsdb_extended_replicated_objects_commit() interface a bit more useful,
so that we can apply the schema partition objects with one call
metze
Stefan Metzmacher [Thu, 11 Jan 2007 09:54:10 +0000 (09:54 +0000)]
r20681: implement the DSDB_EXTENDED_REPLICATED_OBJECTS operation.
the merging of existing objects is not implemented yet...
there are a few ifdef REPLMD_FULL_ASYNC because we need to workarouns
ldb's async infrastructure (which don't handle full async sub requests nicely)
metze
Stefan Metzmacher [Thu, 11 Jan 2007 09:45:30 +0000 (09:45 +0000)]
r20680: prepare the helper functions for applying replicated objects
to pass all needed info to the repl_meta_data module
metze
Stefan Metzmacher [Thu, 11 Jan 2007 09:38:21 +0000 (09:38 +0000)]
r20679: make the init_handle stuff a bit easier and get rid of really ugly talloc_get_type()
usage
simo: if you change more modules, please include also this change
metze
Stefan Metzmacher [Thu, 11 Jan 2007 09:35:26 +0000 (09:35 +0000)]
r20678: add index for objectGUID
metze
James Peach [Thu, 11 Jan 2007 04:32:43 +0000 (04:32 +0000)]
r20677: Condense compilations rules.
Jelmer Vernooij [Thu, 11 Jan 2007 04:12:35 +0000 (04:12 +0000)]
r20676: Add ref pointer to fix warning.
Jelmer Vernooij [Thu, 11 Jan 2007 02:10:01 +0000 (02:10 +0000)]
r20675: Fix installation.
Simo Sorce [Wed, 10 Jan 2007 22:31:42 +0000 (22:31 +0000)]
r20670: Make the logic more clear
Simo Sorce [Wed, 10 Jan 2007 22:22:28 +0000 (22:22 +0000)]
r20669: Simplifing more
Andrew Tridgell [Wed, 10 Jan 2007 20:07:13 +0000 (20:07 +0000)]
r20665: put in my version of aio.h
sorry about that ....
Stefan Metzmacher [Wed, 10 Jan 2007 18:41:22 +0000 (18:41 +0000)]
r20661: the golden rule: "make things private if possible!"
fix 'make install' because no entry was in the headermap
metze
Stefan Metzmacher [Wed, 10 Jan 2007 18:23:06 +0000 (18:23 +0000)]
r20659: add missing system/aio.h
tridge: please commit your version and merge it to both samba3 branches
metze
Stefan Metzmacher [Wed, 10 Jan 2007 18:20:53 +0000 (18:20 +0000)]
r20657: fix compiler warning and bug:-)
metze
Simo Sorce [Wed, 10 Jan 2007 18:18:13 +0000 (18:18 +0000)]
r20656: This way the process flow should be much more readable.
We need to make it easier, but this should be a step in
the right direction.
Volker Lendecke [Wed, 10 Jan 2007 13:25:39 +0000 (13:25 +0000)]
r20653: If this is the wrong way to fix the build, I apologize. But these includes are
necessary in my environment to get through make.
Volker
Volker Lendecke [Wed, 10 Jan 2007 13:22:09 +0000 (13:22 +0000)]
r20652: Attempt to fix the build
Andrew Tridgell [Wed, 10 Jan 2007 11:50:33 +0000 (11:50 +0000)]
r20650: revert a bunch of code I didn't mean to commit yet
Andrew Tridgell [Wed, 10 Jan 2007 11:47:27 +0000 (11:47 +0000)]
r20649: fixed strlower_talloc() and strupper_talloc() to end with right size,
so talloc_append_string() works
Andrew Bartlett [Wed, 10 Jan 2007 11:43:50 +0000 (11:43 +0000)]
r20648: Closer to a build... Add missing header file.
Andrew Tridgell [Wed, 10 Jan 2007 11:16:11 +0000 (11:16 +0000)]
r20647: add cluster code
Andrew Tridgell [Wed, 10 Jan 2007 10:52:09 +0000 (10:52 +0000)]
r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
struct server_id server_id;
which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
Andrew Bartlett [Wed, 10 Jan 2007 08:50:03 +0000 (08:50 +0000)]
r20645: Commit the build system changes to allow scripts in config.mk files.
Andrew Bartlett
Andrew Bartlett [Wed, 10 Jan 2007 02:49:40 +0000 (02:49 +0000)]
r20643: Remove generated files accidentilly committed.
Andrew Bartlett
Andrew Bartlett [Wed, 10 Jan 2007 02:37:27 +0000 (02:37 +0000)]
r20642: This bit of autoconf causes us pain. Revert back to how we had things
before the last merge.
Andrew Bartlett
Derrell Lipman [Wed, 10 Jan 2007 02:37:05 +0000 (02:37 +0000)]
r20641: Everything relevant from the old swat (now swat.obsolete) directory has been moved to webapps. Remove the obsolete directory.
Andrew Bartlett [Wed, 10 Jan 2007 01:57:32 +0000 (01:57 +0000)]
r20640: Commit part 2/2
Update Heimdal to match current lorikeet-heimdal. This includes
integrated PAC hooks, so Samba doesn't have to handle this any more.
This also brings in the PKINIT code, hence so many new files.
Andrew Bartlett
Andrew Bartlett [Wed, 10 Jan 2007 01:51:35 +0000 (01:51 +0000)]
r20639: Commit part 1 of 2.
This patch updates our build system and glue to support a new snapshot
of lorikeet-heimdal.
We now procude a [SUBSYTEM] in the ans1_deps.pl script, and can depend
on that in the heimdal_build/config.mk. This is much easier than
listing every generated .o file individually.
This required some small changes to the build system, due to the way
the parent directory was handled for the output of scripts. I've also
cleaned up et_deps.pl to handle cleaning up it's generated files on
clean.
The PAC glue in Heimdal has changed significantly: we no longer have a
custom hack in the KDC, instead we have the windc plugin interface.
As such, pac-glue.c is much smaller. In the future, when I'm
confident of the new code, we will also be able to 'downsize'
auth/kerberos/kerberos_pac.c.
(I'll include the updated copy of heimdal in the next chekin, to make
it clearer what's changed in Samba4 itself).
Andrew Bartlett
Jelmer Vernooij [Wed, 10 Jan 2007 00:37:30 +0000 (00:37 +0000)]
r20638: Check for NULL pointers (where possible) in print functions. Fixes #4218,
but without reintroducing coverity warnings.
Jelmer Vernooij [Tue, 9 Jan 2007 23:41:25 +0000 (23:41 +0000)]
r20637: Don't check for NULL pointers when the pointer is guaranteed to not be NULL
(if it is a ref pointer).
Jelmer Vernooij [Tue, 9 Jan 2007 15:54:36 +0000 (15:54 +0000)]
r20633: Add another test, fix warnings.
Volker Lendecke [Tue, 9 Jan 2007 15:50:40 +0000 (15:50 +0000)]
r20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
particular the NT_STATUS_INVALID_PARAMETER thing was badly wrong. Remove the
changes based on it. Using gentest is much more effective in this respect, but
it will take a while to figure out the wildcard error handling of W2k3.
Volker
Jelmer Vernooij [Tue, 9 Jan 2007 15:50:36 +0000 (15:50 +0000)]
r20631: Add some tests for the ndr parser.
Stefan Metzmacher [Tue, 9 Jan 2007 11:15:56 +0000 (11:15 +0000)]
r20629: add a wrapper function for ldb_extended(ldb, DSDB_EXTENDED_REPLICATED_OBJECTS_OID, out, &ext_res);
which prepares the replicated objects, the repl_meta_data ldb module
will then add the uSNCreated, uSNChanged and some other things and will apply
the objects to the partition specific ldb
metze
Jelmer Vernooij [Tue, 9 Jan 2007 06:02:41 +0000 (06:02 +0000)]
r20625: Fix couple of warnings.
Andrew Tridgell [Tue, 9 Jan 2007 04:04:26 +0000 (04:04 +0000)]
r20624: added AIO read to pvfs backend
Andrew Tridgell [Tue, 9 Jan 2007 03:52:07 +0000 (03:52 +0000)]
r20623: change where the smb.conf parm event:backend is checked to ensure it
affects all event_context_init() calls
Andrew Bartlett [Tue, 9 Jan 2007 03:45:50 +0000 (03:45 +0000)]
r20622: Add in a hack to avoid permitting searches on the value of protected
attributes.
Andrew Bartlett
Andrew Tridgell [Tue, 9 Jan 2007 00:00:30 +0000 (00:00 +0000)]
r20621: - enable the aio events backend on systems that support it
- allow the events backend to be chosen in smb.conf
Volker Lendecke [Mon, 8 Jan 2007 21:08:31 +0000 (21:08 +0000)]
r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
under Linux we returned NT_STATUS_NOT_A_DIRECTORY. This is because in the
bad_path==True condition lstat(2) returns ENOTDIR and not ENOENT.
Not sure if we want to necessarily replicate the INVALID_PARAMETER here, but
this is what W2k3 does.
Jeremy, I tried to call you, but you were not around. So I'll leave it up to
you to merge this.
Volker
Jelmer Vernooij [Mon, 8 Jan 2007 17:28:14 +0000 (17:28 +0000)]
r20616: Point at the wiki
Volker Lendecke [Mon, 8 Jan 2007 16:11:44 +0000 (16:11 +0000)]
r20613: The individual tests are fine, I did run samba3badpath, but raw-samba3hide
left test.txt with permissions 000 behind...
Volker
Volker Lendecke [Mon, 8 Jan 2007 14:14:18 +0000 (14:14 +0000)]
r20609: Additional torture test for our bad_path handling. Most of it is disabled for
now, there are calls (for example trans2ffirst) which are quite dubious.
Volker
Derrell Lipman [Mon, 8 Jan 2007 04:58:04 +0000 (04:58 +0000)]
r20601: Web Application Framework
More testing revealed that this isn't yet bug-free... Sigh. One of these
days I'll start writing bug-free software...
- Status and Statistics timer wasn't always stopped properly when switching
away from that module's display. It seems silly to continue to update
status and statistics when the page isn't being viewed.
- Single instance of the Login window was not accessible if one switched
between modules.
- Upon return from a Session Timeout, we can retry the original RPC request,
but it may fail due to information that was stored in the old session. This
was the case in the LDB Browser module, where the open database handle
became gone with the session. We now detect a Resource Not Found and
re-open the database.
Derrell Lipman [Sun, 7 Jan 2007 23:06:50 +0000 (23:06 +0000)]
r20600: Web Application Framework
- Add authentication. The Web Application Framework can now be called
directly and it will rqeuire authentication if required, and should re-query
the user to log in when the session expires.
- General clean-up
Stefan Metzmacher [Sun, 7 Jan 2007 19:11:27 +0000 (19:11 +0000)]
r20599: - forward extended operations in the partitions module
- by default the operations goes to all partitions
- but some wellkown ones will go to just one partition
(DSDB_EXTENDED_REPLICATED_OBJECTS_OID for now)
I'll soon change the partitions module so that it'll attach a
DSDB_CONTROL_PARTITION_CONTEXT_OID control to give
the repl_meta_data or other partition specific modules a chance to
to know for which partition it should work.
metze
Stefan Metzmacher [Sun, 7 Jan 2007 19:04:40 +0000 (19:04 +0000)]
r20598: add comments and make clear that the void *data element for extended operations
needs to be NULL or a valid talloc pointer as talloc_get_type() will be called on it.
metze
Stefan Metzmacher [Sun, 7 Jan 2007 15:26:35 +0000 (15:26 +0000)]
r20596: add prototypes for the ldb_extended functions
metze
Volker Lendecke [Sun, 7 Jan 2007 10:29:12 +0000 (10:29 +0000)]
r20595: W2k and XP don't always show the top directory as hidden, w2k3 does. I think
Samba should follow w2k3 in this respect.
Volker
James Peach [Sun, 7 Jan 2007 04:53:49 +0000 (04:53 +0000)]
r20594: Match popt.h declaration.
James Peach [Sun, 7 Jan 2007 04:43:50 +0000 (04:43 +0000)]
r20593: Kill annoying warning.
James Peach [Sun, 7 Jan 2007 04:43:04 +0000 (04:43 +0000)]
r20592: Use the Heimdal copy of err.h only if the build host doesn't have it.
James Peach [Sun, 7 Jan 2007 01:04:49 +0000 (01:04 +0000)]
r20591: Revert accidental commit that broke the build.
James Peach [Sun, 7 Jan 2007 00:44:17 +0000 (00:44 +0000)]
r20590: Heimdal uses warn(), so we should prototype it here too.
Stefan Metzmacher [Sat, 6 Jan 2007 10:21:32 +0000 (10:21 +0000)]
r20588: handle extended operations in the ldb_next_request() call
metze
Stefan Metzmacher [Sat, 6 Jan 2007 10:15:02 +0000 (10:15 +0000)]
r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
metze