summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* s4/torture: Add two new SMB RAW-OPEN testsAravind Srinivasan2009-10-013-1/+296
| | | | | | | | | * Add chained NTCREATEX_READX test which first tries to open/read a non-existant file failing on the open, then attempts the same operation on a file that does exist, opening and reading successfully. * Add test for open_dispositions on directories.
* s4/torture: convert printf to torture_comment() in RAW-OPENAravind Srinivasan2009-10-011-58/+103
| | | | Allows "make test" and other harnesses to print cleaner output.
* s4/torture: second try on renaming oplocks.c to oplock.cSteven Danneman2009-10-011-0/+3617
| | | | Forgot to "git add" the new file in commit b2bcfaae
* s4/torture: rename oplocks.c to oplock.c to match SMB1 file layoutSteven Danneman2009-10-012-3618/+1
|
* s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman2009-10-013-68/+3519
| | | | | | | | | | | | | | | | | | | | | | | | | I've ported all applicable SMB oplock torture tests to SMB2, giving us a good base for SMB2 oplock testing. There are several differences between oplocks in SMB and SMB2, mostly because of differences in W2K3 and W2K8. The existing SMB oplock tests all pass against W2K3, but several fail against W2K8. These same tests were failing in SMB2, util I reworked them. BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't cause a sharing violation or break an existing oplock. It appears that in W2K8/SMB2 a sharing violation is raised. BATCH22: In W2K3/SMB when a second opener was waiting the full timeout of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after about 35 seconds. This bug has been fixed in W2K8/SMB2 and instead the second opener succeeds. LEVELII500: Added 1 new test checking that the server returns a proper error code when a client improperly replies to a levelII to none break notification. STREAM1: W2K8 now grants oplocks on alternate data streams.
* s4/torture: fix typo in test commentSteven Danneman2009-10-011-1/+1
|
* s4/asn1: Added torture suite for ASN1Kamen Mazdrashki2009-10-012-0/+2
|
* s4:pyldb - Wrong error type (found only after the push)Matthias Dieter Wallnöfer2009-10-011-1/+1
|
* s4:ldb_msg_diff - Fixes up possible memory leaks and the python binding of itMatthias Dieter Wallnöfer2009-10-012-3/+13
|
* s4-tort-drs: Add bind_info for dcerpc_drsuapi_DsBind() callKamen Mazdrashki2009-10-012-1/+41
| | | | | | | | After this patch DsGetNCChanges() test works fine. bind_info returned by server is also cached for future use Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4-tort-drs: DsReplicaUpdateRefs test fixed and extendedKamen Mazdrashki2009-10-011-37/+50
| | | | Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4-tort: Added assertion macro for DRSUAPI callKamen Mazdrashki2009-10-011-3/+16
| | | | Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4:torture: data_blob_hex_string() output is now lowercase.Andrew Kroeger2009-09-301-2/+2
| | | | | Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output.
* s4:samba.tests.samdb - remove last relicts of the templatesMatthias Dieter Wallnöfer2009-09-301-4/+2
|
* s4:pyldb - Fixed the return value in "py_ldb_msg_diff"Matthias Dieter Wallnöfer2009-09-301-2/+0
| | | | | The case distinction shouldn't be needed also when "diff" is NULL. "PyLdbMessage_FromMessage" works with "NULL" arguments.
* Revert "s4:wmic - Output enhancements"Matthias Dieter Wallnöfer2009-09-301-105/+58
| | | | | | | This reverts commit fb914640ad656b146f732ab33063575e2e47e37c. Jelmer requested the revert since he feels better when we reapply this change after his merge with the updated WMI branch.
* Revert "python: create a script for reorgnizing an LDB file."Matthias Dieter Wallnöfer2009-09-301-60/+0
| | | | | | | This reverts commit 11a7842854c0be8c427a2dbf0a8fc3761cda6298. abartlet claims that this patch could lead to data loss (look at technical mailing list)
* s4:pwsettings - Improve error handling and introduce "choice" typeMatthias Dieter Wallnöfer2009-09-301-13/+10
| | | | | | - Improve the error handling according to Jelmer's suggestions - Print out the error messages on "stderr" - Add also here the "choice" type for arguments
* s4:provision - Lets the user choose between the supported forest/domain ↵Matthias Dieter Wallnöfer2009-09-302-18/+40
| | | | | | | function levels Adds a parameter "--function-level" which allows to specify the domain and forest function level.
* s4:provision: Show domains and forests are W2K8 DC capable.Andrew Kroeger2009-09-302-0/+15
| | | | | | | | | | | | | | When adding a W2K8 DC to a domain running earlier DC versions, the "adprep" utility is used to perform schema updates and update other attributes as necessary. Adding these entries provides an indication that the adprep utility has been run with the /forestprep, /domainprep and /rodcprep arguments. Although these entries indicate adprep has been run, nothing has been done to verify that the changes that the adprep utility would have made have actually been done. The values used for the revision atttributes are as seen on a W2K8 DC (not W2K8 R2, which will probably have higher values).
* s4:provision: Update schema version number to W2K8.Andrew Kroeger2009-09-301-1/+1
| | | | We are running the W2K8 schema version, not the W2K3 version.
* s4:dsdb/common/util - remove introduced "samdb_is_capable_dc" callMatthias Dieter Wallnöfer2009-09-301-57/+0
| | | | | | I came up with a better solution which is invoked when we try to join a domain as a DC (in file "libnet_become_dc.c"). Consider a following commit for this patch.
* s4:domainlevel - General reworkMatthias Dieter Wallnöfer2009-09-301-29/+63
| | | | | | | | | - We support domain/forest function levels >= (Windows) 2003 Native -> adapt the domain/forest and DC function level restrictions. - Consider also the lowest function level of a DC. The domain and forest function levels can never be higher than it. - Improve the error handling by printing out messages to "stderr" - Introduce the "choice" type for choice arguments (saves us some error handling)
* w32err: Script to fetch and prepare errors to be updated/addedKamen Mazdrashki2009-09-301-0/+361
| | | | Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14Steven Danneman2009-09-291-11/+12
| | | | | We were pulling junk memory for our stream names after the reordering of the struct definition.
* s4/torture: Allow receiving of oplock break requests in any orderSteven Danneman2009-09-291-88/+159
| | | | | | | | | | | | | | Previously, the oplock torture tests, being single threaded, required the server to return oplock break requests, and other SMB packets in a specific order for us to verify "correctness". Of course, in several cases the protocol allows the break packets, especially breaks to levelII to come back in any order. With tevent we're now able to wait for oplock breaks in the middle of a torture test. I've added a helper to do this, and modified all oplock tests to allow returning of oplock breaks in any order.
* s4/torture: convert printf to torture_comment()Aravind Srinivasan2009-09-291-2/+4
| | | | Allows "make test" and other harnesses to print cleaner output.
* Move samba-specific variable to s4 Makefile.Jelmer Vernooij2009-09-282-2/+2
|
* make: Use $(base_srcdirs) in 'make clean' rather than keeping a separateJelmer Vernooij2009-09-281-1/+1
| | | | list.
* s4-kcc: fixed corruption of repsFrom records by kccAndrew Tridgell2009-09-281-4/+2
| | | | We were re-using a stack variable outside of the stack scope
* s4-kcc: remove stale repsFrom entries in kcc runAndrew Tridgell2009-09-281-0/+11
|
* s4-dsdb: don't return the partition root objectsAndrew Tridgell2009-09-281-1/+19
| | | | | | | | | When searching across partitions, we want to avoid sending duplicate records caused by the record appearing both as a mount point and as a partition root in a nested partition. This patch works by intercepting objects from searches and checking if they match a partition root. If they do, and the partition is not the one in the partition control request, then discard the object.
* s4-make: add libds to etags/ctags source listAndrew Tridgell2009-09-281-1/+1
|
* s4-libnet: fixed debug formattingAndrew Tridgell2009-09-281-2/+2
|
* s4-dsdb: removed extraneous debug messagesAndrew Tridgell2009-09-281-4/+0
|
* s4-dsdb: update replPropertyMetaData on linked attribute source attributesAndrew Tridgell2009-09-281-0/+23
|
* s4-dsdb: fixed searching for GUID based DNs between partitionsAndrew Tridgell2009-09-281-2/+16
|
* s4-drs: removed debug code that replicated a maximum of 10 objects at a timeAndrew Tridgell2009-09-281-2/+1
|
* s4-drsuapi: state variable for getncchangesAndrew Tridgell2009-09-281-0/+1
|
* s4-dsruapi: plugfest updatesAndrew Tridgell2009-09-281-77/+144
| | | | | | | | | | | - always fetch parentGUID from databases, don't rely on parentGUID in attributes - re-fetch nc root mesages to avoid the problem of dual messages for roots - support returning messages a chunk at a time, using max_object_count from request
* s4-drsutil: allow NULL filterAndrew Tridgell2009-09-281-5/+0
|
* s4-ldap: fixed spellingAndrew Tridgell2009-09-281-1/+1
|
* s4-samdb: when UF_SERVER_TRUST_ACCOUNT is set mark object as criticalAndrew Tridgell2009-09-281-0/+10
| | | | | We may also need to remove the isCriticalSystemObject when the machine is demoted
* s4-repl: free the la list on prepare commit failureAndrew Tridgell2009-09-281-0/+3
|
* s4-samdb: free the linked_attributes list on prepare commit failureAndrew Tridgell2009-09-281-0/+6
|
* s4-repl: use GUID to resolve target in linked attributesAndrew Tridgell2009-09-281-8/+7
| | | | | | | When we vampire from w2k8-r2, the DC sends us a linked attribute for our machine account which has a target DN with a GUID of the OU=Domain Controllers objects, but has a DN of CN=Computers. We need to use the GUID to resolve the real DN.
* s4-dsdb: ask for an extended DN in dsdb_find_dn_by_guid()Andrew Tridgell2009-09-281-0/+5
|
* s4-dsdb: make dsdb_search_dn_with_deleted public for repl_meta_data moduleAndrew Tridgell2009-09-281-5/+5
|
* s4-acl: fixed SD creationAndrew Tridgell2009-09-281-12/+22
| | | | | Thanks for Nadya and Metze for this. The SDs were being created with invalid fields (noticed by w2k8-r2 client when joining our domain)
* s4-drs: fixed sorting of replPropertyMetaDataAndrew Tridgell2009-09-281-31/+44
| | | | | This also ensures we add the SHOW_DELETED control on searches for old replPropertyMetaData attributes