1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

11438 Commits

Author SHA1 Message Date
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
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
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
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
Volker Lendecke
3bc9704ce0 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)
2007-10-10 14:37:11 -05:00
James Peach
2ed6f2927b r20594: Match popt.h declaration.
(This used to be commit c12fc86a936392922a7f22a3a6a1766f43db7ff5)
2007-10-10 14:37:11 -05:00
James Peach
aba4cbe77d r20593: Kill annoying warning.
(This used to be commit d225481e49eb8ae22f255be1a0d146cebaad04b9)
2007-10-10 14:37:10 -05:00
James Peach
f5acaea727 r20592: Use the Heimdal copy of err.h only if the build host doesn't have it.
(This used to be commit 1e8c4847b829217beec62ba46c592da3fae8a73e)
2007-10-10 14:37:10 -05:00
James Peach
42097e0b7d r20591: Revert accidental commit that broke the build.
(This used to be commit 22957f78e94e5821e1e03922a07556d8471f1850)
2007-10-10 14:37:10 -05:00
James Peach
0bb9eb0153 r20590: Heimdal uses warn(), so we should prototype it here too.
(This used to be commit c1c25767e3fc655dfb70147b0477404617835feb)
2007-10-10 14:37:09 -05:00
Stefan Metzmacher
23edd6071a r20588: handle extended operations in the ldb_next_request() call
metze
(This used to be commit b98ca57a6504c1b0fce015b1b2c3e4d228dd452e)
2007-10-10 14:37:09 -05:00
Stefan Metzmacher
ac0c34a9a4 r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
metze
(This used to be commit ef3b325db060d43a7c2e058f6b8914b5867cd321)
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
15d9b63caf 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)
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
b5eb73280e r20583: implement the frontend calls for extended operations
metze
(This used to be commit cfcd05adc03effeaf85dc776c2d5bb5244f0d6d4)
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
bc4821a4ce 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)
2007-10-10 14:37:07 -05:00
Stefan Metzmacher
f29ea516f9 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)
2007-10-10 14:37:07 -05:00
Stefan Metzmacher
3137e4f2fe 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)
2007-10-10 14:37:06 -05:00
Stefan Metzmacher
13881fa128 r20577: - allocate an OID range for samba4 LDB/LDAP Controls
- allocate an OID for LDB Control that hold meta data when applying
  replicated objects

metze
(This used to be commit 2660c5ab211f353324452694b4bd5fd8bd17745b)
2007-10-10 14:37:06 -05:00
Stefan Metzmacher
6bffcc6d45 r20576: add functions to get and set dsdb_schema on the ldb context
metze
(This used to be commit 2e054be8e023e23420e7ddd8cd73497400a875f9)
2007-10-10 14:37:05 -05:00
Stefan Metzmacher
b31875ba75 r20575: apply records to the test_samdb.ldb (my birthday present to myself...:-)
we need to modify some modules to only handle originating changes...

metze
(This used to be commit 0f387d58e69a6ee806fea02229ef8fa030f2918d)
2007-10-10 14:37:05 -05:00
Stefan Metzmacher
40b71722e1 r20573: fix handling of pointers handling to elements with the charset property
metze
(This used to be commit 895416c2202cac561e3bda80fe5c05a782dde0b0)
2007-10-10 14:37:04 -05:00
Stefan Metzmacher
46908530bc r20572: - prepare a test_samdb.ldb in the NET-API-BECOME-DC torture test
- we call a ejs script from the torture test for this task
  so that we can use the provision template ldif's.

metze
(This used to be commit e84b0c7d4004df312ae58ed76dd708a2c3c37986)
2007-10-10 14:37:03 -05:00
Jelmer Vernooij
a95d58ae8f r20571: fix '' case
(This used to be commit 1618921a7e24213d39e042a4e2f9d5cb59997f50)
2007-10-10 14:37:03 -05:00
Stefan Metzmacher
927e163670 r20570: use talloc_asprintf() instead of talloc_asprintf_append()
because talloc_asprintf_append() doesn't work like talloc_append_string()
which uses strlen() on the old string instead of (tc->size - 1)

This matter in this case because strlower_talloc() over allocates

tridge: how should we fix this in lib/talloc/?

metze
(This used to be commit 1748af20b1f7b325048619a1e66a1c8b69474c5f)
2007-10-10 14:37:03 -05:00
Stefan Metzmacher
d0e221c4e0 r20568: split out the rootdse ldif
and set the isSyncronized = TRUE when we done

metze
(This used to be commit 5875ce1ac6ff694d07787ff0cf81b3429580311b)
2007-10-10 14:37:02 -05:00