1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

436 Commits

Author SHA1 Message Date
Andrew Tridgell
b49973404c blackbox: removed assumption of build directory
this fixes the blackbox tests for a top level build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Stefan Metzmacher
5ae04bca01 midltests: add invalid/midltests_pipe_struct_union_01.idl
pipes with unions are not supported by midl,
so we don't need to implement them in pidl:-)

metze
2011-02-01 11:21:42 +01:00
Stefan Metzmacher
c9027b664b midltests: add todo/midltests-pipe-sync-ndr32-downgrade-02.idl
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan 31 19:45:41 CET 2011 on sn-devel-104
2011-01-31 19:45:41 +01:00
Stefan Metzmacher
3a9745c0b9 midltests: test encapsulated unions with 'ms_union'
metze
2011-01-31 18:40:29 +01:00
Stefan Metzmacher
fa6f3f3d0b midltests: test encapsulated unions without 'ms_union'
metze
2011-01-31 18:40:16 +01:00
Stefan Metzmacher
ea587cb642 midltests: add examples of toplevel vs. embedded unions with mixed 'ms_union'
metze
2011-01-31 18:40:01 +01:00
Stefan Metzmacher
675a5e9598 midltests: add examples of toplevel vs. embedded unions with global 'ms_union'
metze
2011-01-31 18:39:42 +01:00
Stefan Metzmacher
b586e5aabd midltests: add examples of toplevel vs. embedded unions without 'ms_union'
metze
2011-01-31 18:39:30 +01:00
Stefan Metzmacher
98febd6605 midltests: more union alignment example with ms_union
metze
2011-01-31 18:39:09 +01:00
Stefan Metzmacher
e0c2aec35a midltests: more union alignment example without ms_union
metze
2011-01-31 18:38:56 +01:00
Stefan Metzmacher
4f6857850f midltests: union alignment with enum as switch_type and 'ms_union'
metze
2011-01-31 18:38:43 +01:00
Stefan Metzmacher
ef89211a69 midltests: union alignment with enum as switch_type
metze
2011-01-31 18:38:27 +01:00
Stefan Metzmacher
1f2f7fda83 midltests: unions with enum vs. long
metze
2011-01-31 18:38:13 +01:00
Stefan Metzmacher
90b54881f8 midltests: 'ms_unions' with enum vs. long
metze
2011-01-31 18:36:59 +01:00
Stefan Metzmacher
a5f0b02221 midltests: explore 'ms_union' option.
metze
2011-01-31 18:36:16 +01:00
Stefan Metzmacher
769425662e testprogs:test_kinit: create tmp files under $PREFIX
metze
2010-12-24 17:31:06 +01:00
Günther Deschner
821b2a9d11 testprogs: testspoolss.exe: pretty print FILETIME in driver info 6 and 8.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Dec 23 23:40:21 CET 2010 on sn-devel-104
2010-12-23 23:40:21 +01:00
Jelmer Vernooij
d237698850 blackbox.ldb: Support using system ldbsearch.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 27 04:32:11 CET 2010 on sn-devel-104
2010-11-27 04:32:11 +01:00
Andrew Bartlett
b8631597f5 s4-test_kinit Add tests for lowercase realm combinations
This tests that the handling of lowercase realms works in our KDC and
libraries.

Andrew Bartlett
2010-11-16 16:01:19 +11:00
Kai Blin
b73a05e4e1 s4 net: rename to samba-tool in order to not clash with s3 net
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
2010-10-28 07:25:16 +00:00
Stefan Metzmacher
fd628e7ae4 midltests: add more union_align examples
This demonstrates the difference between NDR32 and NDR64

