summaryrefslogtreecommitdiff
path: root/selftest
Commit message (Collapse)AuthorAgeFilesLines
* shadow_copy2: Add test case for snapprefix and delimiterRajesh Joseph2016-07-281-0/+25
| | | | | | | | | Add test case for the newly addded option shadow:snapprefix and shadow:delimiter Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* shadow_copy2: Add test cases to cover shadow:formatRajesh Joseph2016-07-281-0/+44
| | | | | | | | | Added test cases which will filter snapshot names based on shadow:format option in smb.conf Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* rpc_server/drsuapi: Don't set msDS_IntId as attid for linked attributes if ↵Garming Sam2016-07-281-1/+0
| | | | | | | schema Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* msds_intid: Add test for schema linked attributesGarming Sam2016-07-281-0/+1
| | | | | | | | | | This test only covers the forward link case. NOTE: We can't confirm this against Windows because they prevent us from modifying the schema for the schema classes. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* rpc_server/drsuapi: Set msDS_IntId as attid for linked attributes if existsEvgeny Sinelnikov2016-07-281-1/+0
| | | | | | | | | We got WERR_DS_DRA_SCHEMA_MISMATCH for linked attributes with 8418 error for extended attributes when using same attid as attribute object. Signed-off-by: Evgeny Sinelnikov <sin@altlinux.ru> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* msds_intid: Add test for (non-schema) linked attributesGarming Sam2016-07-281-0/+1
| | | | | | | | Prior to this, none of the linked attributes would be checked for their ids. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/Samba: copy pkinit@$DOMAIN certificates to the environmentStefan Metzmacher2016-07-221-0/+10
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/manage-ca: update manage-CA-samba.example.com.shStefan Metzmacher2016-07-221-0/+3
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/manage-ca: add certificates for pkinit@[addom.]samba.example.comStefan Metzmacher2016-07-2224-2/+1317
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/Samba: remove compat admincert* filesStefan Metzmacher2016-07-221-17/+9
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest:Samba4: configure "password hash gpg key ids" for ad_dc (if available)Stefan Metzmacher2016-07-222-0/+33
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest:gnupg: add a gpg key for Samba Selftest <selftest@samba.example.com>Stefan Metzmacher2016-07-224-0/+4
| | | | | | | | This key doesn't have a passphrase and allows automatic testing of decryption. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: don't allow ntlmv1 for 'nt4_member' and 'ad_member'Stefan Metzmacher2016-07-222-3/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: set "ntlm auth = yes" for now as a lot of tests rely on itStefan Metzmacher2016-07-222-0/+6
| | | | | | | | In future we should use a mix of environments some which support ntlmv1 and some without. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* smbd: Enable leases by defaultVolker Lendecke2016-07-222-1/+1
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* dbcheck: Add a rule regarding replica locationsGarming Sam2016-07-211-1/+0
| | | | | | | | | | | | This fixes any RW DCs with repsFrom without the corresponding link. On any RODC, this just reports an error (and doesn't fix it). (the knownfail entry is also now removed) BUG: https://bugzilla.samba.org/show_bug.cgi?id=9200 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dbcheck/release-4-1-0rc3: Add a check regarding replica locationsGarming Sam2016-07-211-0/+1
| | | | | | | | | | | | This DC has repsFrom for the DNS partitions, but not the corresponding link. This ensures that dbcheck has fixed them up. This will currently fail without the actual changes to dbcheck coming in the following commit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9200 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* kcc: Prevent the KCC from doing work on the RODCGarming Sam2016-07-211-23/+0
| | | | | | | | This should never have done any real work, new code or not. This just removes the initial KCC calls and bails out in the KCC if we actually ran it. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add more information when KCC failsGarming Sam2016-07-211-4/+4
| | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3: torture: Regression test case to specify exactly how UNIX extensions ↵Jeremy Allison2016-07-202-1/+2
| | | | | | | | | | | | | | | should act on files with streams. If a stream is open, refuse the unlink. Ensure UNIX unlink request can remove a file containing streams. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12021 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Jul 20 05:20:29 CEST 2016 on sn-devel-144
* flapping: Remove dbcheck from flappingGarming Sam2016-07-151-1/+0
| | | | | | | | | | This reverts commit 019bdcd0bbac1e10be75ba37a22d4255bb31ebd6. The dbcheck should no longer be flapping now that the stale links are cleaned up by an earlier check. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dbcheck linked attribute tests: save environment with bad linksDouglas Bagnall2016-07-151-0/+5
| | | | | | | | | We save a database snapshot that contains linked attributes that should have been deleted, and make sure dbcheck fixes those links without ruining anything else. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* flapping: Add dbcheck to flappingGarming Sam2016-07-151-0/+1
| | | | | | | | This is required as the tests will pass or not depending on if it is run solely or not. This will be removed in the later patches. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* extended_dn_out: Force showing of one-way links if they existGarming Sam2016-07-151-3/+0
| | | | | Signed-off-by: Garming Sam <garming@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* link_attrs: Add tests for one way links (and pseudo one-way)Garming Sam2016-07-151-0/+3
| | | | | | | | Tested against Win2012R2. The deactivated link control has no effect on either one way links or pseudo ones (only two-way ones presumably). Signed-off-by: Garming Sam <garming@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Disable full audit logging in selftestChristof Schmitt2016-07-131-0/+4
| | | | | | | | | | | | | Commit 6eba42f activated the full_audit and time_audit modules for the simpleserver config to trigger the check that all VFS functions are implemented in these two modules. This resulted in all operations being logged to syslog during a test run. Change the full_audit configuration to keep loading the modules, but not log anything from full_audit to not slow down the test or spam the logs. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: check for smbd on a 1-second basis.Michael Adam2016-07-121-3/+3
| | | | | | | Chance to reduce the overall time spent in checking for smbd Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* selftest: check for winbind on 1-second basisMichael Adam2016-07-121-3/+3
| | | | | | | There is a chance to reduce the overall time spent checking. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* Revert selftest: Add knownfail entry required to disable tombstone_reanimationAndrew Bartlett2016-07-091-4/+0
| | | | | | | | | | This reverts e0fa42201b5ff1b2d67f1c3cdb0d3dbcce9b6e40 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Jul 9 18:41:40 CEST 2016 on sn-devel-144
* Revert "selftest/flapping: mark samba4.drs.repl_move.python as temporary ↵Stefan Metzmacher2016-07-081-1/+0
| | | | | | | | | | | flapping" We pass this tests again... This reverts commit HEAD~2. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/flapping: mark samba4.drs.repl_move.python as temporary flappingStefan Metzmacher2016-07-081-0/+1
| | | | | | | | We'll change the behaviour step by step to match Windows. At the end we'll pass the test again and revert this patch. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Do not use the deprecated samba-tool user addAndreas Schneider2016-07-061-2/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s4-torture: Add AES and RC4 enctype checksAndreas Schneider2016-07-061-0/+3
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jul 6 19:06:19 CEST 2016 on sn-devel-144
* selftest: add check password script testBob Campbell2016-07-052-1/+6
| | | | | | | Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Skip the samba4.raw.eas testsAndreas Schneider2016-06-292-1/+1
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Skip also s4 base.createx_sharemodes_dirAndreas Schneider2016-06-292-2/+2
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Remove samba4.smb2.compound tests we skipAndreas Schneider2016-06-291-2/+0
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Remove samba4 delaywrite tests we skipAndreas Schneider2016-06-291-7/+0
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Skip s4 smb2 rename testsAndreas Schneider2016-06-292-10/+2
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Skip the Samba4 rap testsAndreas Schneider2016-06-292-4/+2
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Skip smbtorture_s3 tests against ntvfsAndreas Schneider2016-06-292-19/+19
| | | | | | | | | | This reduces the time our testsuite is running. We are not going to implement these features so it doesn't make sense to run the test at all. More will follow. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: make autorid the default idmap backend in admember_rfc2307Ralph Boehme2016-06-281-0/+3
| | | | | | | | | | | This is needed for a new test in the next commit. Exisiting tests aren't affected by this, at least a private autobuild passed with this change. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11961 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: add save.env.sh helper script.Stefan Metzmacher2016-06-271-0/+15
| | | | | | | | | | | | This can be used to store the environment from within make testenv. It can be restored with: . bin/restore.env.source Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4/torture: add a test for dosmode and hidden filesRalph Boehme2016-06-251-0/+7
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=11992 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: make samba3.blackbox.smbclient_tar as flappingRalph Boehme2016-06-201-0/+1
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jun 20 12:07:18 CEST 2016 on sn-devel-144
* selftest: Kerberos auth with netbios alias SPNsRalph Boehme2016-06-191-0/+1
| | | | | | | | | | | | | Since commit 0f6d51f34baa816b6ec422c8bc28687f0a3073de libnet_join automatically adds netbios aliases as SPNs to the machine account. This commit adds a simple test with smbclient -k against the aliases. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sun Jun 19 19:07:46 CEST 2016 on sn-devel-144
* s3: torture: Add test that proves Win2k12 correctly returns pidlow and ↵Jeremy Allison2016-06-181-0/+1
| | | | | | | pidhigh in SMB1 requests. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: Remove nbt wait timeAndreas Schneider2016-06-171-16/+26
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jun 17 22:15:09 CEST 2016 on sn-devel-144
* selftest: Add newlines for info outputAndreas Schneider2016-06-171-13/+13
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Fix indentation in wait_for_start()Andreas Schneider2016-06-171-2/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>