1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

57726 Commits

Author SHA1 Message Date
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
Steven Danneman
f66612f62e s4/torture: port SMBv1 RAW-LOCK tests to SMBv2
RAW-LOCK ported as:

RAW-LOCK-LOCK, RAW-LOCK-LOCKX -> SMB2-LOCK-LOCK
RAW-PIDHIGH -> removed, no longer relevant
RAW-ASYNC -> SMB2-LOCK-ASYNC, SMB2-LOCK-CANCEL, SMB2-LOCK-CANCEL-TDIS, SMB2-LOCK-CANCEL-LOGOFF
RAW-ERRORCODE -> SMB2-LOCK-ERRORCODE
RAW-CHANGETYPE -> removed, no longer relevant
RAW-ZEROBYTELOCKS -> SMB2-LOCK->ZEROBYTELENGTH
RAW-UNLOCK -> SMB2-LOCK-UNLOCK
RAW-MULTIPLE_UNLOCK -> SMB2-LOCK-MULTIPLE-UNLOCK
RAW-STACKING -> SMB2-LOCK-STACKING

BASE-LOCK ported as:

BASE-LOCK-LOCK1 -> SMB2-LOCK-ERRORCODE, timeout is no longer relevant
BASE-LOCK-LOCK2 -> SMB2-LOCK-CONTEND, SMB2-LOCK-LOCK, SMB2-LOCK-CONTEXT
BASE-LOCK-LOCK3 -> SMB2-LOCK-RANGE
BASE-LOCK-LOCK4 -> SMB2-LOCK-OVERLAP
BASE-LOCK-LOCK5 -> SMB2-LOCK-STACKING
BASE-LOCK-LOCK6 -> SMB2-LOCK-CANCEL, change_locktype no longer relevant
BASE-LOCK-LOCK7 -> SMB2-LOCK-RW-SHARED, SMB2-LOCK-RW-EXCLUSIVE
2009-11-25 12:55:48 -08:00
Steven Danneman
7f14388721 s4/libcli: rename previously reserved field in SMB2 LOCK struct
The lock.in.reserved field has been renamed lock_sequence in the
SMB 2.1 dialect.  See MS-SMB 2.2.26.
2009-11-25 12:55:48 -08:00
Steven Danneman
65a611ec72 s4/libcli: Initialize client PID for SMB2 connections
Set the SMB pid to the Unix pid of the client process.
2009-11-25 12:55:47 -08: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
Günther Deschner
51864219cc nsswitch: fix compile of winbind_krb5_locator with recent Heimdal versions.
Guenther
2009-11-25 17:58:52 +01:00
Günther Deschner
660ee2e745 cifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal we well as with MIT.
Guenther
2009-11-25 17:58:52 +01: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
b6f972222f s4 torture: Change RAW-OPLOCK to use the documented version of SET_END_OF_FILE_INFO
The passtrhough version of SET_END_OF_FILE_INFO is tested in
RAW-SFILEINFO-END-OF-FILE.

Additionally, the first opener is changed to use SHARE_WRITE for the
share mode since SET_END_OF_FILE_INFO actually writes data to the file
via truncating/extending.
2009-11-25 08:45:58 -08:00
Tim Prouty
98f595036e s4 torture: Allow onefs to be checked like samba3 and samba4
This is needed for the new RAW-SFILEINFO-END-OF-FILE test to
differentiate what appears to be a windows bug.
2009-11-25 08:45:15 -08:00
Tim Prouty
6074a058df s4 torture: Add two new setfileinfo tests
These tests expose a potential bug in winXP, win7, and likely others.
There is also a bug in samba where share modes aren't being enforced
where they should.

For more details see:
http://lists.samba.org/archive/cifs-protocol/2009-November/001130.html
2009-11-25 08:45:14 -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
Andrew Bartlett
56eca75671 The start of a WHATSNEW for Samba4 alpha9
If you think what you did is missing, please edit.  Release of alpha9
will be this week.