metze
2010-10-24 19:04:08 +02:00
Andrew Tridgell
006111646c s4-test: fixed a typo in test_kinit.sh
too many Ts

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Oct 15 10:14:27 UTC 2010 on sn-devel-104
2010-10-15 10:14:27 +00:00
Andrew Tridgell
d59a342c71 s4-test: fixed test_kinit.sh time command test
passing -W breaks -k yes
2010-10-15 09:32:03 +00:00
Günther Deschner
229f5443b7 testprogs: print architecture used in win32 spoolss testsuite.
Guenther
2010-10-01 22:30:22 +02:00
Stefan Metzmacher
77d959fb15 midltests: add midltests-pipe-sync-ndr32-downgrade-02.idl
metze
2010-09-29 10:49:41 +02:00
Stefan Metzmacher
45e3e54e08 midltests: support for fragmented RPC traffic
metze
2010-09-29 10:49:40 +02:00
Stefan Metzmacher
6c0a4b6477 midltests: print out the alloc_hint for requests and responses
metze
2010-09-29 10:49:40 +02:00
Stefan Metzmacher
25e19287f0 midltests: improve NDR64 downgrade
metze
2010-09-29 10:49:39 +02:00
Stefan Metzmacher
437db14522 midltests: revert to a simple default midltests.idl
metze
2010-09-29 10:49:39 +02:00
Stefan Metzmacher
e2c305deb1 midltests/todo: add some random idl files I had tested month ago
metze
2010-09-29 03:08:25 +02:00
Stefan Metzmacher
ad99711f49 midltests: add midltests-pipe-sync-ndr32-downgrade-01.idl example
metze
2010-09-29 03:08:25 +02:00
Stefan Metzmacher
c5e221c5f8 midltests: add some usefull defines to midltests.idl
metze
2010-09-29 03:08:24 +02:00
Stefan Metzmacher
06108687e8 midltests: make it possible to allow downgrades to NDR32
metze
2010-09-29 03:08:24 +02:00
Stefan Metzmacher
115ad60125 midltests: add a midltests_tcp.exe tool
This uses a man in the middle approach in order to dump the
request and response pdus.

It also tests NDR32 and NDR64.

metze
2010-09-29 01:42:28 +02:00
Stefan Metzmacher
cf4e57281b midltests: move the current implementation to midltests_simple.exe
metze
2010-09-29 01:42:27 +02:00
Stefan Metzmacher
d8a0436fb4 testprogs/win32: add vs2010-metze.cmd
metze
2010-09-29 01:42:26 +02:00
Günther Deschner
b772f4cdff testprogs: skip two tests in spoolss tester.
Guenther
2010-09-17 10:06:16 +02:00
Stefan Metzmacher
6fe216642a testprogs/midltests: add some example IDL files and there midltests.exe output
metze
2010-08-12 14:31:15 +02:00
Stefan Metzmacher
34692556be s4:blackblock/ktpass: use test specific user name
metze
2010-07-31 11:22:15 +02:00
Matthieu Patou
e461e29cd9 s4 unittests: add blackblox test for ktpass 2010-07-17 17:56:16 +04:00
Andrew Bartlett
0e212acd32 s4:testprogs Operate the blackbox kinit and net tests using the :local config
This :local tells selftest.pl to use the local smb.conf for the test
environment, not the generic client smb.conf

This then makes the rest work properly - otherwise, it may attempt to
connect to the wrong KDC for example.

The only problem is that we can't test the 'net join' with this set,
so this is removed from the test.  The member server test environment
checks this anyway.

Andrew Bartlett
2010-07-16 07:08:41 +10:00
Andrew Bartlett
8769e75a61 s4:testprogs Show that we no longer delete the old keytab entries
By using a CCACHE obtained while the old password was still valid, we
can tell if the server still accepts incoming Kerberos connections
with the old password.

Andrew Bartlett
2010-07-15 22:08:22 +10:00
Andrew Bartlett
5d61b477c6 s4:testprogs Prove kerberos still works after a password change
Changing the machine account password should not prevent connections
with a current, valid CCACHE.  This is because when the password is
changed, the server-side keytab keeps one old password around.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:22 +10:00
Matthieu Patou
0496af8341 s4: Unit test update_machine_account_password through kinit
This patch is for testing the chgdcpass script which is mostly a call to
update_machine_account_password.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Stefan Metzmacher
22dfb16d73 testprogs/blackbox/subunit.sh: initialize failed to 0
This is a short-term workarround for broken scripts,
which use "exit $failed", without initializing failed.

We need a discussion on the mailing list how to handle this
in a nicer way.

This should fix some random failures in the blackbox tests.

