samba.git
16 years agor20747: Move cifsdd to blackbox section
Jelmer Vernooij [Sun, 14 Jan 2007 01:39:34 +0000 (01:39 +0000)]
r20747: Move cifsdd to blackbox section
(This used to be commit 96ac1c62eef29e8c8c1df9719b6785134efe525c)

16 years agor20746: Don't report each individual test in test_smbclient as a single testsuite.
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.
(This used to be commit 7e6357f21350d264ebedabd34f2b8f42fc0427ff)

16 years agor20739: Add more command-line options.
Jelmer Vernooij [Sat, 13 Jan 2007 20:02:10 +0000 (20:02 +0000)]
r20739: Add more command-line options.
(This used to be commit 8ca927f8883ec7b7e9c91ae2c2df2cac2110601d)

16 years agor20737: Add option parsing.
Jelmer Vernooij [Sat, 13 Jan 2007 16:08:58 +0000 (16:08 +0000)]
r20737: Add option parsing.
(This used to be commit b1719ebf3812b79715cf4e549426d798571b4908)

16 years agor20736: skip the NBT-WINSREPLICATION-OWNED test in make quicktest
Stefan Metzmacher [Sat, 13 Jan 2007 15:49:32 +0000 (15:49 +0000)]
r20736: skip the NBT-WINSREPLICATION-OWNED test in make quicktest

metze
(This used to be commit b3ff3f8c3623c6bf40038b07fdb1084b35442588)

16 years agor20735: print out a headline and the oMObjectClass
Stefan Metzmacher [Sat, 13 Jan 2007 15:40:33 +0000 (15:40 +0000)]
r20735: print out a headline and the oMObjectClass

metze
(This used to be commit 0ccd35bb3ddd8281953e589a6247423c38fc64b1)

16 years agor20734: always terminate the string... so that an empty data_blob
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
(This used to be commit 4f5daa830a3c02a05ba1bc7f32eedbe1d52640a1)

16 years agor20733: add a function to load the oid mappings from ldb_val's
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
(This used to be commit b7f681a8a144907fa8e0a6503345da7c391dd156)

16 years agor20732: add idl for storing the prefixMap attribute
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
(This used to be commit cf546b7c182f6a9b636023377b5260d155bc15dd)

16 years agor20731: we need the complex memmove() handling for removing an attribute only in...
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
(This used to be commit dfdfdd6cefeac2974a4b3425a49e3dd93ad7e952)

16 years agor20730: this can be const
Stefan Metzmacher [Sat, 13 Jan 2007 15:01:39 +0000 (15:01 +0000)]
r20730: this can be const

metze
(This used to be commit 181db920476a9ebddeee1ebea17be0baf85ea59e)

16 years agor20729: add a version number to struct dsdb_extended_replicated_objects
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
(This used to be commit 2e79863d54030526841e5858e7be6a815c25593b)

16 years agor20728: the DSDB_CONTROL_REPLICATED_OBJECT_OID control isn't used anymore
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
(This used to be commit 4380cc9ed6ac2e6c133b5a36f922b341474a8e7e)

16 years agor20727: implement basic merging of replicated objects when it already exist
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
(This used to be commit 262e42123d0bca77560fbb5a33c13a9c275ba3ec)

16 years agor20726: - only add the rdn attribute and it's meta_data when the 'name' attribute...
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
(This used to be commit 0ecb07e0526462529fb21cec30e789a9002b30a1)

16 years agor20723: Web Application Framework
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.)
(This used to be commit 33c07f4b92ac349af85dff11e24111fb16d201d0)

16 years agor20716: add a dsdb_cache ldb module which will load the dsdb_schema and other things
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
(This used to be commit fbb1f85e320830f52bdf410ad61f2ec60e168d80)

16 years agor20715: set the dsdb_schema on the ldb_context
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
(This used to be commit 35a88f3d39e447a0e2adbd14676d15e5a5ac9488)

16 years agor20714: we can use talloc_asprintf_append() again, because strupper_talloc()
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
(This used to be commit df8e97014bf67e59ab9a88ce225819d6057dfb08)

16 years agor20713: sort the cursors in replUpToDateVector by source_dsa_invocation_id,
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
(This used to be commit cd654f20e16c32f82ceb2b66453ce8d1be7020dd)

16 years agor20712: add a function to compare GUID's
Stefan Metzmacher [Fri, 12 Jan 2007 17:17:02 +0000 (17:17 +0000)]
r20712: add a function to compare GUID's

metze
(This used to be commit 6237d9f0b575ccb739b96d2a9f4c3643a727c4b7)

