summaryrefslogtreecommitdiffstats
path: root/testprogs
Commit message (Collapse)AuthorAgeFilesLines
* 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
* s4:selftets: change the blackbox.bogusdomain test to use binary mapping for ↵Michael Adam2012-05-311-2/+2
| | | | smbclient
* s4-selftest: Demonstrate the correct behaviour between specified usernames ↵Andrew Bartlett2012-05-241-0/+8
| | | | | | | | | and kerberos ccache This shows that a username/password on the command line must always override any credentials cache in the environment. Andrew Bartlett
* auth/credentials: 'workgroup' set via command line will not drop existing ccacheAlexander Bokovoy2012-05-241-1/+0
| | | | | | | | | | The root cause for existing ccache being invalidated was use of global loadparm with 'workgroup' value set as if from command line. However, we don't really need to take 'workgroup' parameter value's nature into account when invalidating existing ccache. When -U is used on the command line, one can specify a password to force ccache invalidation. The commit also reverts previous fix now that root cause is clear.
* s4-selftest: Always delete the user at the end of test_passwords.shAndrew Bartlett2012-05-241-1/+1
| | | | | | | If this test is run in the "dc" environment (rather than "dc:local") is would not delete the test user. Andrew Bartlett
* blackbox: fix samba4.blackbox.kinit testAlexander Bokovoy2012-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This deserves some explanation. With commit 518232d4578d700f5f5ea1609275a6cd1de3a1e7 samba4.blackbox.kinit test set was wrapped with password settings reset before and after the tests with an idea to maintain reliable state for the tests. As result, the resetting of the password settings was done after the test that tried to use smbclient with a Kerberos ticket obtained with machine account credentials. However, the code in credentials_krb5.c, function cli_credentials_get_client_gss_creds(), never worked correctly when credentials were already in ccache. Instead, gensec_gssapi module always re-kinited even if existing credentials were available in the ccache. This had an effect on 'samba4.blackbox.kinit(dc:local).reset password policies(dc:local)' test equal to never having initialized ccache at all, as if 'rm -f $KRB5CCNAME' was run before the test. When the issue of not using already initialized credentials from ccache was fixed with d0aae88f1290e6a7a6d4bfc24aa62795e4892a31 'auth-credentials: Support using pre-fetched ccache when obtaining kerberos credentials' commit, Samba 4 credentials library started to correctly re-used already obtained credentials from ccaches. This caused failure of the test 'samba4.blackbox.kinit(dc:local).reset password policies(dc:local)' because machine account has no permissions to modify password settings. Thus, the correct fix is to reset ccache state before performing the test. Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Wed May 23 18:46:12 CEST 2012 on sn-devel-104
* selftest: Rework samba4.blackbox.bogusdomain to use a temporary userAndrew Bartlett2012-03-021-3/+11
| | | | | | | | | | | | | This avoids leaving an account in the test environment after the test is run and therefore avoids issues with interations with other tests. Also, we now use the local administrator account in the member server to add the test account. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Mar 2 14:44:36 CET 2012 on sn-devel-104
* selftest: Remove unused support for --exeextAndrew Bartlett2012-02-017-27/+27
|
* s3: check that a user in a bogus domain name is mapped to the localnetbios ↵Matthieu Patou2012-01-301-0/+20
| | | | | | | | | name of a domain member This means that if we authentify for BOGUS\administrator in AD domain FOREST with samba being domain member with the netbiosname MEMBER then BOGUS\administrator will be mapped to MEMBER\administrator if the password match.
* selftest: Add test for smbpasswd against pdb_samba4Andrew Bartlett2012-01-241-4/+41
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Jan 24 11:05:09 CET 2012 on sn-devel-104
* s4-selftest re-enable nsstest on libnss_winbind.soAndrew Bartlett2011-12-071-0/+22
|
* s4-samba-tool: Add --principal argument to samba-tool domain exportkeytabAndrew Bartlett2011-11-291-1/+11
| | | | | | | | | | | | | This allows only a particular principal to be exported to the keytab. This is useful when setting up unix servers in a Samba controlled domain. Based on a request by Gémes Géza <geza@kzsdabas.hu> Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 29 09:20:55 CET 2011 on sn-devel-104
* s4: samba-tool subcommand rename - change samba-tool user add to samba-tool ↵Theresa Halloran2011-10-233-3/+3
| | | | | | | user create Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4-selftest When testing for a credentials cache, do not specify a domainAndrew Bartlett2011-10-185-5/+5
| | | | | | | If we specify a domain, then we indicate that we must use that domain which overrides the credentials cache we found in the environment. Andrew Bartlett
* tests-blackbox: Revert the test to use user-level change password commandAmitay Isaacs2011-07-281-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: use python version of change password commandAmitay Isaacs2011-07-281-7/+7
| | | | | | | Replace the "samba-tool user setpassword" command with user level "samba-tool user password" command. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: Rearrange arguments for samba-tool user setpassword commandAmitay Isaacs2011-07-281-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: Remove 'domain\' from username for samba-tool user setpasswordAmitay Isaacs2011-07-281-2/+2
| | | | | | Python version of samba-tool does not require 'domain\' prefix for username. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: Rearrange the arguments in required order for samba-tool timeAmitay Isaacs2011-07-281-1/+1
| | | | | | | Python version of samba-tool requires the command and the subcommand to be specified before the options. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: updated test suite to account for newuser changeGiampaolo Lauria2011-07-283-3/+3
| | | | | | | Updated test suite invocations of newuser to "user add" as the newuser functionality is now being moved to "user add" Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: update test suite to reflect the move from password to "user ↵Giampaolo Lauria2011-07-282-9/+9
| | | | | | | | setpassword" This is part of the work to reflect the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-test: don't fix broken objects during dbcheck testAndrew Tridgell2011-07-211-1/+1
| | | | | this leaves the database as-is, which makes it easier to examine the problem
* dbcheck: test the --reindex optionAndrew Tridgell2011-07-211-0/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-test: added dbcheck run to test suiteAndrew Tridgell2011-07-211-0/+21
| | | | | | This should catch corruption that happens during a test run Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: use 'exportkeytab' instead of 'dumpkeys'Andrew Tridgell2011-07-211-2/+2
| | | | | | | a 'keytab' is a particular format known to administrators, whereas 'keys' is a bit too vague Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: updated test suite for the new domain dumpkeys optionGiampaolo Lauria2011-07-211-2/+2
| | | | | | The test suite has been changed to reflect the move from export to "domain dumpkeys" to reflect the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: update test suite for the new domain objectGiampaolo Lauria2011-07-212-8/+8
| | | | | | Changed test suite to reflect the changes from setpassword to "domain setpassword" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>