summaryrefslogtreecommitdiff
path: root/source4/torture
AgeCommit message (Collapse)AuthorFilesLines
2011-09-08torture-drs: fixed NDR tests for DRS blobsAndrew Tridgell1-2/+40
this also adds new tests for trustAuthInOutBlob blobs Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08torture-ndr: fixed NDR tests for NTLMSSP blobsAndrew Tridgell1-4/+5
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08torture-ndr: fixed NDR tests for NBT blobsAndrew Tridgell1-2/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08torture-ndr: fixed NDR tests for DFS blobsAndrew Tridgell1-3/+3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08torture-ndr: added support for testing push functionsAndrew Tridgell2-25/+52
this allows us to check the symmetry of pull/push functions in NDR tests Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-07s4:torture/basic: relax base.trans2 midmight time checkingStefan Metzmacher1-2/+4
It's possible that the test runs on a full hour, e.g. Tue Sep 6 03:00:00 2011. So better check that the a_time is different from the current time. metze
2011-09-05s4-torture: enable password comparison in drsblobs testAndrew Tridgell1-2/+2
I'm not sure why this was commented out, as it does pass Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-05s4-torture: fixed a ndr string errorAndrew Tridgell1-1/+1
the dos charset global changes with the new loadparm context Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-05s4-schema consolidate schema handlingAndrew Bartlett1-35/+11
It also creates a single routine dsdb_load_ldb_results_into_schema() to handle cases where the schema is in the form of an ldb_result. Andrew Bartlett
2011-08-31s4-smbtorture: For now, skip trusted domain auth validation tests against ↵Günther Deschner1-9/+15
the sambas. Guenther
2011-08-31s4-smbtorture: Add trust password to CreateTrust testSumit Bose1-32/+245
Instead of using empty authinfo and authinfo_internal structures a trust password is added to these structures. After creating the trust the trust account is used to validate that the trust password is set correctly. Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31s4-smbtorture: Add tests for lsaQueryTrustedDomainInfoByName() and ↵Sumit Bose1-0/+102
lsaSetTrustedDomainInfoByName() Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-30smbtorture4: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 30 09:51:10 CEST 2011 on sn-devel-104
2011-08-30Fixed regression test case for Bug 8412 - Microsoft Office 2007 (Microsoft ↵Jeremy Allison1-2/+40
Word) fails to save as on a Samba share with SMB2 Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Aug 30 03:26:49 CEST 2011 on sn-devel-104
2011-08-18credentials: Rename library to samba-credentials to avoid name clashes.Jelmer Vernooij1-1/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Aug 18 22:16:38 CEST 2011 on sn-devel-104
2011-08-18cli-raw: Add public libsmbclient-raw library.Jelmer Vernooij1-3/+3
2011-08-18s4-test: prevent the utable test from crashingAndrew Tridgell1-3/+5
2011-08-13torture: use tevent_ functions names instead of the legacy event_ onesSimo Sorce21-70/+70
2011-08-03gensec: clarify memory ownership for gensec_session_info() and ↵Andrew Bartlett3-5/+5
gensec_session_key() This is slightly less efficient, because we no longer keep a cache on the gensec structures, but much clearer in terms of memory ownership. Both gensec_session_info() and gensec_session_key() now take a mem_ctx and put the result only on that context. Some duplication of memory in the callers (who were rightly uncertain about who was the rightful owner of the returned memory) has been removed to compensate for the internal copy. Andrew Bartlett
2011-08-03gensec: Remove mem_ctx from calls that do not return memoryAndrew Bartlett1-4/+4
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03gensec: split GENSEC into mechanism-dependent and runtime functionsAndrew Bartlett4-0/+4
The startup and runtime functions that have no dependencies are moved into the top level. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-26cli_cldap: Lowercase name.Jelmer Vernooij1-1/+1
2011-07-23cli_raw: Make name lowercase.Jelmer Vernooij1-3/+3
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jul 23 23:20:51 CEST 2011 on sn-devel-104
2011-07-20auth: Split out make_user_info_SamBaseInfo and add authenticated argumentAndrew Bartlett2-1/+4
This will allow the source3 auth code to call this without needing to double-parse the SIDs Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-15s4-smbtorture: add very basic tests for lsa_CreateTrustedDomainEx.Günther Deschner1-21/+79
Guenther
2011-07-15lsa: rename auth info argument in lsa_CreateTrustedDomainEx2Günther Deschner2-2/+2
Guenther
2011-07-06s4:torture/smb2: s/smb2cli_unlock/test_smb2_unlockStefan Metzmacher1-3/+3
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 19:07:42 CEST 2011 on sn-devel-104
2011-07-06s4:torture/smb2: s/smb2cli_lock/test_smb2_lockStefan Metzmacher1-19/+19
metze
2011-06-21s4-smbtorture: rework the spoolss notify test a bit.Günther Deschner1-16/+15
Guenther
2011-06-21s4-smbtorture: use ipv4 addresses for backchannel spoolss change notifyGünther Deschner1-1/+1
connections for now. Guenther
2011-06-21s4-torture Enable libnetapi and libsmbclient tests using combined buildAndrew Bartlett4-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
2011-06-20tdb_compat: use tdb_open_compat.Rusty Russell1-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>
2011-06-20tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell1-2/+2
This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2-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>
2011-06-16s4:ntvfs subsystems - rework it using concrete enum valuesMatthias Dieter Wallnöfer1-1/+21
This changes commit 260bc987b00b3fff6c9b99211627b14e9bd0789a to comply with metze's plans.
2011-06-11s4:torture/ndr/string.c - fix type-punned warning and remove unused variablesMatthias Dieter Wallnöfer1-3/+2
Reviewed-by: Jelmer
2011-06-09s4:ntvfs subsystem - quiet enum warningsMatthias Dieter Wallnöfer1-9/+1
Simply return "NT_STATUS_INVALID_LEVEL" for unknown types of requests. Reviewed-by: Tridge
2011-06-06s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett6-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
2011-06-06lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett3-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
2011-06-06s4-param Remove 'sam database' parameterAndrew Bartlett1-5/+5
This now just relies on the private dir parameter, which remains. Andrew Bartlett
2011-06-06s4-ipv6: update callers to load_interface_list()Andrew Tridgell6-9/+9
2011-06-01librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_stringSean Finney3-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>
2011-05-30s4:torture: fix SEGFAULT in raw.acl.dynamicGregor Beck1-7/+8
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-21s4:torture - always cast correctly when using the "%x" format string argumentMatthias Dieter Wallnöfer2-6/+6
Signed-off-by: Metze
2011-05-20torture-dfs: fix a typo that was causing the test to be flackyMatthieu Patou1-1/+1
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri May 20 09:39:12 CEST 2011 on sn-devel-104
2011-05-18torture: desactivate the level 4 tests for DFS referralMatthieu Patou1-2/+17
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed May 18 13:04:00 CEST 2011 on sn-devel-104
2011-05-18s4:auth/credentials: pass 'self_service' to ↵Stefan Metzmacher1-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
2011-05-17s4-torture: Add more tests to DFS referral suiteMatthieu Patou1-4/+30
2011-05-17torture: adapt to idl evolutionroot2-48/+48
2011-05-16s4-smbtorture: add test_netremotetod.Günther Deschner1-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