summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture/smb2: fix compound.invalid2 against windowsStefan Metzmacher2011-10-311-2/+2
| | | | | | | | | Tested against w2k8r2 with signing and win8pre0 without signing. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 31 21:40:25 CET 2011 on sn-devel-104
* s4:smb_server/smb2: correctly implement related compound requestsStefan Metzmacher2011-10-312-0/+15
| | | | | | We need to remember the session id and tree id. metze
* s4:smb_server/smb2: always grant the requested creditsStefan Metzmacher2011-10-313-20/+20
| | | | | | At least one credit, if the client asked for 0. metze
* s4:smb_server/smb2: echo back more header fieldsStefan Metzmacher2011-10-311-3/+7
| | | | metze
* s4-torture: smb2 copychunk data integrity checksDavid Disseldorp2011-10-311-0/+72
| | | | | | | | | | Perform simple integrity checks on destination file data following a successful copychunk request. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Mon Oct 31 19:28:20 CET 2011 on sn-devel-104
* s4-torture: add smb2 copychunk ioctl testsDavid Disseldorp2011-10-311-7/+285
| | | | | | | | | | | | test_ioctl_copy_chunk_multi: Issue a copychunk request with multiple chunk descriptors. test_ioctl_copy_chunk_over: Issue a copychunk request with overlapping chunks. test_ioctl_copy_chunk_append: append data as part of a copy chunk test_ioctl_copy_chunk_tiny: issue request with sub FS block size chunk descriptors. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: split common copychunk ioctl test code into helpersDavid Disseldorp2011-10-311-53/+112
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: Add tests for the smb2 copychunk ioctlDavid Disseldorp2011-10-312-2/+173
| | | | | | Add idls for parsing of copychunk ioctl args. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:nbt_server/dgram: higher debug level for NBT_MAILSLOT_NETLOGON requestsStefan Metzmacher2011-10-311-1/+1
| | | | | | This matches the log level of the CLDAP case. metze
* s4:lib/socket: don't pass -1 to close()Stefan Metzmacher2011-10-311-1/+4
| | | | metze
* s4:torture:smb2: add durable_open_basic2 test: test durable open against all ↵Michael Adam2011-10-301-0/+146
| | | | | | | lease types Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sun Oct 30 20:17:16 CET 2011 on sn-devel-104
* s4:torture:smb2: add a new durable_open_basic1 test: test open against all ↵Michael Adam2011-10-301-0/+111
| | | | oplock types
* s4:torture:smb2: check wheter open was durable in existing testsMichael Adam2011-10-301-0/+8
|
* s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE ↵Michael Adam2011-10-301-0/+7
| | | | buffer smb2_create.out.durable_open
* source4/libcli: add bool durable_open to smb2_create.out.Michael Adam2011-10-301-0/+1
| | | | | The server gives indication whether the open was durable we should record this.
* s4:torture: test also break semantics between batch-oplocks and leasesMichael Adam2011-10-301-1/+1
| | | | | | This must have been a typo (listing EXCLUSIVE twice). But BATCH and EXCLUSIVE oplocks apparently share the same break semantics with respect to leases.
* s4:torture:smb2: adapt comment in durable-open.lease test according to ↵Michael Adam2011-10-301-0/+3
| | | | current information.
* s4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2Michael Adam2011-10-301-1/+1
| | | | | | | | | | | When a first client that has a durable open with share read/write/delete and a read-write-handle lease on the file disconnects, a second client will succeed in opening the file and the new client will be given a RWH-lease if requested, not only a RH-lease, as was previously checked in the test. This might have been a bug in win7 build 7000, which is what the comments in the test give as reference.
* The xcopy test is used in unusual ways (via a different uid). Ensure we can ↵Jeremy Allison2011-10-281-9/+9
| | | | cope with this.
* lib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystemAndrew Bartlett2011-10-287-7/+7
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fns_run -> samba_module_init_fns_runAndrew Bartlett2011-10-2811-18/+18
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fn -> samba_module_init_fnAndrew Bartlett2011-10-2812-19/+19
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Split samba-modules library into public and private partsAndrew Bartlett2011-10-2817-17/+17
| | | | | | | This will allow OpenChange to get at the symbols it needs, without exposing any more of this as a public API than we must. Andrew Bartlett
* lib/util Rename load_samba_modules -> samba_modules_loadAndrew Bartlett2011-10-287-7/+7
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename run_init_functions -> samba_init_module_fns_runAndrew Bartlett2011-10-2811-18/+18
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename init_module_fn to samba_init_module_fnAndrew Bartlett2011-10-2812-19/+19
| | | | | | This prepares for making the samba_module.h header public again, for OpenChange. I am keen to avoid too much API namespace pollution if we can.
* selftest: Have only one set of selftest knownfail and skip filesAndrew Bartlett2011-10-284-220/+0
| | | | | | | | | | | Listing tests that are not ever proposed (eg samba4.* in the samba3 selftest) is not an error, so just combine the lists. This is being done because some folks trying to learn how our 'make test' works are having trouble following the distributed nature of the selftest system. Andrew Bartlett
* s4:librpc/dcerpc_smb2: fix smb2_write_callback()Stefan Metzmacher2011-10-281-5/+9
| | | | | | | | | The should use smb2_write_recv() to get the result. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Oct 28 09:55:48 CEST 2011 on sn-devel-104
* s4:librpc/dcerpc_smb: fix smb_write_callback()Stefan Metzmacher2011-10-281-5/+10
| | | | | | The should use smb_raw_write_recv() to get the result. metze
* s4:torture:smb2: avoid leaking tree connects up to the main function from ↵Michael Adam2011-10-281-0/+13
| | | | | | | | | | | | the durable_open test The tree connects are handed in from the calling wrapper. Those that are freed and reconnected inside the test function can not be freed in the wrapper and stick to the torture_context until this is released in the main function. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Oct 28 02:37:25 CEST 2011 on sn-devel-104
* s4:torture:smb2: fix a nasty double free error.Michael Adam2011-10-281-2/+10
| | | | This error manifested itself in sporadic "talloc_free with references" error.
* s4:torture:smb2: fix a commentMichael Adam2011-10-281-1/+1
|
* s4:torture:smb2: be leass leaky in wrap_simple_2smb2_test()Michael Adam2011-10-281-4/+9
|
* s4:wscript - install the two missing files "dlz_bind9.so" and "named.conf.dlz"Geza Gemes2011-10-272-2/+4
| | | | | | | | Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Oct 27 20:27:32 CEST 2011 on sn-devel-104
* s4:repl_meta_data LDB module - don't intercept the partition LDB module ↵Matthias Dieter Wallnöfer2011-10-271-17/+18
| | | | | | referrals Reviewed-by: abartlet
* s4:repl_meta_data LDB module - rename operation - do not overwrite error ↵Matthias Dieter Wallnöfer2011-10-271-3/+1
| | | | | | | | messages "ldb_error" could overwrite possibly useful error messages. Reviewed-by: abartlet
* s4:repl_meta_data LDB module - remove pointless debug messagesMatthias Dieter Wallnöfer2011-10-271-4/+0
| | | | | | These are displayed when an object just doesn't exist! Reviewed-by: abartlet
* s4:repl_meta_data LDB module - always return the original LDB result codes ↵Matthias Dieter Wallnöfer2011-10-271-5/+12
| | | | | | | | | on failure And add "ldb_operr()" before the "return ret" to point out the position where it failed (for "add_time_element" and "add_uint64_element") Reworked after a suggestion by abartlet.
* s4:repl_meta_data LDB module - "dsdb_search_module_dn" already checks if ↵Matthias Dieter Wallnöfer2011-10-271-4/+4
| | | | | | | | | | len(res) == 1 No need to perform an additional check here. As a return value we should always give back the original error code and not generate a new one (to let the caller know what is going on). Reviewed-by: abartlet
* s4:ldap.py - fix up the dSHeuristics test to check for the right behaviourMatthias Dieter Wallnöfer2011-10-271-15/+27
| | | | Reviewed-by: abartlet
* s4:objectclass_attrs LDB module - implement the dSHeuristics length checks ↵Matthias Dieter Wallnöfer2011-10-271-5/+37
| | | | | | | | correctly Consider bug #8489 Reviewed-by: abartlet
* s4:ldap.py - we test the creation of secrets already in the "systemOnly" ↵Matthias Dieter Wallnöfer2011-10-271-9/+0
| | | | | | testcase Reviewed-by: abartlet
* s4:ldap.py - enhance and fix up the object class testMatthias Dieter Wallnöfer2011-10-271-6/+95
| | | | | | Also address the problem described in bug #8486. Reviewed-by: abartlet
* s4:objectclass LDB module - objectclass modify op. - remove superflous ↵Matthias Dieter Wallnöfer2011-10-271-8/+4
| | | | | | | | | "talloc_strdup" We are adding strings embedded in the schema structure which is basically global and lives longer than the request - hence no duplication needed. Reviewed-by: abartlet
* s4:objectclass LDB module - objectclass modify operationsMatthias Dieter Wallnöfer2011-10-271-95/+32
| | | | | | | According to bug #8486 the modification to direct related structural object classes is possible (equal, child, parent). Reviewed-by: abartlet
* s4:objectclass LDB module - forbid to add unrelated objectclassesMatthias Dieter Wallnöfer2011-10-271-0/+61
| | | | | | | E.g. unsatisfied abstract objectclasses, additional top-most structural classes Reviewed-by: abartlet
* s4:objectclass LDB module - "objectclass_add" - small optimisationMatthias Dieter Wallnöfer2011-10-271-4/+2
| | | | | | This saves us from doing one "ldb_msg_find_element". Reviewed-by: abartlet
* s4:objectclass LDB module - "check_rodc_ntdsdsa_add"Matthias Dieter Wallnöfer2011-10-271-1/+1
| | | | | | For convention use "ldb_attr_cmp()". Reviewed-by: abartlet
* s4:objectclass LDB module - update copyrightMatthias Dieter Wallnöfer2011-10-271-1/+1
| | | | Reviewed-by: abartlet
* s4:password_hash LDB module - fix compiler warning due to unsatisfied "switch"Matthias Dieter Wallnöfer2011-10-271-0/+3
| | | | Bail out on other LDB request types (only add and modify allowed).