metze
2010-07-10 09:35:04 +02:00
Matthias Dieter Wallnöfer
518232d457 s4:kinit blackbox test - set/reset also here the "minPwdAge" 2010-07-03 16:08:24 +02:00
Matthias Dieter Wallnöfer
73c69a195a s4:blackbox/test_passwords.sh - perform also here the adaptions for "minPwdAge" != 0 2010-07-03 11:38:49 +02:00
Andrew Bartlett
48c8896f2e s4:selftest Split out PKINIT tests from test_kinit.sh and test enc types
This allows us to run the PKINIT tests only against the main DC (for
which the certificates were generated), while testing the available
encryption types in each functional level.

In particular, we need to assert that AES encryption is available in
the 2008 functional level.

Andrew Bartlett
2010-06-29 16:59:31 +10:00
Stefan Metzmacher
df96f18e8f testprogs/win32: add prepare_dcpromo tool
This tool can set the DOMAIN-SID and nextRid counter in
the local SAM on windows servers (tested with w2k8r2)

dcpromo will use this values for the ad domain it creates.

This might be useful for upgrades from a Samba3 domain.

metze
2010-06-22 10:47:39 +02:00
Stefan Metzmacher
d18fbda0d0 testprogs/win32: make it possible to specify MINGW_CC
metze
2010-05-19 13:59:45 +02:00
Stefan Metzmacher
4ce04f6f6f testprogs/win32/spoolss: we don't need absolute pathes to mingw locations
metze
2010-05-19 13:58:26 +02:00
Stefan Metzmacher
38d1776c79 testprogs/win32/npecho: use 'rm -f' instead of 'del' on unix
metze
2010-05-19 13:57:04 +02:00
Stefan Metzmacher
d133ef997d testprogs/win32: explain how to use nmake with NMakefile
metze
2010-05-19 13:56:54 +02:00
Stefan Metzmacher
64fa63c3e9 testprogs/win32/spoolss: rename Makefile.mingw GNUmakefile
metze
2010-05-19 11:12:53 +02:00
Stefan Metzmacher
b00acc81fb testprogs/win32/spoolss: rename Makefile => NMakefile
metze
2010-05-19 11:12:53 +02:00
Günther Deschner
f754942862 testprogs: update Makefile.mingw (although mingw current cant build it).
Guenther
2010-05-10 11:50:29 +02:00
Günther Deschner
86ec5fe3ee testprogs: update README to reflect the util rename.
Guenther
2010-05-10 11:50:28 +02:00
Günther Deschner
cda0c75e18 testprogs: add readme for testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.

Guenther
2010-05-10 11:50:28 +02:00
Günther Deschner
e94825d159 testprogs: add vcproj and sln files for testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.

Guenther
2010-05-10 11:50:28 +02:00
Günther Deschner
eb28a761e9 testprogs: rename spoolss.exe to testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.

Guenther
2010-05-10 11:50:25 +02:00
Matthias Dieter Wallnöfer
088a25912e s4:blackbox/test_kinit.sh - Test the new "net user add <user> [<password>]" syntax 2010-05-09 19:14:47 +02:00
Andrew Tridgell
48330c828e s4-test: check that a weak password is rejected by kpasswd
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-16 14:12:44 +10:00
Stefan Metzmacher
16d4d0346d testprogs/blackbox/test_kinit: reorder arguments to "net time" to fix make test
metze
2010-04-13 10:09:18 +02:00
Andrew Bartlett
df7fbf28ee s4:testprogs Update test to match current Heimdal 2010-03-27 12:23:21 +11:00
Andrew Bartlett
6798543842 s4:testprogs Fix kinit test for updated Heimdal 2010-03-27 11:53:49 +11:00
Andrew Bartlett
0a65bb57a1 s4:selftest Add testing of kpasswd password set on servicePrincipalName 2010-03-25 16:32:04 +11:00
Günther Deschner
6f36e9d504 testprogs: add EnumPrinterData test to win32 spoolss test.
Guenther
2010-03-15 17:27:12 +01:00
Günther Deschner
a319eb9700 testprogs: add test_PrinterDataW.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
55946ddd1d testprogs: use dump_data in dump_printer_data.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
74ba0b7189 testprogs: add print_printer_dataw and dump_data to printlib.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
66b4463fc1 testprogs: add some multibyte versions of PrinterData calls.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
892213c7b7 testprogs: fix boolean return code of test_PrinterData.
Guenther
2010-03-03 14:42:31 +01:00
Günther Deschner
74703e4897 testprogs: make sure to do the same tests as in smbtorture in test_PrinterData().
Guenther
2010-03-02 19:03:17 +01:00
Günther Deschner
f73c27116c testprogs: fix REG_SZ in print_printer_data.
Guenther
2010-03-02 19:03:16 +01:00
Günther Deschner
8919a58583 testprogs: test result of GetPrinterDataEx against SetPrinterDataEx args.
Guenther
2010-03-02 15:29:38 +01:00
Günther Deschner
cf12d4556a testprogs: better usage text.
Guenther
2010-03-01 21:15:34 +01:00
Günther Deschner
36d3aa69f1 testprogs: add very basic PrinterData test for printers.
This very basically tests SetPrinterDataEx, GetPrinterDataEx and
DeletePrinterDataEx.

Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
0d0d778b21 testprogs: rename test_PrinterData to test_PrinterData_Server.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
d44dd1005b testprogs: add SetPrinterDataEx test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
b797481b8d testprogs: add DeletePrinterKey test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
1b6f1e8c30 testprogs: add DeletePrinterDataEx test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
61568cf4c8 testprogs: allow to test a single printer when given on the cmdline. 2010-03-01 21:15:33 +01:00
Günther Deschner
32371e9ba6 testprogs: add RPC_X_NULL_REF_POINTER error code 2010-03-01 21:15:33 +01:00
Günther Deschner
274baba4ab testprogs: print the directory paths as well in spoolss test.
Guenther
2010-02-26 11:07:57 +01:00
Andrew Bartlett
a9d9447d5a s4:credentials Add hooks to extract a named Kerberos credentials cache
This allows the integration of external tools that can't be linked
into C or python, but need to authenticate as the local machine
account.

