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

15584 Commits

Author SHA1 Message Date
Stefan Metzmacher
59917521e9 opendb: pass down a pointer to the fd in odb_open_file()
This prepares kernel oplock support.

metze
(This used to be commit 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
7cdf28ebac ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS
metze
(This used to be commit b43f1a53dd185cc51a3fb8a18e311abb77c2a7c9)
2008-03-12 17:35:03 +01:00
Stefan Metzmacher
f533d6d8a2 pvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3
metze
(This used to be commit 40563583f7ef3d8d1a3426c6c12eaecd18af215c)
2008-03-12 17:14:44 +01:00
Stefan Metzmacher
23ab56cd80 RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
metze
(This used to be commit cd1b8efc5d8dc1eec03fe1bf1eb58dbded9584eb)
2008-03-12 15:13:28 +01:00
Stefan Metzmacher
2801b6a522 RAW-STREAMS: do a exit on the session after each sub tests
metze
(This used to be commit 3f7fef8b8c567379649611637d69c89d77d11d6c)
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
6e9d25157d RAW-STREAMS: do what the comments say
metze
(This used to be commit eb68a8ed4fa214ad2e858a7fbdf9b5376cda6e04)
2008-03-12 14:23:30 +01:00
Jeremy Allison
799cfe0d76 Added test_nttransrename() to test Metze's new code.
Jeremy.
(This used to be commit 4556fafede8691c6a12670695ff108e9e59aff98)
2008-03-11 15:27:08 -07:00
Stefan Metzmacher
fdd7f68660 RAW-SEARCH: skip RESUME_KEY tests against samba3
metze
(This used to be commit ca5b37747107bd2941f7415fe609c8293a6b5f7c)
2008-03-11 21:59:16 +01:00
Jeremy Allison
333870d5a0 Samba3.2 now passes a lot more tests - remove the S3 specific
exemptions.
Jeremy.
(This used to be commit a70719d579a7eefbfd973267b95a87aaa6b649b0)
2008-03-11 13:39:04 -07:00
Jeremy Allison
fe3316431e Samba3 now passes the test_raw_oplock_exclusive3 test.
Jeremy.
(This used to be commit b2007956aa4534f22ad7fd85b0aee0be769548ae)
2008-03-11 12:37:20 -07:00
Stefan Metzmacher
8e70dc7e9a pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS
metze
(This used to be commit 6dc280731d071681b635a2f091be2b153a902080)
2008-03-11 20:16:52 +01:00
Stefan Metzmacher
903ea3d36d smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer
metze
(This used to be commit 80711c03e0e8fba6f80261facd939ef00e06c7fd)
2008-03-11 20:16:51 +01:00
Stefan Metzmacher
ebe8a8985c events_signal: pass down the correct siginfo_t struct to the event handler
metze
(This used to be commit 4b071236867ca5c2c0451ad3acc8a9debb0549e4)
2008-03-11 20:16:51 +01:00
Stefan Metzmacher
6743de076d libcli/raw: add RAW_RENAME_NTTRANS support
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit bfe773a620640fa46efe008f38144f5452350825)
2008-03-11 11:49:00 -07:00
Jeremy Allison
de4a495438 Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.
(This used to be commit a8a5339cf2ca218668f888eced5ffe7ce059553c)
2008-03-11 10:21:09 -07:00
Andrew Bartlett
9703948850 Fix provision script to work without smb.conf location specified.
Andrew Bartlett
(This used to be commit b4da374a998caac18c288a0a6e3fcd2c50cbffa7)
2008-03-11 14:41:10 +11:00
Andrew Bartlett
b5a5fcdc62 Extend testsuite to cover specifying a domain SID.
Andrew Bartlett
(This used to be commit edb7af0685983543c321e3d8b90f6ae07af2e4e3)
2008-03-11 14:21:53 +11:00
Andrew Bartlett
7da5ec17e6 Make error handling in ldb more consistant.
This change ensures we give an immidiate error if the DN won't parse.

Also clean up strcmp use to be more standard.

Andrew Bartlett
(This used to be commit 1b15f374a89b99f3c43d9c2ce06dde9c67383e66)
2008-03-11 14:20:42 +11:00
Stefan Metzmacher
db06d932c8 opendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lock
That means we only have to parse the record once
and as the tdb record is locked the in memory copy
is always the same as the one in the tdb.

metze
(This used to be commit 0641a43cd6fd081cac0275f5bde2ad70fa6a71bb)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
11fb55e8a4 opendb_tdb: correctly initialize modified to false
Otherwise this variable would never change its value...