16 years agor20710: update or create the "repsFrom" values after applying replicated objects
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
(This used to be commit 665d8f9626f8ef1c64f6fac79bdc40d14330f126)

16 years agor20709: pass a repsFromTo1 struct down as it contains all needed info for the source dsa
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
(This used to be commit a31e017e5388e5abd6ed9d09adcf26d2527954a6)

16 years agor20708: fix crash bug! we can't use stack memory for async requests...
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
(This used to be commit 05da114ea8db637febe88ac1ce5c92640de7754a)

16 years agor20706: the '@' chars should only be in front of each line,
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
(This used to be commit 096a2ee97f97b3f9f57d844703ffaba53f7dd5d7)

16 years agor20705: store the "replUpToDateVector" attribute in DSDB_EXTENDED_REPLICATED_OBJECTS
Stefan Metzmacher [Fri, 12 Jan 2007 13:17:25 +0000 (13:17 +0000)]
r20705: store the "replUpToDateVector" attribute in DSDB_EXTENDED_REPLICATED_OBJECTS

metze
(This used to be commit c9e7a58f6a16dfa28323fd0fd01ad6ee516c51b0)

16 years agor20704: add functions to get and set the ntds objectGUID and invocationId
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
(This used to be commit c271ad824f763ba10ee74517062c6283fa20be89)

16 years agor20703: fix minor memory leak
Stefan Metzmacher [Fri, 12 Jan 2007 13:00:55 +0000 (13:00 +0000)]
r20703: fix minor memory leak

metze
(This used to be commit 4012e54ef22fc9a18d4533f6b48530ddc9c67992)

16 years agor20702: fix spelling
Stefan Metzmacher [Fri, 12 Jan 2007 12:55:30 +0000 (12:55 +0000)]
r20702: fix spelling

metze
(This used to be commit dd2832b37a8cb82d62b4974b779a178bb2872839)

16 years agor20698: added AIO writing support
Andrew Tridgell [Fri, 12 Jan 2007 05:47:00 +0000 (05:47 +0000)]
r20698: added AIO writing support
(This used to be commit dbf54c7b49d427af8112414760369cd21c8b5941)

16 years agor20697: A couple of minot cross-compile fixes.
James Peach [Fri, 12 Jan 2007 03:05:31 +0000 (03:05 +0000)]
r20697: A couple of minot cross-compile fixes.
(This used to be commit d4c7dd19f3a114ee1527cbcd3071b4921600977d)

16 years agor20696: Print mktestsetup errors to stderr rather than to either stderr or stdout.
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.
(This used to be commit b7fd9645f5f2e1e5a00fbb94f772487c78136ee6)

16 years agor20693: Add reimplementation of selftest in perl. Once this has been tested
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.
(This used to be commit 1e013aba7697716451c25eeab851b6812b2e066f)

16 years agor20689: "pdc" and "bdc" have been replaced by "domain controller"
Simo Sorce [Thu, 11 Jan 2007 23:09:57 +0000 (23:09 +0000)]
r20689: "pdc" and "bdc" have been replaced by "domain controller"
(This used to be commit 6976f283fc30a401bcc1d2c5089135c3fe8f1728)

16 years agor20688: Use argv[0] equivalent of perl.
Jelmer Vernooij [Thu, 11 Jan 2007 22:47:29 +0000 (22:47 +0000)]
r20688: Use argv[0] equivalent of perl.
(This used to be commit 3dfcd9f807852f757899d4ae519e7f353002ccaf)

16 years agor20686: this is a generic uptodateness vector
Stefan Metzmacher [Thu, 11 Jan 2007 14:21:23 +0000 (14:21 +0000)]
r20686: this is a generic uptodateness vector

metze
(This used to be commit 352d88c8a8ebe4d0ab9f89c9e7eadc3c29d5cdd2)

16 years agor20685: apply records using dsdb_extended_replicated_objects_commit()
Stefan Metzmacher [Thu, 11 Jan 2007 13:15:53 +0000 (13:15 +0000)]
r20685: apply records using dsdb_extended_replicated_objects_commit()

metze
(This used to be commit 8f1fd303a78dd9df94b9a7b8b243dc20bfc7eaee)

16 years agor20684: if we don't have any indexes, then we should not waste time
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
(This used to be commit 492c79de13eab8db6079f880a8f0857dc7a29fa8)

16 years agor20683: load indexes before applying replicated objects,
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
(This used to be commit 55f845377ce3a7aeb028805754dc9c05d429548e)

16 years agor20682: make the dsdb_extended_replicated_objects_commit() interface a bit more useful,
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
(This used to be commit 165ff94b8a89ef4b9145405633ed11ab9567376b)

