1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

11872 Commits

Author SHA1 Message Date
Stefan Metzmacher
930fca1c97 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)
2007-10-10 14:40:22 -05:00
Stefan Metzmacher
bd96c74e14 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)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
fbba1b39d4 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)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
f68dff9f81 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)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
513a43fc23 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)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
ee3c158602 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)
2007-10-10 14:40:20 -05:00
Stefan Metzmacher
05533e23f9 r20678: add index for objectGUID
metze
(This used to be commit e967b370173e1ae86632132851ab33d92c221291)
2007-10-10 14:40:20 -05:00
James Peach
fa5560bdcb r20677: Condense compilations rules.
(This used to be commit 586b5113a09ec5ff751bcdaf4094d5672d58f220)
2007-10-10 14:40:20 -05:00
Jelmer Vernooij
e8d2437cd5 r20676: Add ref pointer to fix warning.
(This used to be commit 1afcf850679b6752935455a8f9198679649922b8)
2007-10-10 14:40:19 -05:00
Jelmer Vernooij
310adf0fab r20675: Fix installation.
(This used to be commit 5d09131cc8a11dc2b0aa1f8f5296cf8869a436db)
2007-10-10 14:40:19 -05:00
Simo Sorce
d38a7a39fa r20670: Make the logic more clear
(This used to be commit 906630f18e5fab4be6c40018aafe67df1e27c92e)
2007-10-10 14:40:19 -05:00
Simo Sorce
f400fc4d0d r20669: Simplifing more
(This used to be commit 03de577059cb71bb6d5df7a65b5f5ba30bdea746)
2007-10-10 14:40:19 -05:00
Andrew Tridgell
4056528f72 r20665: put in my version of aio.h
sorry about that ....
(This used to be commit a91373291422e2f50b91fd7c2317dce5d2a4ab63)
2007-10-10 14:37:28 -05:00
Stefan Metzmacher
e73f1c2f2a 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)
2007-10-10 14:37:28 -05:00
Stefan Metzmacher
4a1ac217f4 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)
2007-10-10 14:37:27 -05:00
Stefan Metzmacher
9320521cb5 r20657: fix compiler warning and bug:-)
metze
(This used to be commit ddf6c90159a99c2f70a93915839caa43afc5500b)
2007-10-10 14:37:27 -05:00
Simo Sorce
a1a5d12c13 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)
2007-10-10 14:37:27 -05:00
Volker Lendecke
98ac70b6a3 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)
2007-10-10 14:37:27 -05:00
Volker Lendecke
726f93c1f6 r20652: Attempt to fix the build
(This used to be commit 29d04fadf3db8cb1a6eb2d8ca33f0106cafaaab2)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
1c211a2e43 r20650: revert a bunch of code I didn't mean to commit yet
(This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
c6ccfeb9cb r20649: fixed strlower_talloc() and strupper_talloc() to end with right size,
so talloc_append_string() works
(This used to be commit 0d36b036b381d4f81a22ce31066d89932d73597b)
2007-10-10 14:37:24 -05:00
Andrew Bartlett
2ffd009a74 r20648: Closer to a build... Add missing header file.
(This used to be commit a4051a2d6537a536266ce7562cd6b833528dd263)
2007-10-10 14:37:24 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
2007-10-10 14:37:24 -05:00
Andrew Tridgell
1cd4339b9a 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)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
848e236516 r20645: Commit the build system changes to allow scripts in config.mk files.
Andrew Bartlett
(This used to be commit 14b485ba9c72a654e5cf9e61f71fd0fb502d603b)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
2309c52444 r20643: Remove generated files accidentilly committed.
Andrew Bartlett
(This used to be commit 12953ee765de1beeab547cb30ab292b77501d9c9)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
126b48e5ab 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)
2007-10-10 14:37:22 -05:00
Derrell Lipman
e87ef675fb 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)
2007-10-10 14:37:21 -05:00
Andrew Bartlett
f7242f6437 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)
2007-10-10 14:37:20 -05:00
Andrew Bartlett
08976cb3d2 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)
2007-10-10 14:37:20 -05:00
Jelmer Vernooij
348b7bc380 r20638: Check for NULL pointers (where possible) in print functions. Fixes #4218,
but without reintroducing coverity warnings.
(This used to be commit a0e2e30d570f246d646f88d7f81ab08208b96131)
2007-10-10 14:37:19 -05:00
Jelmer Vernooij
95f7f4d001 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)
2007-10-10 14:37:19 -05:00
Jelmer Vernooij
a338d29bc1 r20633: Add another test, fix warnings.
(This used to be commit 3ddc76772765db8009120ada820837737c49e409)
2007-10-10 14:37:18 -05:00
Volker Lendecke
c5c8a33831 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)
2007-10-10 14:37:18 -05:00
Jelmer Vernooij
bf39b5e592 r20631: Add some tests for the ndr parser.
(This used to be commit ded25eca701b8e3e0e13e7ef64d5511d8953eb0d)
2007-10-10 14:37:18 -05:00
Stefan Metzmacher
eccb2d16df 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)
2007-10-10 14:37:17 -05:00
Jelmer Vernooij
cfa230c480 r20625: Fix couple of warnings.
(This used to be commit 203076129b967ccc6258e807280dc1b75583a064)
2007-10-10 14:37:17 -05:00
Andrew Tridgell
e0e96ae80d r20624: added AIO read to pvfs backend
(This used to be commit d6e20d6d8c5c207e7f04b0d0523224437b209917)
2007-10-10 14:37:16 -05:00
Andrew Tridgell
2ed1196129 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)
2007-10-10 14:37:16 -05:00
Andrew Bartlett
08439c72c4 r20622: Add in a hack to avoid permitting searches on the value of protected
attributes.

Andrew Bartlett
(This used to be commit 5aa2195ec26d9ddf82e51f2b242cdf7c8ab52f52)
2007-10-10 14:37:16 -05:00
Andrew Tridgell
131cfe0399 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)
2007-10-10 14:37:15 -05:00
Volker Lendecke
dff70f76bc 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)
2007-10-10 14:37:15 -05:00
Jelmer Vernooij
b1730cf39d r20616: Point at the wiki
(This used to be commit 5f4617807ad0a9455d42a31575fc78d4bdb2286d)
2007-10-10 14:37:14 -05:00
Volker Lendecke
aeda6017ac 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)
2007-10-10 14:37:14 -05:00
Volker Lendecke
36f78c139a 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)
2007-10-10 14:37:13 -05:00
Derrell Lipman
3e608a173e 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)
2007-10-10 14:37:13 -05:00
Derrell Lipman
9639836022 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)
2007-10-10 14:37:13 -05:00
Stefan Metzmacher
a04a3b8bc2 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)
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
22f473b22b 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)
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
b931e66835 r20596: add prototypes for the ldb_extended functions
metze
(This used to be commit 8d3a3117c313c2950381e8d21eb92469a82c3afe)
2007-10-10 14:37:12 -05:00