metze
(This used to be commit 5b13a564b8459c3134a43e1d4b4a791e33108b1b)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
76eaece42c we now define PACKAGE_BUGREPORT in config.h
metze
(This used to be commit 4afd4058e30e0754a56100e691486139f149e3a3)
2008-03-08 09:28:16 +01:00
Stefan Metzmacher
db669e1eb1 pvfs_open: fix the odb_open_file() callers
metze
(This used to be commit 5fdca988c687f58fe2fddd3c8eff5f461207065b)
2008-03-07 19:35:17 +01:00
Stefan Metzmacher
e5e799aeb6 opendb: force odb_can_open() before odb_open_file()
Now there's only odb_can_open() which handles the
share_access rules.

And odb_open_file() only adds the new opendb_entry into the
database and calculates the granted oplock level.

metze
(This used to be commit db0853ae4fead34ef382bbfcfe2f46453ab8b73b)
2008-03-07 19:35:12 +01:00
Stefan Metzmacher
75a412a469 pvfs_open: always call odb_can_open() before odb_open_file()
odb_open_file() will later change to not redo the logic of
odb_can_open().

metze
(This used to be commit b09a1461ac595be1b6530221b7df5211084884cc)
2008-03-07 19:15:27 +01:00
Stefan Metzmacher
6c27daeeca opendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()
metze
(This used to be commit c993b07f7d5caf290ccb9ca81961aa35a3ed1f02)
2008-03-07 19:15:21 +01:00
Stefan Metzmacher
b655468cf6 vfs_cifs: disable level2 oplocks if the frontend client doesn't support them
metze
(This used to be commit a63910e8e5c075aff45b8eb0d246d2823f09bb9c)
2008-03-07 19:15:19 +01:00
Jelmer Vernooij
a72e921a7e Rerun SWIG.
(This used to be commit e384aac5c8156c7f056c70b1caab0778f8fc52b6)
2008-03-07 18:20:12 +01:00
Michael Adam
97a272a4bf torture: fix escape sequence in test_chkpath().
Michael
(This used to be commit d92597d29caf76e1c8d0858f066d7a30143392e9)
2008-03-07 15:00:37 +01:00
Michael Adam
ce4d94519f configure: Add major version 4 to AC_INIT call.
Michael
(This used to be commit 3a9514def21c448d344648d4a28f658fbcfc07eb)
2008-03-07 14:59:19 +01:00
Andrew Kroeger
a689d65e4f Treat maxPwdAge == 0 as passwords never expire.
(This used to be commit d28f2cb678b334086f601505c88e56b9c1ee559d)
2008-03-07 05:59:56 -06:00
Andrew Kroeger
e9171397ec Enhance mappings of NTSTATUS to KRB5KDC errors.
The enhanced mappings allow the Windows client to determine whether a user's
password needs to be changed (and allows them to change it), or if they cannot
logon at all.

Changes still need to be made to allow additional data to be returned.  Windows
uses that additional data to display more detailed dialogs to the user.  The
additional information is returned in an e-data struct of type PA-PW-SALT that
contains the more-detailed NTSTATUS error code.
(This used to be commit 6a98e5a7aa0cdbb61358901df50162b5b914ee5c)
2008-03-07 05:59:56 -06:00
Andrew Kroeger
20c7014009 Update account expiration to use new samdb_result_account_expires() function.
(This used to be commit 2b6b4e5a1611744eea5dd9ec17c416916d7edab4)
2008-03-07 05:59:56 -06:00
Andrew Kroeger
01b3d89aec Add samdb_result_account_expires() function.
Windows uses 2 different values to indicate an account doesn't expire: 0 and
9223372036854775807 (0x7FFFFFFFFFFFFFFFULL).

This function looks up the value of the accountExpires attribute and if the
value is either value indicating the account doesn't expire,
0x7FFFFFFFFFFFFFFFULL is returned.

This simplifies the tests for account expiration.  There is no need to check
elsewhere in the code for both values, therefore a simple greater-than
expression can be used.
(This used to be commit 7ce5575a3a40cca4a45ec179a153f7e909065a87)
2008-03-07 05:59:55 -06:00
Andrew Kroeger
07cb435d40 accountExpires: Windows default is 9223372036854775807, not -1.
(This used to be commit be47cc7fdfa3cae0508e564f38b793aa27b6eb92)
2008-03-07 05:59:55 -06:00
Amin Azez
17af5a9f42 Use 32 bit storage for nttrans counts
Erroneous 16bit storage for nttrans counts meant that nttrans behaved
"strangely" for sizes of over 64K

As 32 bit is used in the SMB message and specified in
http://us4.samba.org/samba/ftp/specs/draft-leach-cifs-v1-spec-02.txt
section 3.13.2
this fix changes storage to match.

Signed-off-by: Amin Azez <azez@ufomechanic.net>
(This used to be commit d66b6c3823f003875e3b7cdf63617a894cceadf9)
2008-03-07 12:10:48 +01:00
Andrew Bartlett
a7e1fa0bef Try to fix up part of the upgrade test.
There are still problems with the upgrade test, but these are not
related to the provision system.