16 years agor20681: implement the DSDB_EXTENDED_REPLICATED_OBJECTS operation.
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
(This used to be commit da4ff0e7ccde47b3e092313ba22422350cf50f78)

16 years agor20680: prepare the helper functions for applying replicated objects
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
(This used to be commit d5db31cde279cf05bd13bcf0da03767ab3498079)

16 years agor20679: make the init_handle stuff a bit easier and get rid of really ugly talloc_get...
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
(This used to be commit 88051a82c4918ba8183e0d6909161b2af2109446)

16 years agor20678: add index for objectGUID
Stefan Metzmacher [Thu, 11 Jan 2007 09:35:26 +0000 (09:35 +0000)]
r20678: add index for objectGUID

metze
(This used to be commit e967b370173e1ae86632132851ab33d92c221291)

16 years agor20677: Condense compilations rules.
James Peach [Thu, 11 Jan 2007 04:32:43 +0000 (04:32 +0000)]
r20677: Condense compilations rules.
(This used to be commit 586b5113a09ec5ff751bcdaf4094d5672d58f220)

16 years agor20676: Add ref pointer to fix warning.
Jelmer Vernooij [Thu, 11 Jan 2007 04:12:35 +0000 (04:12 +0000)]
r20676: Add ref pointer to fix warning.
(This used to be commit 1afcf850679b6752935455a8f9198679649922b8)

16 years agor20675: Fix installation.
Jelmer Vernooij [Thu, 11 Jan 2007 02:10:01 +0000 (02:10 +0000)]
r20675: Fix installation.
(This used to be commit 5d09131cc8a11dc2b0aa1f8f5296cf8869a436db)

16 years agor20670: Make the logic more clear
Simo Sorce [Wed, 10 Jan 2007 22:31:42 +0000 (22:31 +0000)]
r20670: Make the logic more clear
(This used to be commit 906630f18e5fab4be6c40018aafe67df1e27c92e)

16 years agor20669: Simplifing more
Simo Sorce [Wed, 10 Jan 2007 22:22:28 +0000 (22:22 +0000)]
r20669: Simplifing more
(This used to be commit 03de577059cb71bb6d5df7a65b5f5ba30bdea746)

16 years agor20665: put in my version of aio.h
Andrew Tridgell [Wed, 10 Jan 2007 20:07:13 +0000 (20:07 +0000)]
r20665: put in my version of aio.h

sorry about that ....
(This used to be commit a91373291422e2f50b91fd7c2317dce5d2a4ab63)

16 years agor20661: the golden rule: "make things private if possible!"
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
(This used to be commit 2a9d6d381d991977be10b525c88fb279237bafd9)

16 years agor20659: add missing system/aio.h
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
(This used to be commit ba492e2c3a64dfc5d4743ba568c63cb9a59e2849)

16 years agor20657: fix compiler warning and bug:-)
Stefan Metzmacher [Wed, 10 Jan 2007 18:20:53 +0000 (18:20 +0000)]
r20657: fix compiler warning and bug:-)

metze
(This used to be commit ddf6c90159a99c2f70a93915839caa43afc5500b)

16 years agor20656: This way the process flow should be much more readable.
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.
(This used to be commit ad58177ee46a4f02ee2e2d97882b851226bd3af2)

16 years agor20653: If this is the wrong way to fix the build, I apologize. But these includes are
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
(This used to be commit 47e80da39f27a7e7aa6f85d6333f2d1772292ec9)

16 years agor20652: Attempt to fix the build
Volker Lendecke [Wed, 10 Jan 2007 13:22:09 +0000 (13:22 +0000)]
r20652: Attempt to fix the build
(This used to be commit 29d04fadf3db8cb1a6eb2d8ca33f0106cafaaab2)

16 years agor20650: revert a bunch of code I didn't mean to commit yet
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
(This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)

16 years agor20649: fixed strlower_talloc() and strupper_talloc() to end with right size,
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
(This used to be commit 0d36b036b381d4f81a22ce31066d89932d73597b)

16 years agor20648: Closer to a build... Add missing header file.
Andrew Bartlett [Wed, 10 Jan 2007 11:43:50 +0000 (11:43 +0000)]
r20648: Closer to a build...  Add missing header file.
(This used to be commit a4051a2d6537a536266ce7562cd6b833528dd263)

16 years agor20647: add cluster code
Andrew Tridgell [Wed, 10 Jan 2007 11:16:11 +0000 (11:16 +0000)]
r20647: add cluster code
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)

16 years agor20646: first preparations for cluster enablement. This changes "
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.
(This used to be commit 2365abaa991d57d68c6ebe9be608e01c907102eb)

