summaryrefslogtreecommitdiff
path: root/source4
AgeCommit message (Collapse)AuthorFilesLines
2009-12-08s4-selftest: show the test summary at the end of 'make test' in the build farmAndrew Tridgell1-0/+1
This should make it easier to see what tests are failing with what parameters
2009-12-08s4-heimdal: fixed a use-after-free heimdal bugAndrew Tridgell1-0/+1
This caused samba4kinit to segfault on some systems
2009-12-08s4-drs: use -r to ldbdel in unvampire devel scriptAndrew Tridgell1-4/+3
This ensures we delete any nTDSConnection objects
2009-12-08s4-ldb: fixed ldbdel with -r (recursive deletion)Andrew Tridgell1-0/+15
We need to delete the deepest DNs first
2009-12-08s4:build Bump ldb and tdb required versions.Andrew Bartlett3-4/+4
Hopefully this will ensure we don't get an older version from the system.
2009-12-07s4 torture: Cleanup RAW-ACLS a bitTim Prouty2-3/+4
Don't check SEC_DESC_DACL_AUTO_INHERITED right now Disable RAW-ACLS-INHERITFLAGS for the short term Update samba4's knownfail accordingly
2009-12-08s4-selftest: don't consider spoolss failures to be an error in s4Andrew Tridgell1-1/+1
2009-12-08s4/smbstreams: Fix memory use after free.Kamen Mazdrashki1-4/+8
The bug is that sometimes 'streams' is parent for 'new_name'. With this said, 'new_name' must be dupped before 'streams' pointer is freed. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-08krb5: Fix leaked hx509_context pointerKamen Mazdrashki1-0/+4
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-07s4 quicktest: exclude raw-streams from quicktest until bug is fixedTim Prouty2-1/+11
2009-12-07s4 torture: Add a new torture:hide_on_access_denied parameterTim Prouty6-15/+57
It appears some newer versions of windows return NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied rather than NT_STATUS_ACCESS_DENIED. I'm not sure how this translates to directory enumeration yet, but for now make this a parameter that can be checked in the various torture tests. This also gets RAW-ACLS and SMB2-CREATE passing against win7.
2009-12-07s4 torture: win 7 doesn't like the sequential_only flag for directoriesTim Prouty1-4/+2
Remove it for now
2009-12-07s4 torture: Port RAW-ACLS tests to SMB2Zack Kirsch6-230/+2419
- The smblsa calls had to be commented out for now and should be fixed later, but they aren't crucial to the test. - The first two tests from RAW-ACLS were already ported to torture_smb2_setinfo() and test_create_acl(). Modifications were made similar to the RAW-ACLS changes. - test_sd_get_set() was ported, but does not pass against XP or Vista; it is not added to the SMB2-ACLS test suite. - printf -> torture_comment / torture_warning / torture_result
2009-12-07s4 torure: Add SMB2 utility functionsZack Kirsch2-2/+106
- Add a torture_setup_dir() equivalent in SMB2, called smb2_util_setup_dir(). - Add verify_sd() and verify_attrib() helper functions for SMB2.
2009-12-07s4 torture: RAW-ACL ImprovementsZack Kirsch2-269/+672
- Change RAW-ACLS test suite so each test can be run individually. - Add verify_sd() and verify_attrib() helper functions. - Change test_nttrans_create() to work for both files and directories. - Fix a segfault in test_inheritance() when the test errors out early. - test_sd_get_set() does not pass against XP or Vista, so it is no longer added to the RAW-ACLS test suite. - Minor fixes to test_inheritance(). - New INHERITFLAGS test, which tests the auto inheritance flags a bit more. - printf -> torture_comment / torture_warning / torture_result
2009-12-07s4 torture: Convert RAW-STREAMS to a set of test suites rather than a ↵Tim Prouty2-173/+206
monolithic test
2009-12-07s4 torture: Update RAW-RENAME to pass against win7Tim Prouty1-5/+27
2009-12-07s4 torture: Add a new RAW-STREAMS test to simulate the summary tabTim Prouty1-0/+96
2009-12-07s4 torture: Fix the streams create disposition tests to actually return an ↵Tim Prouty1-2/+4
error on failure
2009-12-07s4/torture: add test for zero byte read contention with byte range locksSteven Danneman3-1/+276
2009-12-07s4/libcli: add define for exclusive lock modeSteven Danneman1-0/+1
2009-12-07s4/torture: fix >80 column spacing issuesSteven Danneman2-9/+10
2009-12-07s4/torture: add delete-on-close test for directoriesAravind Srinivasan1-0/+63
This test opens a directory with delete on close, opens it again, and checks to make sure that the second open returned with NT_STATUS_DELETE_PENDING.
2009-12-07s4-smbtorture: disable some spoolss printerdata tests which s3 does not pass ↵Günther Deschner1-0/+13
at the moment. Guenther
2009-12-07s4-smbtorture: fix RPC-SPOOLSS after _spoolss_SetPrinterDataEx IDL change.Günther Deschner1-28/+48
Guenther
2009-12-07s4:dsdb Use ldb_match_msg_objectclass in operational.cAndrew Bartlett1-6/+1
This avoids not only a possibly non-portable compiler expression, but also the need to look up the schema each time. Andrew Bartlett
2009-12-07s4:ldb Add a function to match a message against an objectClassAndrew Bartlett2-0/+22
(as objectClass will always be a case insensitive ascii string, we can make a much simpler match function here than for the general case). Andrew Bartlett
2009-12-07s4:ldap.py Improve testsuite for primaryGroupToken behaviourAndrew Bartlett1-0/+22
This tries to show that the domain object should not have a primaryGroupToken, for example. (This passes against the old and new code, as the failure case requires an object with an objectSid, and exactly one group in it's subtree. Sadly I don't know of a valid structure that I can construct to test this). Andrew Bartlett
2009-12-07s4:dsdb Make primaryGroupToken calculation more efficient and correctAndrew Bartlett1-20/+46
The original code here would do a subtree search under each object, attempting to determine if it was a group. This was incorrect, and inefficient - we just need to ask for the objectClass attribute, and check that value before returning the group's RID. (Much of this patch reworks operational.c to allow a search for 2 attributes for this calculation). Andrew Bartlett
2009-12-07s4:dsdb Make parentGUID handler use dsdb_module_search_dn()Andrew Bartlett2-76/+29
This avoids doing a new search from the top of the module stack. This also removes the helper function dsdb_find_parentguid_by_dn() which is now unused. Andrew Bartlett
2009-12-07s4:build torturedir and -DTORTUREDIR is unusedAndrew Bartlett2-4/+0
(And made building RPMs much more difficult for JHT)
2009-12-07s4:dsdb Hide the LM password by default tooAndrew Bartlett1-1/+2
2009-12-05s4-ldif: Fix memory leek in ldb_ldif_write()Kamen Mazdrashki1-0/+2
2009-12-04Make smbtorture4 match Windows behavior.Jeremy Allison1-41/+33
Jeremy.
2009-12-04s4-smbtorture: heavily expand printerdata tests in RPC-SPOOLSS.Günther Deschner1-67/+299
Including new tests for: - spoolss_SetPrinterDataEx - spoolss_DeletePrinterDataEx - spoolss_DeletePrinterKey Guenther
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