1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

30618 Commits

Author SHA1 Message Date
Volker Lendecke
932ab0c299 s3: client "newer" does not look at the create timestamp 2009-11-29 11:22:02 +01:00
Volker Lendecke
44ce5603dd s3: Pass the "fake dir create times" parameter to sys_*stat
Step 0 to restore it as a per-share paramter
2009-11-29 11:22:01 +01:00
Günther Deschner
51328a7056 s3-kerberos: fix the build on Mac OS X 10.6.2.
Guenther
2009-11-27 20:10:32 +01:00
Günther Deschner
da79cbb080 s3-kerberos: add a missing reference to authdata headers.
Guenther
2009-11-27 18:52:32 +01:00
Günther Deschner
ae20737066 s3-kerberos: do not include authdata headers before including krb5 headers.
Guenther
2009-11-27 18:31:13 +01:00
Günther Deschner
e512ccb5b6 s3-spoolss: simplify _spoolss_EnumPrinterKey a little more.
Guenther
2009-11-27 18:31:13 +01:00
Günther Deschner
04f8c229de s3-kerberos: only use krb5 headers where required.
This seems to be the only way to deal with mixed heimdal/MIT setups during
merged build.

Guenther
2009-11-27 16:36:00 +01:00
Günther Deschner
d6c60f8447 s3-nsstest: drastically shrink size and dependencies of nsstest binary.
The size went down from 6.4M to 104K on my box.

Guenther
2009-11-27 10:47:11 +01:00
Günther Deschner
1a8f838274 s3-kerberos: Fix Bug #6929: build with recent heimdal.
Heimdal changed the KRB5_DEPRECATED define (which now may not take an identifier
for activation) in new releases (like 1.3.1).

Guenther
2009-11-27 01:40:35 +01:00
Günther Deschner
49e464cef5 s3-spoolss: use macros to fillup driver levels.
Guenther
2009-11-27 01:09:10 +01:00
Günther Deschner
89e02ef1f3 s3-smbd: no drsuapi server stubs yet in s3. Fixes the build, sorry.
Guenther
2009-11-26 20:26:01 +01:00
Günther Deschner
5d706a2fd4 s3-rpc: running minimal_includes.pl on rpc_client and rpc_server.
Guenther
2009-11-26 20:17:07 +01:00
Günther Deschner
3d679a3b5f s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
Guenther
2009-11-26 20:03:17 +01:00
Günther Deschner
86f4536b7a s3-passdb: move some defines out of rpc headers (they really belong to passdb).
Guenther
2009-11-26 19:21:33 +01:00
Günther Deschner
4d0fca4472 s3-winbind: properly include netlogon.idl in wbint.idl.
Guenther
2009-11-26 19:21:10 +01:00
Günther Deschner
85b6461174 s3-spoolss: pre cosmetics: reorder levels in construct_printer_info levels.
Guenther
2009-11-26 19:21:10 +01:00
Günther Deschner
5b3a32be97 s3-kerberos: next step to resolve Bug #6929: build with recent heimdal.
Based on patch from Allan <allan@archlinux.org>.

Also should fix the FreeBSD build on the buildfarm.

Guenther
2009-11-26 10:15:45 +01:00
Jeremy Allison
c5b234c9cd Fix warnings with talloc_asprintf.
Jeremy.
2009-11-25 14:47:36 -08:00
Jeremy Allison
c96d487ae3 Make us pass RAW-CHKPATH with a case sensitive share.
I know Volker will look at this closely so here's the explaination :-).
Originally on a case-sensitive share we simply did a stat (or lstat)
call and returned success of fail based on the result. However this
failed to take account of incoming paths with a wildcard (which must
always fail, and with different error messages depending on whether
the wildcard is the last component or in the path). Also it failed
to take account of a stat fail with ENOENT due to a missing component
of the path as the last component (which is ok as it could be a new
file)  or if the ENOENT was due to the missing component within
the path (not the last component) - which must return the correct
error. What this means is that with "case sensitive = yes" we do
one more talloc call (to get the parent directory) and one more
stat call (on the parent directory) in the case where the stat
call fails. I think this is an acceptable overhead to enable
case sensitive shares to return the correct error messages for
applications. Volker please examine carefully :-).
Jeremy.
2009-11-25 13:17:56 -08:00
Jeremy Allison
108da2adaf Add RAW-CHKPATH test with case-sensitive share.
Jeremy.
2009-11-25 13:17:38 -08:00
Günther Deschner
4f89b3993c s3-build: try to fix QNX build ("delay" is defined in lib headers).
Guenther
2009-11-25 22:07:23 +01:00
Günther Deschner
95108f1c60 s3-registry: fix REG_MULTI_SZ handling in registry_push_value.
Catched by smbconftort test on the buildfarm.

Guenther
2009-11-25 21:39:49 +01:00
Günther Deschner
c438b2b392 s3-kerberos: add check for prerequisite krb5/krb5.h header while checking for krb5/locate_plugin.h.
(Needed for new Heimdal versions).

Guenther
2009-11-25 21:39:49 +01:00
Jeremy Allison
7ed6f9f096 Fix bug 6892 - When a chown operation is issued via Windows Explorer, all ACLS are wiped out.
Merges existing DACLs when a ACL set operation comes in with only owner or group values set.
Jeremy.
2009-11-25 10:20:38 -08:00
Jeremy Allison
947c47f281 Fix crash due to uninitialized pointer (not a problem in 3.4.x or below).
Jeremy.
2009-11-25 09:58:45 -08:00
Tim Prouty
17caf63640 s3 selftest: Add RAW-SFILEINFO-END-OF-FILE to selftest 2009-11-25 08:45:58 -08:00
Tim Prouty
af610a6f26 s3 setfileinfo: Open with FILE_WRITE_DATA when setting the file size
This matches what is outlined here:
http://msdn.microsoft.com/en-us/library/ms804363.aspx

