summaryrefslogtreecommitdiff
path: root/source4
AgeCommit message (Collapse)AuthorFilesLines
2009-12-04s4-ldb: fixed show_deleted module not to corrupt parse treesAndrew Tridgell1-23/+26
The show_deleted module was using a static private ptr in the module to hold a parse tree to save on parsing. The code caused this static ptr to change with each search, which caused incorrect searches and numerous valgrind errors. This patch replaces it with a hand-built parse tree.
2009-12-04s4-drsutil: fixed a memory leak in samdb_search_countAndrew Tridgell3-8/+12
In general functions that don't return any memory should not take a memory context. Otherwise it is too easy to have a bug like this where memory is leaked
2009-12-03s4 torture: Convert create_complex_file to use BASIC_INFO instead of ↵Zachary Loafman1-20/+26
deprecated command Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Fix call to smbcli_openZachary Loafman1-1/+1
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Make RAW-SEARCH pass against win7Zachary Loafman3-2/+40
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Parameterize WRITE_AND_CLOSE supportZachary Loafman2-0/+6
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Add lockread_supported based off of CAP_LOCK_AND_READZachary Loafman4-0/+14
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Allow READ to be parameterized, add more readx testsZachary Loafman2-2/+30
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4-torture: Allow the legacy DENY_FCB/DENY_DOS share modes to be ignoredZachary Loafman2-0/+22
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 selftest/quicktest: Update known failures for the sfileinfo and oplock ↵Tim Prouty2-1/+2
changes Two new samba4 bugs have been filed for the two corresponding known failures. For the short term raw.sfileinfo had to be removed from quicktest. It is no longer an individual test, but a test-suite and quicktest can only run top level tests.
2009-12-03s4 torture: Add a new RAW-OPLOCK test: BATCH26Tim Prouty1-0/+108
Try a rename with a wide-open share mode on an already open file and the there is still share mode contention. For the reason why see: http://social.msdn.microsoft.com/Forums/en-US/os_fileservices/thread/3ca14dc9-da1f-4786-a8f7-a86e9903db0c Msft's anser: After further review, The reason for server to fail with sharing violation is that the windows server that executes a path-based rename request opens the file for DELETE access, but only with FILE_SHARED_READ as ShareAccess . Therefore, the existing open(frame 76), which has shared read/write/delete , is compatible with the Windows servers access mode (DELETE), but Windows servers open is not compatible with access mode in existing open. Note that it is correct to state that the logic in Windows server could have been written to allow shared read/write/delete in which case it would succeed as you mention. The behavior here is historical based on the existing implementation.
2009-12-03s4 torture: Close the third handle in RAW-OPLOCK-BATCH22Tim Prouty1-2/+5
2009-12-03s4 torture: Convert an error to a warning in RAW-OPLOCK-BATCH22Tim Prouty1-12/+27
Some servers choose to mark a client as bad if they fail an oplock break request by timing out (win7 is an example). Once the client is marked as bad, future oplock requests will timeout instantly. This causes subsequent runs of this test to fail, so rather than erroring out as a failure, a warning is printed instead. There is also a bug in w2k3 where it was incorrectly returning contending a share mode lock. It worked in XP and has been re-fixed in win7. This can also now be run against samba3.
2009-12-03s4 torture: Add a few more windows target typesTim Prouty2-0/+6
2009-12-03s4 torture: Convert to a more modern version of read in RAW-OPLOCK-BATCH4Tim Prouty1-5/+7
2009-12-03s4 torture: Allow some implementations to break from level1 to none with two ↵Tim Prouty3-7/+21
breaks
2009-12-03s4-smbtorture: check more WERRORs in RPC-SPOOLSS.Günther Deschner1-34/+35
Guenther
2009-12-03s4-smbtorture: call test_EnumPrinterDrivers with architecture in RPC-SPOOLSS.Günther Deschner1-25/+6
Guenther
2009-12-03s4:operational LDB module - Fix usage of LDB constantsMatthias Dieter Wallnöfer1-4/+4
2009-12-03s4:ntvfs/posix/pvfs_streams - Fix "discard const" warningMatthias Dieter Wallnöfer1-1/+1
I removed one "const" in front of a string declaration to achieve this. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-03s4:ntvfs/posix/pvfs_resolve - Fix "discard const" warningMatthias Dieter Wallnöfer2-4/+4
I removed two "const"s in front of string declarations to achieve this. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-02s4/selftest: knownfail some locking tests until bugs are fixedSteven Danneman1-0/+2
2009-12-02s4/torture: add multiple lock cancel testSteven Danneman1-2/+91
See what happens when we have multiple outstanding lock requests and we try to cancel both of them within a single LockingAndX. On Windows, it seems only the first lock in the array is cancelled, and the second is left pending. Though, this behavior goes against the MS-CIFS spec.
2009-12-02s4/torture: add addition multiple lock testsSteven Danneman2-29/+279
* test that 2 locks in a single LockAndX are transactional * test that 1 unlock and 1 lock in a single LockAndX are not transactional * test that SMB2 doesn't like mixed lock/unlock in a single PDU
2009-12-02s4/torture: fix build warnings by removing unecessary constSteven Danneman1-1/+1
2009-12-02s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman3-7/+42
Abstract the server requirements to pass some BRL tests. * The new default for >64bit lock tests, is that the server should return STATUS_INVALID_LOCK_RANGE. * Add parameter for targets that don't implement DENY_DOS
2009-12-03s4-smbtorture: be very strict in checking spools_EnumPrinterKey results.Günther Deschner2-3/+15
Guenther
2009-12-03s4-drs: fixed UDV and overlapping sync calls in DRSAndrew Tridgell1-40/+42
When windows abandons a DRS sync, it will sometimes re-use the same bind handle for a new sync. This means we need to check the DN of the sync and blank the getnc_state if the DN has changed. This also fixes the UDV to use the highest uSN for the partition, not for the whole SAM.
2009-12-03s4-drs: fixed updating of uSNChanged in replmd_modifyAndrew Tridgell1-3/+2
Updating of uSNChanged broke in a recent change
2009-12-02samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.Günther Deschner2-32/+6
This should finally resolve the endian issues we were seeing on sparc and is much cleaner for spoolss clients and servers. Guenther
2009-12-01s4 torture: Change oplock to use passthrough for exclusive3/batch11Tim Prouty1-2/+2
In light of the INVALID_LEVEL that is seen for RAW_SFILEINFO_END_OF_FILE_INFO requests on a path, I'm changing these back to using the passthrough RAW_SFILEINFO_END_OF_FILE_INFORMATION to test the oplock break behavior as originally intended
2009-12-01s4 torture: Update RAW-SFILEINFO-END-OF-FILE to test some additional corner ↵Tim Prouty1-19/+104
cases It turns out setting the end-of-file with Trans2SetPathInfo using the snia spec's info level will attempt to open the file, enforcing share modes, but then subsequentlys fail the setpathinfo with a dos error of INVALID_LEVEL. Doing a Trans2SetFileInfo with either end-of-file info level succeeds as expected.
2009-12-01Revert "s4 torture: Allow onefs to be checked like samba3 and samba4"Tim Prouty1-1/+0
This reverts commit 98f595036e196dd61340fef0faf63ca762a25307. No longer necessary
2009-12-01s4 torture: Change RAW-SFILEINFO-END-OF-FILE to check for share modes by defaultTim Prouty1-7/+5
Since the windows behavior appears to be a bug, only check for the windows-style share mode bug if target=<windows variant> is specified
2009-12-01s4 torture: Move target macros to a common header instead of redefining them ↵Tim Prouty3-7/+8
in multiple files
2009-12-01s4:torture/raw/lock - Fix "discard const" warnings by introducing ↵Matthias Dieter Wallnöfer1-3/+6
"discard_const_p"s
2009-12-01s4:torture/nbt/wins - Add more castsMatthias Dieter Wallnöfer1-6/+12
2009-12-01s4:torture/nbench/nbench - Add a cast before "str_list_make_shell"Matthias Dieter Wallnöfer1-2/+3
2009-12-01s4:torture/ldap/ldap_sort - Add some casts to suppress warningsMatthias Dieter Wallnöfer1-7/+7
2009-12-01s4:schema - Make some more (result) variables const and fix up warnings with ↵Matthias Dieter Wallnöfer2-53/+72
"discard_const_p"
2009-12-01s4:kdc - Merged kdc_tcp_accept() and kpasswdd_tcp_accept().Endi S. Dewata1-26/+6
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4:kdc - Merged kdc_add_kdc_socket() and kdc_add_kpasswd_socket().Endi S. Dewata1-75/+27
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4 - Create default modules directory.Endi S. Dewata1-0/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4:kdc - Disable KDC port when it's set to 0.Endi S. Dewata1-42/+63
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01Merge commit 'origin/master' into abartlet-develAndrew Bartlett1-1/+1
2009-12-01On our way to Samba4 alpha10!Andrew Bartlett1-2/+2
2009-12-01Fix build of Samba4 from tarball generated by mkrelease.shAndrew Bartlett1-3/+0
Revert "Remove RFC's from the release tarballs to make the lives of the Debian" This reverts commit eda7f35bc891ca4a7505ec054a2b4591c6edfb38. These files are essential to the Samba4 build. Andrew Bartlett
2009-12-01s4-ldb: the '1' form of extended_dn search is easier to readAndrew Tridgell1-1/+1
The '1' form gives GUIDs and SIDs in the ascii form as normally used for display.
2009-12-01This is alpha9Andrew Bartlett1-1/+1
2009-12-01s4:setup Adjust upgradeprovision blackbox test now we don't have --targetdirAndrew Bartlett1-2/+2