summaryrefslogtreecommitdiffstats
path: root/source4/torture
Commit message (Collapse)AuthorAgeFilesLines
* s4-smbtorture: rework the spoolss notify test a bit.Günther Deschner2011-06-211-16/+15
| | | | Guenther
* s4-smbtorture: use ipv4 addresses for backchannel spoolss change notifyGünther Deschner2011-06-211-1/+1
| | | | | | connections for now. Guenther
* s4-torture Enable libnetapi and libsmbclient tests using combined buildAndrew Bartlett2011-06-214-27/+25
| | | | | | | | | | | | | | | Because we now always build the source3 code, we can link directly against a private libnetapi and libsmbclient to test the behaviour of these important APIs. We use a private libnetapi_net_init(), and by using this interface rather than the public one, we can ensure that the correct smb.conf is loaded (as smbtorture4 is a Samba4 semantics binary). The #include of the source3 includes.h is required to do the manual lp_load(). Andrew Bartlett
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-201-1/+1
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-201-2/+2
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-202-2/+2
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s4:ntvfs subsystems - rework it using concrete enum valuesMatthias Dieter Wallnöfer2011-06-161-1/+21
| | | | | This changes commit 260bc987b00b3fff6c9b99211627b14e9bd0789a to comply with metze's plans.
* s4:torture/ndr/string.c - fix type-punned warning and remove unused variablesMatthias Dieter Wallnöfer2011-06-111-3/+2
| | | | Reviewed-by: Jelmer
* s4:ntvfs subsystem - quiet enum warningsMatthias Dieter Wallnöfer2011-06-091-9/+1
| | | | | | Simply return "NT_STATUS_INVALID_LEVEL" for unknown types of requests. Reviewed-by: Tridge
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-066-6/+6
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-063-9/+3
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* s4-param Remove 'sam database' parameterAndrew Bartlett2011-06-061-5/+5
| | | | | | This now just relies on the private dir parameter, which remains. Andrew Bartlett
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-066-9/+9
|
* librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_stringSean Finney2011-06-013-1/+201
| | | | | | | | | | | | | | | | | | | | Introduce a new flag, LIBNDR_FLAG_STR_RAW8, which indicates that libndr should not attempt to convert the corresponding byte sequence, and place the responsibility on the caller to do so later. This is needed in cases where the string is known to be 8-bit and either NULL terminated or of known length, but in an unspecified character set. For example, when pulling PT_STRING8 properties from an exchange server via libmapi + libndr, the codepage is neither known nor in the control of the caller, and is determined by subsequent properties requested from the server. Therefore the client would like to fetch all properties in one large batch, and convert the resulting strings locally. This commit also includes some (basic) tests of each of the flags' respective behaviors with the ndr push/pull string functions, in a new source4 torture test suite ndr.ndr_string. Signed-off-by: Sean Finney <seanius@seanius.net>
* s4:torture: fix SEGFAULT in raw.acl.dynamicGregor Beck2011-05-301-7/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s4:torture - always cast correctly when using the "%x" format string argumentMatthias Dieter Wallnöfer2011-05-212-6/+6
| | | | Signed-off-by: Metze
* torture-dfs: fix a typo that was causing the test to be flackyMatthieu Patou2011-05-201-1/+1
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri May 20 09:39:12 CEST 2011 on sn-devel-104
* torture: desactivate the level 4 tests for DFS referralMatthieu Patou2011-05-181-2/+17
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed May 18 13:04:00 CEST 2011 on sn-devel-104
* s4:auth/credentials: pass 'self_service' to ↵Stefan Metzmacher2011-05-181-3/+4
| | | | | | | | | | | | cli_credentials_set_impersonate_principal() This also adds a cli_credentials_get_self_service() helper function. In order to support S4U2Proxy we need to be able to set the service principal for the S4U2Self step independent of the target principal. metze
* s4-torture: Add more tests to DFS referral suiteMatthieu Patou2011-05-171-4/+30
|
* torture: adapt to idl evolutionroot2011-05-172-48/+48
|
* s4-smbtorture: add test_netremotetod.Günther Deschner2011-05-161-0/+17
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 16 12:45:52 CEST 2011 on sn-devel-104
* s4/test/getnc_exop: Tune the the test to work against windowsKamen Mazdrashki2011-05-131-17/+27
| | | | | | | | | | | It turns out that sometimes, w2k8-r2 returns objects even when FSMO extended request has failed. Also verify that target DC returns source_dsa_guid and source_dsa_invocation_id correctly Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri May 13 02:26:04 CEST 2011 on sn-devel-104
* s4/getnc_exop: Initial implementation of a testsuite for GetNCChanges ↵Kamen Mazdrashki2011-05-111-0/+136
| | | | extended opeartion handling
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-086-23/+23
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* libcli/smb Move cifs posix helper functions and headers in commonAndrew Bartlett2011-05-061-4/+0
| | | | | | unix_perms_to_wire() was a duplicate symbol in the top level build. Andrew Bartlett
* lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbolAndrew Bartlett2011-05-061-1/+1
| | | | | | | This verison of the function takes a protcol as argument to determine matching rules. Andrew Bartlett
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-061-1/+1
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* Clean up some const and other compiler warnings.Jeremy Allison2011-05-056-10/+25
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104
* Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.Jeremy Allison2011-05-041-2/+2
|
* s4: fix arguments to safe_strcpy()Andrew Bartlett2011-05-031-2/+2
| | | | | | Found by the s3-derivied safe_strcpy() macro. Andrew Bartlett
* Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett2011-05-032-5/+2
| | | | | | | | | This function is problematic because a string may expand in size when changed into upper or lower case. This will then push characters off the end of the string in the s3 implementation, or panic in the former s4 implementation. Andrew Bartlett
* s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett2011-05-035-9/+19
| | | | | | | This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
* s4-torture Remove unused and uncompleated testAndrew Bartlett2011-05-031-54/+0
|
* s4:torture/nbt/winsreplication: ignore incoming broadcast messagesStefan Metzmacher2011-04-301-2/+19
| | | | | | | | | | This will hopefully fix the flakey behavior of the samba4.nbt.winsreplication.owned test. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Apr 30 12:45:01 CEST 2011 on sn-devel-104
* s4:torture/nbt/winsreplication: assert the nbt name before the typeStefan Metzmacher2011-04-301-2/+2
| | | | | | | I hope that will make it easier to find problems with the flakey samba4.nbt.winsreplication.owned test. metze
* s4:torture/nbt/winsreplication: use torture macros in order report failuresStefan Metzmacher2011-04-301-8/+104
| | | | | | | | | | This makes sure we can ignore this failures with the "knownfail" file. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Apr 30 10:37:16 CEST 2011 on sn-devel-104
* s4:"ldb_connect" calls - proof for "!= LDB_SUCCESS"Matthias Dieter Wallnöfer2011-04-291-1/+1
| | | | Reviewed-by: abartlet
* s4:torture/rpc/testjoin.c - use a LDB result constantMatthias Dieter Wallnöfer2011-04-291-1/+1
| | | | Reviewed-by: abartlet
* s4-smbtorture: restructure documentname handling in spoolss test a bit.Günther Deschner2011-04-201-3/+4
| | | | Guenther
* libcli/auth Move PAC parsing and verification in common.Andrew Bartlett2011-04-201-14/+9
| | | | | | | | This uses the source3 PAC code (originally from Samba4) with some small changes to restore functionality needed by the torture tests, and to have a common API. Andrew Bartlett
* selftest: Remove duplication between BUILDIR and BINDIRAndrew Bartlett2011-04-163-3/+3
| | | | | | Just have BINDIR, and have it default to ./bin Andrew Bartlett
* s4-test: added a test for E_deshash()Andrew Tridgell2011-04-133-1/+72
| | | | | | | | | | this particularly checks the boundary conditions near passwords of length 14 characters Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 13 07:31:55 CEST 2011 on sn-devel-104
* lib/util/charset Add many more charset testsAndrew Bartlett2011-04-131-0/+2
| | | | | | | | | This confirms that the behaviour of the convert_string() API (with the process-wide iconv handle). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Rename convert_string test to allow a 'non_handle' testAndrew Bartlett2011-04-131-1/+1
| | | | | | | | | A future commit will test (with a subset of tests) the varient of this function without _handle. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/torture Fix calls to charcnv functions to always supply converted_sizeAndrew Bartlett2011-04-132-2/+3
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-smbtorture: fix lsa forest trust test.Günther Deschner2011-04-071-1/+1
| | | | | | | | | | | | | lsa_lsaRSetForestTrustInformation takes a policy handle obtained from lsaopenpolicy/lsaopenpolicy2 and not a trusted domain handle (MS-LSAD 3.1.4.7.16 LsarSetForestTrustInformation (Opnum 74)). Sumit, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 7 14:52:52 CEST 2011 on sn-devel-104
* lib: make asn1_util a private libraryAndrew Tridgell2011-04-061-1/+1
| | | | | | | this prevents symbol duplication of the asn1 symbols in the service and ntvfs subsystems Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Fix compilation without external heimdal.Jelmer Vernooij2011-04-031-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Apr 3 17:18:56 CEST 2011 on sn-devel-104
* use system heimdal headers if possible, fix missing dependencies on hx509 ↵Jelmer Vernooij2011-04-031-1/+5
| | | | and krb5 libraries.