16 years agor20645: Commit the build system changes to allow scripts in config.mk files.
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
(This used to be commit 14b485ba9c72a654e5cf9e61f71fd0fb502d603b)

16 years agor20643: Remove generated files accidentilly committed.
Andrew Bartlett [Wed, 10 Jan 2007 02:49:40 +0000 (02:49 +0000)]
r20643: Remove generated files accidentilly committed.

Andrew Bartlett
(This used to be commit 12953ee765de1beeab547cb30ab292b77501d9c9)

16 years agor20642: This bit of autoconf causes us pain. Revert back to how we had things
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
(This used to be commit 9e7124cc85ec9ed8291769689aa38ab14b3754d8)

16 years agor20641: Everything relevant from the old swat (now swat.obsolete) directory has been...
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.
(This used to be commit e7a17c66ea08d74183efd6c0dedb68992e02e6db)

16 years agor20640: Commit part 2/2
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
(This used to be commit 351f7040f7bb73b9a60b22b564686f7c2f98a729)

16 years agor20639: Commit part 1 of 2.
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
(This used to be commit 75fddbbc0811010a28ca5bb597b573b3f10ef6d6)

16 years agor20638: Check for NULL pointers (where possible) in print functions. Fixes #4218,
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.
(This used to be commit a0e2e30d570f246d646f88d7f81ab08208b96131)

16 years agor20637: Don't check for NULL pointers when the pointer is guaranteed to not be NULL
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).
(This used to be commit 419547df76c38fde1f54b06dc633832523ad3394)

16 years agor20633: Add another test, fix warnings.
Jelmer Vernooij [Tue, 9 Jan 2007 15:54:36 +0000 (15:54 +0000)]
r20633: Add another test, fix warnings.
(This used to be commit 3ddc76772765db8009120ada820837737c49e409)

16 years agor20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
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
(This used to be commit 33d842e27d7611dd1d3cbfa71d44d63c273ba785)

16 years agor20631: Add some tests for the ndr parser.
Jelmer Vernooij [Tue, 9 Jan 2007 15:50:36 +0000 (15:50 +0000)]
r20631: Add some tests for the ndr parser.
(This used to be commit ded25eca701b8e3e0e13e7ef64d5511d8953eb0d)