This is also inline with how winXP/win7 handle this.  See
RAW-SFILEINFO-END-OF-FILE* in smbtorture4.
2009-11-25 08:45:58 -08:00
Tim Prouty
ce9ac3a685 s4 torture: Split up the torture suite setup for RAW-SFILEINFO
A side effect of this change is that RAW-SFILEINFO now runs the whole
suite instead of just the first test.  I changed the name of the first
test to RAW-SFILEINFO-BASE and changed all of the selftest scripts
that call it.
2009-11-25 08:45:14 -08:00
Jeremy Allison
1ad23832cf Remove call into reduce_name if case sensitive. This allows us to pass
RAW-CHKPATH when case sensitive = yes, but isn't the correct way to do
it. I'm testing a larger patch to smbd/filename.c that should fix this
correctly, and will add a torture test to ensure RAW-CHKPATH is run against
a case sensitive share once this is done.
Jeremy.
2009-11-24 16:40:08 -08:00
Jeremy Allison
b2dd546f01 Allow us to pass RAW-CHKPATH with FILE_FLAG_POSIX_SEMANTICS set or with
wide links = no.
Jeremy.
2009-11-24 14:05:56 -08:00
Jeremy Allison
187ef6b482 Fix make test. Only do POSIX case conversion if FILE_FLAG_POSIX_SEMANTICS set. Doh !
Jeremy.
2009-11-24 13:02:34 -08:00
Volker Lendecke
de63a5ad91 s3: Always try SamLogonEx
Required for cluster systems working in a Samba domain. With NT4 this won't
work, but real NT4 DCs should not be around in environments that pay big bucks
for a cluster... And if they are, they can always install a Samba DC trusting
that NT4 domain.
2009-11-24 16:55:30 +01:00
Günther Deschner
e92470d442 s3-spoolss: re-arrange driver info level fillup functions.
Guenther
2009-11-24 16:48:19 +01:00
Günther Deschner
846aa18648 s3-spoolss: fixes for _spoolss_EnumPrinterKey client and server.
Thanks Metze for review!

Guenther
2009-11-24 15:49:35 +01:00
Günther Deschner
2707dfb441 s3-registry: use push_reg_multi_sz() in registry_push_value().
Guenther
2009-11-24 15:48:19 +01:00
Günther Deschner
d4e06596d5 s3-registry: remove reg_pull_multi_sz().
Guenther
2009-11-24 15:47:59 +01:00
Stefan Metzmacher
be90385a0b s3:torture: use timeval_current/timeval_elapsed instead of start_timer/end_timer
metze
2009-11-24 11:49:03 +01:00
Stefan Metzmacher
0610f547aa s3:torture/nbio: use timeval_current/timeval_elapsed instead of start_timer/end_timer
metze
2009-11-24 11:49:01 +01:00
Stefan Metzmacher
14d2ca26b3 s3:dbwrap_torture: use timeval_current/timeval_elapsed instead of start_timer/end_timer
metze
2009-11-24 11:47:31 +01:00
Michael Adam
a46b63fd98 s3:fix the merged build of bin/smbtorture4
Michael
2009-11-24 11:47:30 +01:00
Jeremy Allison
a930e3e4e1 Restore NtCreateX case handling with FILE_FLAG_POSIX_SEMANTICS to the way
it worked in 3.3.x and 3.2.x. UCF_POSIX_PATHNAMES may no longer be needed,
as lp_posix_pathnames() being set isn't the same as case handling from
NtCreateX (lp_posix_pathnames() changes the STAT calls to LSTAT, not
the case semantics).
Jeremy.
2009-11-23 21:06:54 -08:00
Jeremy Allison
4b8859840b Remove unused code.
Jeremy.
2009-11-23 18:00:36 -08:00
Jeremy Allison
f8bd0559ad Proper fix for #6898 - Samba duplicates file content on appending. Pointed out by Volker.Restores the pathname handling for FILE_FLAG_POSIX_SEMANTICS but still prevents the O_APPEND problems. Jeremy. 2009-11-23 15:05:23 -08:00
Michael Adam
8353d47e9b s3: add dbwrap_torture - a tool to stress test tdb transactions through dbwrap
This can be used to also test tdb transactions on clustered installations
throught ctdb. The test is modeled after the ctdb_transaction.c test program
from the ctdb source code. It runs transactions in a tight loop on a test
database called "transactions.tdb" (by default), increasing a counter in each
iteration. In a clustered environment, a counter is maintained for each node.

Michael
2009-11-23 23:51:40 +01:00
Michael Adam
63a801e5c9 s3:torture: move the torture-specific headers to new torture/torture.h
Michael
2009-11-23 23:51:07 +01:00
Michael Adam
632e4afc36 s3:idmap_ldap: fix indentation: tab/space mixup
Michael
2009-11-23 23:51:06 +01:00
Jeremy Allison
7ebe5b1641 Fix bug #6898 - Samba duplicates file content on appending
Clients using a Windows open call should not be able to set
FILE_FLAG_POSIX_SEMANTICS in an open.
Jeremy.
2009-11-23 10:09:47 -08:00
Günther Deschner
a6142987ac s3-spoolss: Fix GetPrinter level 101.
Guenther
2009-11-23 16:56:03 +01:00
Volker Lendecke
a1a81ef785 Revert "s3: Make the implicit reference to Protocol in mask_match() explicit"
This reverts commit e23d8a3d1f.
2009-11-23 16:35:00 +01:00
Volker Lendecke
d6e55d8ec0 Revert "s3: Make the implicit reference to Protocol in mask_match_list() explicit"
This reverts commit 1e22899d26.
2009-11-23 16:35:00 +01:00