Andrew Bartlett
2009-11-25 19:19:41 +11:00
Andrew Bartlett
c16e96e46f s4:dsdb Make samba_dsdb easier to use in upgrades - assume default values 2009-11-25 19:19:32 +11:00
Andrew Bartlett
7de2a49f28 s4: update valgrind suppressions for use on build farm 2009-11-25 17:54:06 +11:00
Andrew Tridgell
6eb262f0e8 libcli: allow ntstatus.h to be used by openchange
apparently ntstatus.h is used by openchange, but they don't include
replace.h. This makes that possible again.
2009-11-25 15:30:20 +11:00
Matthieu Patou
fed8b652bf s4:upgradeschema.py Update to reflect recent change in provision
- define which modules we want to use when loading the ldb
- move partition in sam.ldb.d dir

Changes have been suggested by Andrew Bartlett.

(commit message clarified by Andrew Bartlett)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-25 13:34:11 +11:00
Matthieu Patou
604c291bdd s4:upgradeschema.py Cleanup
- remove some useless comments
- remove hardcoded paths

(commit message clarified by Andrew Bartlett)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-25 13:33:52 +11: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
Matthias Dieter Wallnöfer
a6e8e87c55 s4:installmisc - install also the new "domainlevel" tool from the setup dir 2009-11-24 22:24:00 +01:00
Brian Lu
f299c19aa8 s4: Check SUN compiler and remove "-fullwarn" when using it
This option is only supported by "gcc".
For details consider https://bugzilla.samba.org/show_bug.cgi?id=6905

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2009-11-24 22:12:56 +01: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
Matthias Dieter Wallnöfer
9e852a1759 Revert "s4-netlogon: always set the dNSHostName in GetDomainInfo"
This reverts commit 87b6f2e863.

This was the cause of the breakage of the "LogonGetDomainInfo" testsuite. I
think my behaviour is more correct to Windows Server since the test works
against it (at least release 2003 R2).

One problem I discovered is that freshly joined workstations don't get their
DNS name into the directory. Therefore I think also another part (maybe another
RPC call) is able to do this.
2009-11-24 20:30:07 +01:00
Matthias Dieter Wallnöfer
4825df8323 s4:ldap.py - fix the schema update test on Windows Server
Apparently Windows Server (2003) doesn't like the comma delimiter here. I got
always error 16 ("LDB_NO_SUCH_ATTRIBUTE"). With this change the test works
again.
2009-11-24 19:44:18 +01:00
Matthias Dieter Wallnöfer
e77c0f1b50 s4:libnet_become_dc - fix typo 2009-11-24 19:17:08 +01: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
Stefan Metzmacher
23d81904eb RAW-PING-PONG: 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
Günther Deschner
95d0f0aab0 docs: Fix Bug 6922: Add Registry patchfile for Win7 domain join.
Patchfile from SATOH Fumiyasu <fumiyas@osstech.co.jp>.

Thanks!

Guenther
2009-11-24 11:38:14 +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
Brad Hards
840cdfa2fa s4:param remove reference to private header from source4/param/param.h
source4/param/param.h has a

param.h is a public header (and parmlist isn't, even if the relative path
could work), so I suggest making it a forward declaration in the header, and
including parmlist.h in the implementation.

(commit message included from e-mail by Andrew Bartlett)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-24 15:21:57 +11:00
Matthieu Patou
3ed0cae14b s4: Fix missing TLS dir when targetdir is not the default one 2009-11-24 15:21:56 +11:00
Jeremy Allison
4b8859840b Remove unused code.
Jeremy.
2009-11-23 18:00:36 -08:00
Andrew Bartlett
4f64bc7125 heimdal Fix invalid format string 2009-11-24 11:38:41 +11:00
Andrew Bartlett
4062d2b376 s4:dsdb Handle LDAP backends correctly with new samba_dsdb system
The original code had the wrong module names, and use strcasecmp()
incorrectly.

Andrew Bartlett
2009-11-24 11:36:34 +11:00
Andrew Bartlett
fdb5914b27 s4:provision Move exceptions into a new file
This allows provisionbackend and provision to both raise ProvisionException
2009-11-24 11:09:30 +11:00
Andrew Bartlett
5ea6f79775 s4:provision Don't bother with a template for the LDAP backend startup script. 2009-11-24 11:04:31 +11:00
Andrew Bartlett
625856f2cf s4:provision Move secrets.ldb over to .c file module lists, like sam.ldb 2009-11-24 10:41:45 +11:00