summaryrefslogtreecommitdiffstats
path: root/testprogs
Commit message (Collapse)AuthorAgeFilesLines
* selftest: Improve renamedcs testAndrew Bartlett2015-03-061-0/+10
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* testprogs-test_chgdcpass.sh: Improve comments to explain why we check about ↵Andrew Bartlett2015-02-251-1/+2
| | | | | | | changing the password twice Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* selftest: Improve renamedc tests to confirm more than just the exit codeAndrew Bartlett2015-02-251-3/+38
| | | | | | | This now confirms that the DC has been renamed Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* sefltest: Add test for enterprise UPN in a different domainAndrew Bartlett2015-01-231-5/+18
| | | | | | Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* test: improve kinit kerberos testsGarming Sam2014-12-181-6/+38
| | | | | | | | | | | | | For enterprise and windows style kinit, a UPN is now configured. There are now additional smbclient calls and added cache removals to make the tests more robust. Change-Id: I7c58ae4c9f303ca74a52878aa5dce2cc5f7d6742 Pair-programmed-with: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* testprogs/test_ldb: check rootdse search with extended-dn controlStefan Metzmacher2014-12-121-0/+2
| | | | | | | | | | | Verifies BUG: https://bugzilla.samba.org/show_bug.cgi?id=10949 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Dec 12 20:15:46 CET 2014 on sn-devel-104
* testprogs: Set functional domain level to 2003.Andreas Schneider2014-12-051-1/+1
| | | | | | | The default changed to 2008r2 recently. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* provision: Change the default functional level of new Samba domains to 2008R2.Andrew Bartlett2014-09-301-1/+1
| | | | | | | Windows 2003 is going out of support shortly, and we want users to have AES by default Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* testprogs: use texpect instead of rkpty.Günther Deschner2014-09-013-9/+8
| | | | | | | | Guenther Pair-Programmed-With: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* testprogs: test kpasswd via "net ads password".Günther Deschner2014-09-011-0/+15
| | | | | | | | Guenther Pair-Programmed-With: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* testprogs: use texpect in passwords test file instead of rkpty.Günther Deschner2014-09-011-8/+8
| | | | | | | | Guenther Pair-Programmed-With: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* testprogs: allow to run passwords test with MIT and Heimdal kinit.Günther Deschner2014-09-011-2/+14
| | | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* testprogs: Use the system binaries for KRB5 if we don't build in-tree heimdal.Andreas Schneider2014-09-017-10/+51
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* dbcheck: Add check and test for various invalid userParameters valuesAndrew Bartlett2014-07-091-0/+154
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=8077 Change-Id: I6f2f4169856ce78c62e3a7e74b48520cca9cb9ae Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Test auth_wbc, the auth4 winbind and winbind_wbclient modules ↵Andrew Bartlett2014-05-161-20/+21
| | | | | | | | | | | | | | | using pdbtest This ensures these authentication modules continue to operate correctly, and that the results are consistent. Andrew Bartlett Change-Id: I7f63cd93e55c6f73ceeafb14f1dc265291791803 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri May 16 12:50:44 CEST 2014 on sn-devel-104
* selftest: Run pdbtest under valgrind if specifiedAndrew Bartlett2014-05-161-1/+1
| | | | | | | Change-Id: I21e169ba563551e13c46f07f86205625ad166c64 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
* selftest: Add tests for dbcheck detection and removal of partial objectsAndrew Bartlett2014-05-031-2/+2
| | | | | | | | | | | To avoid listing all the provision snapshots, we use a broader blacklist for waf dist and a whitelist for dbcheck-oldrelease.sh Andrew Bartlett Change-Id: Iab0ff4be0b4287dc128a49302836a6f0f7b39678 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* testprogs: Fix tests calling smbpasswd.Andreas Schneider2014-04-172-0/+6
| | | | | | | | smbpasswd has a check that it is root so make sure we start with uid_wrapper being root! Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* dbcheck: Ensure dbcheck can operate with --attrs setAndrew Bartlett2014-03-211-0/+5
| | | | | | | This also includes a test to ensure we do not regress on this point. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* testprogs: Fix pkinit test with system ldb.Andreas Schneider2014-02-211-2/+10
| | | | | | | Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Feb 21 17:58:24 CET 2014 on sn-devel-104
* testprogs: Fix kinit test with system ldb.Andreas Schneider2014-02-211-2/+10
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>
* testprogs: Use system binary if we did not build ldbdel.Andreas Schneider2014-02-181-1/+6
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Feb 18 12:45:41 CET 2014 on sn-devel-104
* midltests: add tests with v1_enum and NDR64Stefan Metzmacher2014-01-072-0/+93
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftst: add tests based on 4.1.0rc3 to check for zero invocationID in ↵Andrew Bartlett2013-09-231-2/+10
| | | | | | | | | | | replPropertyMetaData Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Sep 23 01:29:10 CEST 2013 on sn-devel-104
* selftest: Only run referenceprovision and ldapcmp for the 4.0.0 testAndrew Bartlett2013-09-221-2/+4
| | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: Add a basic test of samba_upgradednsAndrew Bartlett2013-09-041-0/+37
| | | | | | | | | | This does not check that the command runs correctly, but does at least check that the command runs to completion without errors. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Add tests for samba-tool dbcheck --reset-well-known-aclsAndrew Bartlett2013-03-253-3/+77
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Remove output directories to save disk spaceAndrew Bartlett2013-03-041-0/+12
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* samba_upgradeprovision: Remove auto-detection of pre-alpha9 databasesAndrew Bartlett2013-03-041-4/+1
| | | | | | | | | These are incredibly rare, and administrators running such databases not only ask the Samba Team for help personally, they can read --help. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Run dbcheck and improved upgrdeprovision tests against release-4-0-0Andrew Bartlett2013-03-043-187/+225
| | | | | | | | | | The improved upgradeprovision tests now call ldapcmp to verify the changes made do actually bring the database in line with a fresh provision. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Do an ldapcmp run against the upgraded domainAndrew Bartlett2013-03-041-0/+31
| | | | | | | | | This checks (with a set of known issues marked in the --filter attribute) that the upgraded domain matches a fresh provision. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* subunit: Add a sh macro for skipping a testAndrew Bartlett2013-03-041-0/+10
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Add test of upgradeprovision using the old alpha13 treeAndrew Bartlett2013-01-271-0/+135
| | | | | | | | | | | This ensures that upgradeprovision works as expected on a known good old database. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Jan 27 11:55:54 CET 2013 on sn-devel-104
* s4-dbcheck: Allow forcing an override of an old @MODULES recordAndrew Bartlett2013-01-101-0/+5
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* test-chgdcpass: test the ldap case for server password changeAndrew Tridgell2012-11-011-7/+18
| | | | | | | | | use samba-tool drs options which does both RPC and LDAP connections Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Tridgell <tridge@samba.org> Autobuild-Date(master): Thu Nov 1 07:21:17 CET 2012 on sn-devel-104
* test_chgdpass: use drs bind to test password change on RPCAndrew Tridgell2012-11-011-0/+25
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* test_chgdpass: added test for kerberos retryAndrew Tridgell2012-11-011-0/+5
| | | | | | | this tests that we correctly retry with a new ccache entry when a server changes its password while we have a valid ticket Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* testprogs/blackbox: make use of samba-tool domain provisionStefan Metzmacher2012-09-111-1/+1
| | | | metze
* selftest: skip tests if the tarball did not include the alpha13 provisionAndrew Bartlett2012-09-031-6/+28
|
* selftest: Pass --use-ntvfs to provison in renamedc testAndrew Bartlett2012-08-221-5/+5
| | | | | | Also fix test prefix to match the test Andrew Bartlett
* selftest: run pdbtest against s3dc as wellAndrew Bartlett2012-06-281-3/+3
| | | | | | | | | | | | This validates the password expiry, account disable in the s3 auth code and the save/restore of values in tdbsam. It also provides the first test of some net sam set subcommands. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Jun 28 20:39:38 CEST 2012 on sn-devel-104
* s4-selftest: expand passdb testingAndrew Bartlett2012-06-271-0/+101
| | | | This tests pdb_samba4 in the first instance
* s4-selftest: Test login with a password expired userAndrew Bartlett2012-06-271-0/+33
| | | | | | This uses rkpty to test changing an expired password. Andrew Bartlett
* tests: make test_ldb portable, eliminate "local" keywordBjörn Jacke2012-06-271-10/+6
| | | | this is BASH only, don't use it.
* s4-selftest: Add tests for dbcheck on an old database that needs repairAndrew Bartlett2012-06-161-0/+42
| | | | | | | | | We changed a lot since alpha13, so there are lots of legitimate errors to fix. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Jun 16 05:44:15 CEST 2012 on sn-devel-104
* s4:selftest: change the blackbox.passwords test to use a binary mapping for ↵Michael Adam2012-05-311-3/+3
| | | | smbclient
* s4:selftest: change the blackbox.pkinit test to use a binary mapping for ↵Michael Adam2012-05-311-3/+3
| | | | smbclient
* s4:selftest: change the blackbox.kinit test to use a binary mapping for ↵Michael Adam2012-05-311-3/+3
| | | | smbclient
* s4:selftest: change the blackbox.export.keytab test to use a binary mapping ↵Michael Adam2012-05-311-3/+3
| | | | for smbclient
* s4:selftest: change the blackbox.chgdcpass test to use a binary mapping for ↵Michael Adam2012-05-311-3/+3
| | | | smbclient