The machineaccountccache script demonstrates this, and debugging has
been improved in cli_credentials_set_secrets() by passing back and
error string.

Andrew Bartlett
2010-02-20 17:58:07 +11:00
Günther Deschner
e40310a64b testprogs: ignore GetJob level 3 and 4 against samba for now.
Guenther
2010-02-19 10:12:07 +01:00
Günther Deschner
77164a8a5d testprogs: add tests for GetJob() to spoolss test.
Guenther
2010-02-18 22:01:04 +01:00
Günther Deschner
0bf9c5ecf6 testprogs: add RPC_S_PROCNUM_OUT_OF_RANGE error.
Guenther
2010-02-18 16:41:59 +01:00
Günther Deschner
9ff2c1ea64 testprogs: print SDDL string of printer security descriptors 2010-02-18 02:18:59 +01:00
Günther Deschner
77fc30b481 testprogs: add rather simple device mode tests to spoolss test.
Guenther
2010-02-16 17:28:02 +01:00
Günther Deschner
351f694d61 testprogs: add "samba3" and "architecture=" options to spoolss tester.
Guenther
2010-02-15 23:05:05 +01:00
Günther Deschner
1988f4274c testprogs: fix EnumJobs debug output in spoolss test.
Found by Kai, thanks!

Guenther
2010-02-15 22:12:34 +01:00
Günther Deschner
89621d8d19 testprogs: print all printerinfo levels in spoolss test.
Guenther
2010-02-12 20:46:44 +01:00
Günther Deschner
5e1dd19221 testprogs: one more error code for spoolss test.
Guenther
2010-02-11 13:26:13 +01:00
Günther Deschner
4f8a4cb81b testprogs: print secdesc->Control in spoolss test.
Guenther
2010-02-11 13:24:41 +01:00
Günther Deschner
490e1f84fe testprogs: use ConvertSidToStringSid in order to print sids in spoolss test.
Guenther
2010-02-11 13:24:41 +01:00
Günther Deschner
1cd9df8da2 testprogs: add more error codes for spoolss test.
Guenther
2010-02-10 14:07:31 +01:00
Günther Deschner
7c95d559c3 testprogs: regenerate printlib prototypes for spoolss test.
Guenther
2010-02-09 16:39:37 +01:00
Günther Deschner
73e6212a32 testprogs: print job info levels in EnumJobs() spoolss tests.
Guenther
2010-02-09 16:39:35 +01:00
Günther Deschner
bf7156b6dd testprogs: print datatypes info levels in EnumPrintProcessorDatatypes() spoolss tests.
Guenther
2010-02-09 16:39:35 +01:00