Andrew Bartlett
(This used to be commit d331bc400fb138bc43be88d0ca8ab3bcd590d2cd)
2008-03-07 19:20:39 +11:00
Andrew Bartlett
14c5f968e1 Rework provision scripts for more testing
This fixes up some issues with testdir (was not honoured) and
increases test coverage.

We now check all the major provision modes.  In doing so, to make it
possible to call from the multiple layers of 'sh', I have allowed 'dc'
to alias 'domain controller' and 'member' to alias 'member server'.
Fighting shell quoting in the test system was just too hard...

Also fix upgrade.py

Andrew Bartlett
(This used to be commit 0923de12282b0e063dd73bc3e056dd5c3663c190)
2008-03-07 10:57:52 +11:00
Andrew Bartlett
45149fbf9d Fixup the NET-API-USERMOD test.
This test needed to be updated to handle the fact that you cannot
clear the ACB_PW_EXPIRED bit, and to always use the torture comment
functions (not printf directly).

Andrew Bartlett
(This used to be commit 2211476bbb3d8e5bca9659e886e559a36f40aff4)
2008-03-07 09:05:24 +11:00
Andrew Bartlett
449c0c5242 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit a6997c333cdd68dfba8a069df448836ff487787f)
2008-03-07 07:38:44 +11:00
Andrew Bartlett
8b24d248b7 Start to rework provision for LDAP backends
This is the start of the rework of the provision script to handle an
LDAP backend correctly.  For example, we must not set the 'tdb
modules' against an LDAP backend such as OpenLDAP that handles subtree
renames.

Andrew Bartlett
(This used to be commit e462a107d3bafcc546ca4d53dcc8eb32e4280745)
2008-03-07 07:33:14 +11:00
Günther Deschner
7eaa6b5f9a Ignore Kerberos PAC type 12.
Until we worked out the PAC_TYPE_UNKNOWN_12 format (or received documentation)
ignore it so that the PAC parsing can proceed.

Guenther
(cherry picked from commit 3630ec26c99fdea46c47117d026f9bffb2c4590a)
(This used to be commit 0c1ccbc183c1d2967da2d9a17033f3b116ff7387)
2008-03-06 17:40:25 +01:00
Günther Deschner
62af65d1e3 Slowly making progress on PAC_UNKNOWN_12.
unknown1 and unknown2 are offset headers for the strings.

Guenther
(cherry picked from commit 7af70e75b9abf92921f33ec4207ad486ee2493d6)
(This used to be commit ad19da7f83761948f379921560da34bb6a01e625)
2008-03-06 17:40:16 +01:00
Günther Deschner
74dba5e33c Add new Windows 2008 Kerberos PAC Type 12 (apparently again undocumented).
We need at least to parse this in order to correctly support kerberized session
setup from w2k8 as well as local pam_winbind logons using kerberos.

Guenther
(cherry picked from commit 4ba62d49d740c43cf17ceef1534cf1c8a7e4a130)
(This used to be commit ef0971206cda598e6bfad2ff06a3d2e9e8131682)
2008-03-06 17:40:05 +01:00
Stefan Metzmacher
e24d47ec2e RAW-OPLOCK: rename _ack_to_levelII() -> ack_to_given()
Also improve the output.

metze
(This used to be commit d0b641a9ee36939468beb427bf6b15892342a33d)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
4bfc32b160 RAW-OPLOCK: add BATCH24 test another case with a connection with no CAP_LEVEL_II_OPLOCKS
metze
(This used to be commit 4fb2c9fb1f4e3ee23281ca83f8b91d252cbf53c7)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
80104efb58 RAW-OPLOCK: add BATCH23 and test with a connection with no CAP_LEVEL_II_OPLOCKS
metze
(This used to be commit 2192d6d2bda2afd2ba1ed0cb68bdfe590b9d50af)
2008-03-06 17:19:36 +01:00
Stefan Metzmacher
bc9bb918a1 RAW-OPLOCK: remove unused vars
metze
(This used to be commit 0905f3ebd1cb1ac9cefc4272208add9e5a8d7f59)
2008-03-06 17:19:34 +01:00
Stefan Metzmacher
ef4ae2597d pvfs_open: pass down allow_level_II_oplock to odb_open_file()
metze
(This used to be commit 7c9b269b0742d435055e21f7e6cc945c21c7e332)
2008-03-06 17:19:26 +01:00
Stefan Metzmacher
b7db5f7cb5 opendb: add allow_level_II_oplock parameter to odb_open_file()
Not all clients support a fallback to level II oplocks.

metze
(This used to be commit 146f1fe0b67ca0805f0e71358abc57da0c0579a9)
2008-03-06 17:19:12 +01:00
Stefan Metzmacher
0339ae5ad8 pvfs_open: fix crash/leak in case pvfs_setup_oplock() fails
metze
(This used to be commit 5563238782e825f64a22b5f9e0a7deb687f50b19)
2008-03-06 16:31:26 +01:00