16 years agor20629: add a wrapper function for ldb_extended(ldb, DSDB_EXTENDED_REPLICATED_OBJECTS...
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
(This used to be commit 48d568a75b8109807af29f5d9604240c20c1a116)

16 years agor20625: Fix couple of warnings.
Jelmer Vernooij [Tue, 9 Jan 2007 06:02:41 +0000 (06:02 +0000)]
r20625: Fix couple of warnings.
(This used to be commit 203076129b967ccc6258e807280dc1b75583a064)

16 years agor20624: added AIO read to pvfs backend
Andrew Tridgell [Tue, 9 Jan 2007 04:04:26 +0000 (04:04 +0000)]
r20624: added AIO read to pvfs backend
(This used to be commit d6e20d6d8c5c207e7f04b0d0523224437b209917)

16 years agor20623: change where the smb.conf parm event:backend is checked to ensure it
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
(This used to be commit 803e6cf6ef5caaf7c9faefcc111c97e1a97e9b82)

16 years agor20622: Add in a hack to avoid permitting searches on the value of protected
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
(This used to be commit 5aa2195ec26d9ddf82e51f2b242cdf7c8ab52f52)

16 years agor20621: - enable the aio events backend on systems that support it
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
(This used to be commit 4a8e07286f827a6f57b2c54d97d31172553ceb0d)

16 years agor20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
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
(This used to be commit 838afa8f7d2b10460725c1f0b519ce54fb84de88)

16 years agor20616: Point at the wiki
Jelmer Vernooij [Mon, 8 Jan 2007 17:28:14 +0000 (17:28 +0000)]
r20616: Point at the wiki
(This used to be commit 5f4617807ad0a9455d42a31575fc78d4bdb2286d)

16 years agor20613: The individual tests are fine, I did run samba3badpath, but raw-samba3hide
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
(This used to be commit fdd501f8032dceb05989c582132b036bb22e6fb1)

16 years agor20609: Additional torture test for our bad_path handling. Most of it is disabled for
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
(This used to be commit 79846f09b98965af0817b362f45d11e69e23c3e4)

16 years agor20601: Web Application Framework
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.
(This used to be commit 09a82920336d1502c204725a4b518a1fa4a0d68d)

16 years agor20600: Web Application Framework
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
(This used to be commit 27c5d7dca6fa4e0811c1b8bb52d1db3d1824462c)

16 years agor20599: - forward extended operations in the partitions module
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
(This used to be commit 0ed53c6d0f4a4e43ff9c8943730eeb57c735201b)

16 years agor20598: add comments and make clear that the void *data element for extended operations
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
(This used to be commit 5731617ea9103eaaef2c5591aab89d59ded35fd8)

16 years agor20596: add prototypes for the ldb_extended functions
Stefan Metzmacher [Sun, 7 Jan 2007 15:26:35 +0000 (15:26 +0000)]
r20596: add prototypes for the ldb_extended functions

metze
(This used to be commit 8d3a3117c313c2950381e8d21eb92469a82c3afe)

16 years agor20595: W2k and XP don't always show the top directory as hidden, w2k3 does. I think
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
(This used to be commit 6094ee9df5820cd26858e9c4eff5dfc7e60181ab)

16 years agor20594: Match popt.h declaration.
James Peach [Sun, 7 Jan 2007 04:53:49 +0000 (04:53 +0000)]
r20594: Match popt.h declaration.
(This used to be commit c12fc86a936392922a7f22a3a6a1766f43db7ff5)

16 years agor20593: Kill annoying warning.
James Peach [Sun, 7 Jan 2007 04:43:50 +0000 (04:43 +0000)]
r20593: Kill annoying warning.
(This used to be commit d225481e49eb8ae22f255be1a0d146cebaad04b9)

16 years agor20592: Use the Heimdal copy of err.h only if the build host doesn't have it.
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.
(This used to be commit 1e8c4847b829217beec62ba46c592da3fae8a73e)

16 years agor20591: Revert accidental commit that broke the build.
James Peach [Sun, 7 Jan 2007 01:04:49 +0000 (01:04 +0000)]
r20591: Revert accidental commit that broke the build.
(This used to be commit 22957f78e94e5821e1e03922a07556d8471f1850)

16 years agor20590: Heimdal uses warn(), so we should prototype it here too.
James Peach [Sun, 7 Jan 2007 00:44:17 +0000 (00:44 +0000)]
r20590: Heimdal uses warn(), so we should prototype it here too.
(This used to be commit c1c25767e3fc655dfb70147b0477404617835feb)

16 years agor20588: handle extended operations in the ldb_next_request() call
Stefan Metzmacher [Sat, 6 Jan 2007 10:21:32 +0000 (10:21 +0000)]
r20588: handle extended operations in the ldb_next_request() call

metze
(This used to be commit b98ca57a6504c1b0fce015b1b2c3e4d228dd452e)

16 years agor20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
Stefan Metzmacher [Sat, 6 Jan 2007 10:15:02 +0000 (10:15 +0000)]
r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling

metze
(This used to be commit ef3b325db060d43a7c2e058f6b8914b5867cd321)

16 years agor20586: - allocate an OID range for LDB/LDAP extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 10:14:15 +0000 (10:14 +0000)]
r20586: - allocate an OID range for LDB/LDAP extended operations
- allocate an OID for DSDB_EXTENDED_REPLICATED_OBJECTS_OID which
  will replace the DSDB_CONTROL_REPLICATED_OBJECT_OID soon

metze
(This used to be commit 6397f014482172573facd3d87d1f9eec1b320ac5)

16 years agor20583: implement the frontend calls for extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 09:49:29 +0000 (09:49 +0000)]
r20583: implement the frontend calls for extended operations

metze
(This used to be commit cfcd05adc03effeaf85dc776c2d5bb5244f0d6d4)

16 years agor20582: use void *data in the ldb_extended struct to match what we have in ldb_control
Stefan Metzmacher [Sat, 6 Jan 2007 09:25:54 +0000 (09:25 +0000)]
r20582: use void *data in the ldb_extended struct to match what we have in ldb_control

add a request element for extended requests

metze
(This used to be commit 530b3cd2501efb7763cbb7d3301ff0550689effe)

16 years agor20581: - the ldb modules have explicit hooks for extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 09:03:28 +0000 (09:03 +0000)]
r20581: - the ldb modules have explicit hooks for extended operations
  so call them
- reorder the request operations first all with explixit hooks

metze
(This used to be commit aababcbb05ad476507bba35723eaef01d18b4d4e)

16 years agor20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
Stefan Metzmacher [Sat, 6 Jan 2007 01:13:59 +0000 (01:13 +0000)]
r20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
when applying replicated objects.

the samldb module ignores such requests now...
and the repl_meta_data module has different functions
for the replicated and originating cases...

metze
(This used to be commit a4d5e0126cfd6135ab829f4984269e265a868a28)